Your very first prompt. Forces goal, stack, constraints and definition of done before a single line of code — one good brief saves ten iterations.
works with: Claude Code · Cursor · Copilot · OpenCode · Bolt.new · Lovable
spec · copy & try it
You are helping me build [PROJECT: one sentence on what it is and who it's for].
Before writing any code, produce a short spec:
1. Goal — one sentence: what this does and for whom.
2. Stack — the exact technologies we will use (and nothing else).
3. Constraints — [e.g. no new dependencies, static hosting, WCAG AA].
4. Out of scope — what we are NOT building.
5. Definition of done — how we will verify it works.
Ask me up to 3 questions if anything is ambiguous. When I confirm the spec,
implement it step by step, one small verifiable change at a time.
why it works: read the tip →
Makes the agent read your repo and draft its own context file — the cache of every convention it must follow. Grounded in real code, not invented rules.
works with: Claude Code · Cursor · Copilot · OpenCode · Aider
context · copy & try it
Read this whole repository. Then create AGENTS.md at the repo root with these
sections:
## What this is — two sentences on what the project does.
## Commands — dev, test, lint, build (verify each command actually exists).
## Conventions — the patterns this codebase really follows (check real code,
do not invent rules).
## Forbidden moves — mistakes an AI assistant is likely to make here.
## Definition of done — what must pass before work is considered complete.
Rules: max 100 lines, short imperative sentences, no filler. Show me the file
before writing it.
why it works: read the tip →
Stops the agent from vomiting 40 files at once. Forces one change at a time, verified before moving on — the antidote to invisible technical debt.
works with: Claude Code · Cursor · Copilot · OpenCode
workflow · copy & try it
Work in small steps. For this task:
1. State the single smallest change you will make next.
2. Make only that change.
3. Run it / build it and show me the result.
4. Stop and wait for my confirmation before the next step.
Do not batch multiple changes. If a step fails, fix only that step before
continuing. Never move to step N+1 while step N is broken.
why it works: read the tip →
Makes the agent defend its own diff before you accept it. Surfaces dead code, silent scope creep and changes you never asked for — before they land.
works with: Claude Code · Cursor · Copilot · OpenCode · Aider
review · copy & try it
Before I accept anything, review your own diff as if you were a skeptical
reviewer:
1. List every file you changed and one line on why.
2. Flag anything you changed that I did not ask for.
3. Flag any dead code, commented-out blocks, or TODOs you added.
4. Point out the riskiest change and what could break.
Then give me a 5-line summary: what changed, why, and what to watch.
why it works: read the tip →
An agent that can verify its own work fixes most of its own mistakes. Ask for tests, make it run them, and forbid weakening them to pass.
works with: Claude Code · Cursor · Copilot · OpenCode · Codex
testing · copy & try it
For the code you just wrote:
1. Write tests covering the main paths and at least 2 edge cases.
2. Run them yourself and fix what fails.
3. If a test reveals the implementation is wrong, fix the implementation —
do not weaken or delete the test.
4. Report: tests added, tests passing, and any behavior you could not verify.
Use the test framework already in the repo. Do not add new testing
dependencies.
why it works: read the tip →
For the doom loop: same error, five attempts, rising panic. Stops the spiral, rebuilds shared context, and forces three distinct exit routes before more code.
works with: Claude Code · Cursor · Copilot · OpenCode · Bolt.new · Lovable
rescue · copy & try it
Stop. We are stuck in a loop. Reset before writing any more code:
1. Summarize in 5 bullet points: the goal, the current state, and exactly
what is broken.
2. List what you already tried and why it failed.
3. Propose 3 different approaches to fix it, ordered by simplicity.
Recommend one and say why.
Do not write any code until I pick an approach.