Documentation
¶
Overview ¶
Package skill implements the parts of the Agent Skills specification (https://agentskills.io/specification) that Skillcrew relies on.
Index ¶
Constants ¶
const FileName = "SKILL.md"
FileName is the entry point of every skill directory.
Variables ¶
This section is empty.
Functions ¶
func CopyAs ¶
CopyAs copies the skill in src to dst and names it after dst's base name: the SKILL.md name is rewritten if needed, then the copy is validated.
func HashDir ¶
HashDir returns a content hash of the files under root. It covers relative paths, contents and the executable bit, so it does not depend on where the directory lives. Symbolic links are hashed by target, never followed.
func Ignored ¶
Ignored reports whether a file is operating system metadata (e.g. the Finder's .DS_Store), which never counts as skill content.
func RenameFrontmatter ¶
RenameFrontmatter rewrites the name field of a SKILL.md file, leaving the rest untouched.
func ValidateName ¶
ValidateName checks a skill name against the specification.
Types ¶
type Frontmatter ¶
Frontmatter holds the SKILL.md metadata Skillcrew cares about.
func ParseFrontmatter ¶
func ParseFrontmatter(content []byte) (Frontmatter, error)
ParseFrontmatter extracts the YAML frontmatter of a SKILL.md file.