Writing instructions for agents
Briefs, AGENTS.md files and skills an agent can finish without guessing.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOverview
Writing instructions for agents is the craft of putting down, in plain text, everything an agent needs to finish a piece of work without you in the room: the goal, the constraints, where to start and how to tell when it is done. Coding agents and assistants now read AGENTS.md and CLAUDE.md files, load skills and pick up tickets on their own, so the text you leave for them does more of the steering than any single prompt.
People who do it well keep instruction files short and specific to the repository, move long procedures into skills or linked files that load only when needed, and write every rule as something checkable rather than a wish. They state what done looks like, name the commands that prove it, and say what the agent must not touch. Then they watch a real run, note where the agent guessed, and fix the text rather than repeating themselves in chat.
What you will practise
- Rewrite a vague ticket as a brief with a goal, constraints, starting files and a check that proves it is done
- Cut an AGENTS.md or CLAUDE.md to the rules an agent cannot infer from the repository, then rerun a task
- Move a long procedure out of an instruction file into a skill with a description that says when to use it
- Turn three style wishes into rules a reviewer or a test can check
- Watch an agent run, list each point where it guessed, and fix the instructions that caused it
Tools for this skill
AGENTS.md
Open format for instruction files that coding agents read in a repository.
Key terms
Words you will meet while learning this, defined in the glossary.
- AGENTS.md
An open, tool-neutral Markdown file of instructions for coding agents working in a repository, read by many different agents and editors.