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.
How the bundled app uses skills
At startup:main.goloads all discovered skills.- It creates the
load_skilltool from the loaded skill metadata. - It passes the skill metadata to the bundled TUI.
- The TUI appends the skill names, descriptions, and
load_skillhint to the runtime system message. - 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.