Instructing a coding agent
For engineers
Goals, constraints, files, examples and runnable done criteria that a coding agent can act on
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which instruction gives a coding agent the clearest goal?
Check yourself · 2 of 5
What is the main benefit of linking an existing implementation in your instruction?
Check yourself · 3 of 5
What is the purpose of asking an agent for its assumptions before it codes?
Check yourself · 4 of 5
Which done criterion can an agent not fake easily?
Check yourself · 5 of 5
Which instruction is a kitchen-sink request?
Topics
- Stating goals and constraints for agents3 min read · The outcome, why it matters, what must not change and which libraries, patterns and files are off limits
- Pointing the agent at files and examples3 min read · Naming entry points, linking a similar existing implementation and limiting where the agent may edit
- Letting the agent interview you first3 min read · Asking the agent to list its assumptions and questions before it writes code, then answering them in the task
- Making the agent prove it is done4 min read · Giving exact test, lint and type-check commands and asking for their output, so done means passing, not claimed
- Coding instruction anti-patterns3 min read · Vague asks, kitchen-sink requests, contradictory rules and key instructions buried deep in a long chat
Start here
- Best practices for Claude Code (Claude Code docs) (opens in a new tab)DocsFree
A vendor's own advice: give the agent a way to verify its work, name files and explore before coding.
- Best practices for using GitHub Copilot (opens in a new tab)DocsFree
Guidance on writing clear prompts, breaking tasks down and giving context to a coding assistant.
- AGENTS.md (opens in a new tab)DocsFree
The open convention for a standing instruction file that coding agents read before each task.
Helps to know first
110 questions · last verified 2026-12