What a skill is here
Inhrns, a skill is just a Markdown file named SKILL.md with YAML frontmatter. The skills package reads metadata from the frontmatter and the load_skill tool returns the full file body when the model asks for it by name.
Skills are not executable plugins. They are prompt assets.
Discovery roots
The bundled app loads skills from:~/.agents/skills./.agents/skills
skills.DefaultGlobalRootPathskills.DefaultLocalRootPath
Directory shape
Discovery is shallow and opinionated. The package looks one directory below each root and picks upSKILL.md files there.
Example:
Example skill
name and description fields are what LoadAllSkills keeps in memory and what the default system prompt advertises.
How the bundled app uses skills
At startup:main.goloads all discovered skills.- It appends their names and descriptions to the hardcoded system prompt.
- It registers the
load_skilltool. - If the model asks to load one by name, the tool returns the entire
SKILL.mdfile contents.
Important behavior details
- Skill names are matched exactly.
- The
load_skilltool returns the full file body, not just the body after frontmatter. - Missing roots are ignored.
- Missing or unreadable skill files return an error string.