Skills
Skill files are Markdown documents that teach agents specific workflows
or impose guardrails. They are injected directly into an agent's
system prompt at the start of every run, appearing under a
## Skills heading.
How skills are loaded
- An agent definition YAML (e.g.
agent_definitions/implement.yaml) declaresskills: [ask_user_guardrails, board-read, board-report]. - Before the agent runs, a preflight check
(
src/robotsix_mill/stages/implement/phase_coordinator_preflight.py) verifies every referenced skill file exists. Missing skills block the run. compose_prompt()insrc/robotsix_mill/agents/base.pyreads<skills_dir>/<name>/SKILL.mdfor each skill, strips the YAML front-matter (--- … ---), and appends the body to the system prompt.
Naming convention
Each skill lives in its own subdirectory under skills/ and contains
a single SKILL.md file:
skills/
├── ask_user_guardrails/
│ └── SKILL.md
├── board-read/
│ └── SKILL.md
└── board-report/
└── SKILL.md
The SKILL.md file uses YAML front-matter with a single required
field — name: — whose value must match the directory name:
---
name: ask_user_guardrails
---
## Asking the operator for help
…
The directory name, the name: field, and the value in an agent
definition's skills: list must all agree — compose_prompt uses the
name from the skills: list to resolve <skills_dir>/<name>/SKILL.md.
Adding a new skill
- Create a new directory under
skills/(e.g.skills/my-new-skill/). - Add a
SKILL.mdinside it with YAML front-matter:
---
name: my-new-skill
---
## My New Skill
Skill body here.
- Declare the skill in
agent_definitions/<agent>.yamlby adding its name to theskills:list — or toexpert_definitions/<expert>.yamlfor expert sub-agents. - Update
docs/modules.yaml— addskills/my-new-skill/**/*to theskillsmodule'spathslist.