Working with your AI tool
Write a short instructions file for your project
Every new session you explain again how to run the project and what not to touch.
- What you get
- An AGENTS.md or CLAUDE.md under 60 lines, built from what the project really does.
- Paste it into
- Your AI tool, in your project
The prompt
Create an instructions file for this project (AGENTS.md, or CLAUDE.md if I use Claude Code) by reading the code, not by guessing. Include only what a new session can't work out quickly on its own: what the product is in two sentences, the commands to install, run, test and build, the main folders and what lives in each, the conventions this code follows, things that must never be done here (for example commands against production), and how to check work before calling it done. Keep it under 60 lines. Leave out general advice any good engineer already follows. Tell me which lines you weren't sure about.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Working with your AI tool
Understand what the AI just built
The app works and you couldn’t explain how, which makes every bug frightening.
Get a plan before any code changes
You describe a feature and the AI starts editing files based on a guess.
Make the AI prove the work is done
It says “fixed” and “all tests pass”, and the feature doesn’t work when you try it.
Stop the AI doing more than you asked
You ask for a button change and get a refactor across twelve files.