Documentation
¶
Overview ¶
Package skill renders and installs the agent skill embedded in the binary (skills/ytrack), stamped with the binary's version so an installed skill always describes the ytrack that installed it.
Index ¶
Constants ¶
const EntryFile = "SKILL.md"
EntryFile is the skill's entry point inside its directory.
const Name = "ytrack"
Name is the skill's name: its directory and its frontmatter name.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install writes the skill, stamped with version, to <root>/ytrack and returns that directory. root is created when missing. An existing <root>/ytrack is replaced only when its SKILL.md has "name: ytrack"; anything else there is refused with a *ForeignError and left untouched. A symlinked <root>/ytrack (as `npx skills add` makes) is followed and its target updated.
The new copy is written to a temporary sibling directory and renamed into place, so a failed install leaves the earlier skill as it was.
Types ¶
type ForeignError ¶
type ForeignError struct{ Dir string }
ForeignError reports a skill directory that Install will not replace because it does not hold the ytrack skill.
func (*ForeignError) Error ¶
func (e *ForeignError) Error() string