Skip to main content

Custom Skills

Skills are the primary extension point in Trellis. Most of the shipped workflow (brainstorm, before-dev, check, update-spec, break-loop) is delivered as auto-trigger skills. This chapter explains how to add your own.

Commands vs. sub-agents vs. skills

Use a skill when the AI should trigger it automatically based on context; use a command when the user should decide; use a sub-agent when the work needs isolation with its own prompt and restrictions.

Skill file format

A skill is a folder containing SKILL.md:
SKILL.md uses YAML frontmatter that the platform matches against:
Skills ship on all 21 configured platforms — the location differs per platform: .agents/skills/{name}/SKILL.md (the agentskills.io cross-platform shared layer) is directly usable by Amp, Cline, Deep Agents, Firebender, Warp, and other agents that read the standard.

Writing a skill that triggers reliably

The description field is what platforms match on. Write it as a description of the condition that should cause this skill to fire, not a description of the skill’s name. Examples:
The skill body should:
  1. State the trigger condition again, in the skill’s own voice, so the AI can double-check that the match was correct.
  2. Tell the AI exactly which files to read before acting.
  3. Give a fixed output format so the result is consistent across invocations.

Example: an api-doc skill

.claude/skills/api-doc/SKILL.md:

Sharing skills

To distribute a skill across projects:
  1. Put the canonical SKILL.md under packages/cli/src/templates/common/skills/{name}/SKILL.md (if contributing upstream) or publish it as its own npm package.
  2. Add a configurator step per platform that copies or adapts the skill into that platform’s layout.
  3. Version the skill alongside the Trellis release so migrations stay consistent.
External skills: if you want to pull in a community skill, fetch the folder into the right platform directory and commit it. Trellis doesn’t currently ship an automated installer for external skills.