A spec turned into a plan before any code: a Claude + Cursor stack
The struggle: A spec lands and the team starts coding before anyone has agreed what is in it, so scope drifts and rework follows.
What you end up with: A spec with testable acceptance criteria and an editable code plan you read and approve before any code is written.
Claude pressure tests the spec and writes acceptance criteria. Cursor's Plan Mode then reads your code and writes a plan you edit, so the first code you accept follows a plan you understood.
Tools: Claude, Cursor. Level: Free to start. Time: 1 hour.
Use it if
- You write or receive specs for features in an existing codebase
- You want agreed scope before code
- You review the plan before the agent edits files
Skip it if
- The change is a tiny fix a plan would not help
- You cannot open the code in Cursor
The method
Pressure test the spec (Claude: Chat)
Paste the spec into Claude, with names and secrets removed, and ask for gaps, risks and questions. Answer the questions yourself and update the spec.
Prompt to copy:
You are a senior engineer reviewing this spec: [paste]. List missing requirements, ambiguous words, edge cases and risks. Ask me up to 8 questions. Do not propose a design yet. If something depends on code you cannot see, say so.
You get: A spec with the gaps closed.
Tip: Ask what you would regret in a month. It finds missing edge cases.
Write acceptance criteria (Claude: Chat)
Ask Claude to turn the updated spec into numbered, testable acceptance criteria and a list of what is out of scope. Read each one and ask whether a test could prove it.
Prompt to copy:
From the final spec: [paste], write numbered acceptance criteria, each testable with a clear pass or fail. Then list what is explicitly out of scope and any assumptions I must confirm.
You get: Criteria a test could check.
Tip: Reject any criterion that says 'works well'. It cannot be tested.
Plan from the real code (Cursor: Plan Mode)
Open the repository in Cursor, press Shift+Tab in the chat input for Plan Mode and paste the spec and criteria. The agent researches your code, asks questions and writes an editable plan.
Prompt to copy:
Plan this change using the spec and acceptance criteria below. Research the code first. List the files you will change, the order of the steps, the tests you will add and the risks. Ask me before you assume anything. Do not edit files until I approve the plan. [paste spec and criteria]
You get: An editable plan that names real files.
Tip: Edit the plan yourself. Delete steps outside the scope.
Build one step at a time (Cursor: Agent)
Approve the plan and ask the agent to do one step, then read the diff and run the tests yourself. Move to the next step only when the criteria for that step pass.
You get: Reviewed changes, one step at a time.
Tip: Keep steps small. A big diff is a diff nobody reads.
Where this goes wrong
- A developer reads and tests every change before it merges. A plan is not a review.
- Privacy Mode in Cursor settings controls whether your code can be used to improve its models, so check it before you open a private repository.
- Do not paste secrets or customer data into either assistant.
- The Free plan has limited agent requests, so a long plan may need a paid plan.
Swap a tool
- GitHub Copilot instead of Cursor: If your team already works in GitHub Copilot, use its planning there with the same acceptance criteria.
Sources
More like this
- Fix a broken app without breaking more
- Short videos that open with a real hook
- Check if anyone pays before you build
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.