SKILL.md file (plus optional references) with domain-specific instructions the agent loads on demand: your refund policy, your triage rules, your house style, or any other procedure you want to reuse without bloating the system prompt.
Skills live in your project under src/skills/ and attach to the agents you build.
Example requests
Ask your coding agent for the procedure or house rules an agent should follow. It can capture them as a skill you reuse across agents.“Build a skill for our weekly report format so any agent that writes one follows the same structure and sources.”
“Add a brand voice skill so the marketing agent writes announcements in our house style.”
How skills work
Skills live in your project undersrc/skills/, one folder per skill. Each folder has a SKILL.md; you attach the skill to an agent by its folder name.
src/agents/support.ts
/workspace/agent/skills/{slug}/. The agent reads them like local files and pulls in deeper material from references/ only when the task calls for it.
When to use a skill
| Use a skill for | Use something else for |
|---|---|
| Reusable, on-demand guidance an agent reads when relevant | Always-needed, short instructions → systemPrompt |
| Multi-section playbooks, policies, and procedures | Static reference docs the agent should read → files |
| Behavior shared across prompts or agents | A discrete capability or API call → an action |
Next steps
Create skills
Write a SKILL.md with clear task guidance.
Attach skills to agents
Attach skills to an agent by folder name.
Import skills
Reuse skills from external registries.
Files
Add static context documents to an agent workspace.