Documentation
¶
Overview ¶
Package skill locates, installs, and updates the agent skills embedded in the repolens binary.
Index ¶
Constants ¶
const ( // WarnModified is returned when a provenance copy has a locally edited body. WarnModified = "locally modified; use --force to overwrite" // WarnForeign is returned when a same-name file has no repolens provenance. WarnForeign = "existing skill has no repolens provenance; use --force to overwrite" // WarnUnbundled is returned when a provenance copy names a skill no longer shipped. WarnUnbundled = "skill is no longer bundled; left in place" )
Variables ¶
This section is empty.
Functions ¶
func KnownTargetKeys ¶
func KnownTargetKeys() []string
KnownTargetKeys returns the install target keys in table order.
Types ¶
type Result ¶
type Result struct {
Path string
Action Action
State State // state found before writing
Warning string
}
Result is one target's outcome.
type Skill ¶
type Skill struct {
Name string // directory name, equal to the front matter name
Alias string // short name, Name without the "repolens-" prefix
Description string
Content []byte // SKILL.md as embedded, without provenance
}
Skill is a skill shipped inside the binary.
type Target ¶
Target is a directory an agent product scans for skills.
func ResolveTargets ¶
ResolveTargets maps keys to targets in the given scope. Unknown keys return an error that lists the legal values.
func Targets ¶
Targets returns every known install target for scope. Project-scope detection signals are evaluated against root; global-scope directories and their detection signals are both resolved from the user home directory, so --global picks the agent products the user actually installed rather than whatever the current repository happens to configure.