How to Write a Great SKILL.md File (With Examples)
A practical guide to writing a SKILL.md file: frontmatter, descriptions that trigger correctly, clear steps, and a complete example you can copy and adapt.
Twelve practical skills for AI agents that write code: what each one teaches, why it matters, and how to roll them out across a team of coding agents.
The most useful skills for AI agents on a coding team are the ones that capture your team’s habits: how you test, review, commit, handle errors, and ship. Coding agents already know how to program; what they lack is your way of doing it. A small set of focused skills closes that gap and makes every agent behave more like a teammate who has read the handbook.
Below are twelve skill ideas, each with what it teaches and why it earns its place.
A capable coding agent can write a function, fix a bug, or refactor a module. But it does not know that your project uses a particular test runner, that one folder is generated and must never be edited, or that every pull request needs a short risk note.
Skills package that knowledge into folders with a SKILL.md file. The agent sees each skill’s name and description, then loads the full instructions only when a task matches. If the format is new to you, start with what agent skills are.
What it teaches: how to run the test suite, where new tests go, which framework and helpers to use, and what “done” means.
Why it matters: agents that write code without tests produce work you cannot trust. A testing skill turns “please add tests” from a request into a default.
What it teaches: what to check before approving a change, such as correctness, edge cases, naming, error handling, security, and test coverage.
Why it matters: when one agent reviews another’s work, a shared checklist makes the review consistent instead of a loose skim.
What it teaches: commit message format, branch naming, PR description structure, and how small each change should be.
Why it matters: clean history makes agent work easy to read, review, and undo. It also makes reports much clearer.
What it teaches: how to install dependencies, start the app, build it, and run linters, with exact commands.
Why it matters: agents waste a lot of effort guessing commands. Writing them down once saves time on every task.
What it teaches: a step-by-step approach to bugs: reproduce first, read the logs, write a failing test, fix the cause, confirm the test passes.
Why it matters: without a method, agents tend to patch symptoms. A playbook nudges them toward root causes.
What it teaches: your project’s patterns for errors, retries, user-facing messages, and log levels.
Why it matters: inconsistent error handling is one of the most common sources of subtle bugs. A skill keeps every agent on the same pattern.
What it teaches: never commit secrets, validate input, use parameterized queries, check dependencies, and avoid risky shell commands.
Why it matters: agents move fast, and security mistakes are expensive. A short, firm list of rules prevents the obvious ones.
What it teaches: how to create migrations, write both directions, avoid data loss, and verify rollback.
Why it matters: schema changes are hard to undo once they reach real data. This is a skill where explicit steps really pay off. Our SKILL.md writing guide uses exactly this skill as its full example.
What it teaches: component structure, styling approach, accessibility basics, and design tokens to use instead of hard-coded values.
Why it matters: UI work drifts quickly when several agents touch it. Shared conventions keep screens looking like one product.
What it teaches: naming, versioning, error formats, pagination, and how endpoints are documented.
Why it matters: consistent APIs are easier for both humans and other agents to use. Inconsistency here spreads to every client.
What it teaches: when to update the README, how to write changelog entries, and the tone for user-facing text.
Why it matters: agents rarely update docs unless asked. A skill makes documentation part of finishing a task.
What it teaches: how to split a goal into small tasks, each with a clear outcome and a way to verify it.
Why it matters: good plans make everything downstream easier. This skill is especially useful for a lead agent that hands work to others, which we cover in the team lead agent.
In a team of agents, not everyone needs every skill. Matching skills to roles keeps each agent focused.
| Role | Most useful skills |
|---|---|
| Team lead | Planning and task breakdown, code review checklist, commit and PR style |
| Back-end developer | API design, database migrations, error handling and logging, security basics |
| Front-end developer | Front-end and UI conventions, testing conventions, documentation |
| Tester / QA | Testing conventions, debugging playbook, project setup and commands |
| Reviewer | Code review checklist, security basics, commit and PR style |
Shared basics like project setup and commit style can go to everyone.
Adding twelve skills on day one sounds efficient, but it usually backfires. A calmer approach works better:
A few habits make the difference between a skill agents follow and one they ignore:
SKILL.md.Skills shine when several agents work together, because each role can carry its own playbook. In BotQuarters, you can give teammates skills from a skill library in one click, so your tester, developers, and team lead each work from the instructions that suit their job. You can see the rest of what the app does on the features page.
Start with testing conventions, project setup commands, and commit or pull request style. These three prevent the most common problems: untested code, wasted effort guessing commands, and messy history. Add more skills as you notice repeated mistakes.
Agents usually see only each skill’s short name and description until a task needs the full instructions, so you can install quite a few without overloading them. The practical limit is clarity: if several skills have overlapping descriptions, the agent may pick the wrong one. Keep each skill focused on one job.
Not necessarily. Shared basics such as setup commands and commit style help everyone, but role-specific skills work best on the agents that need them. A reviewer benefits most from a review checklist, while a front-end developer benefits most from UI conventions.
Often, yes. General skills like a debugging playbook or security basics travel well between projects. Project-specific skills, such as exact commands or folder rules, usually need a version per project.
A practical guide to writing a SKILL.md file: frontmatter, descriptions that trigger correctly, clear steps, and a complete example you can copy and adapt.
Agent skills are folders of instructions an AI agent loads only when a task needs them. Learn how they work, why they matter, and how to start using them.
What is MCP? The Model Context Protocol is an open standard that connects AI apps to tools and data. Learn how it works, with plain examples and key terms.