Documentation
¶
Index ¶
Constants ¶
const GeneralSkillsRepository = "https://github.com/nicholasjconn/skills.git"
GeneralSkillsRepository is the canonical source of the external catalog.
Variables ¶
var FS embed.FS
FS contains the embedded default templates for installation and generation.
ReadFunc is the function used by Read. Tests can replace it to simulate errors.
var RetiredSkillNames = []string{"implement", "ship-pr", "auto-skill-loop", "audit-documentation", "audit-memory", "audit-tests", "interface-audit", "find-docs", "playwright", "tavily-web"}
RetiredSkillNames identifies protected legacy local slots; it contains no content.
var WalkFunc = func(root string, fn fs.WalkDirFunc) error { return fs.WalkDir(FS, root, fn) }
WalkFunc is the function used by Walk. Tests can replace it to simulate errors.
Functions ¶
func IsRetiredSkill ¶ added in v1.0.0
IsRetiredSkill reports names whose former bundled local slot must be preserved.
func IsSafeCLISkillCatalogID ¶ added in v0.24.0
IsSafeCLISkillCatalogID returns true for single-segment catalog ids that can be used as .agent-layer/skills/<id>/ directory names.
Types ¶
type CLISkillCatalogEntry ¶ added in v0.24.0
type CLISkillCatalogEntry struct {
ID string
Name string
Binary string `toml:"binary"`
OwnershipMarker string `toml:"ownership_marker"`
Repository string `toml:"repository"`
Selectors []string `toml:"selectors"`
}
CLISkillCatalogEntry describes one CLI skill catalog option. Git entries derive destination names from their exact source paths; the catalog ID identifies the checkbox, including grouped selections. Binary names the external CLI the skill requires, if any.
func LoadCLISkillCatalog ¶ added in v0.24.0
func LoadCLISkillCatalog() ([]CLISkillCatalogEntry, error)
LoadCLISkillCatalog parses the embedded cli-skills-catalog.toml file into typed catalog entries. Errors loudly when the catalog is missing, malformed, contains no entries, or contains an entry with an invalid or duplicate id, name, or member.
func ParseCLISkillCatalog ¶ added in v1.0.0
func ParseCLISkillCatalog(data []byte, read func(string) ([]byte, error)) ([]CLISkillCatalogEntry, error)
ParseCLISkillCatalog validates source coordinates and retained embedded trees. The release generator supplies its filesystem reader to share runtime validation.
func (CLISkillCatalogEntry) SkillNames ¶ added in v1.0.0
func (e CLISkillCatalogEntry) SkillNames() []string
SkillNames returns the declared destination names in selector order.