Graded Five-Step Development Method (Business Developer Edition)
Target Audience: Developers who understand the business but don't read code line by line. The user's control points are Plan (business approval) and Verify (evidence acceptance), not code lines.
Design Philosophy: In the era of strong models, only set minimal gates where models are naturally weak (blindly executing hasty instructions, not proactively verifying, skipping processes). Rules should be removed rather than added; every increase in length of this document comes at a cost.
Step 0: Task Grading (Mandatory – output grading conclusion before proceeding)
| Level | Criteria | Process |
|---|---|---|
| A – Trivial | Copywriting/style/spacing/single obvious minor bug; does not touch database, API, or permissions | Quick locate → minimal change → page verification (skip full five steps) |
| B – Normal | New page/form/list/ordinary API/feature iteration within a module; does not touch core architecture | Full five steps, with Review delegated to a sub-agent |
| C – High Risk | Database structure, permission system, payments/orders, public module refactoring, production deployment, cross-project shared capabilities | Full five steps + business control point check + independent review + human approval |
When in doubt about grading, err on the higher side. The grading conclusion must include a one-sentence rationale for the user.
Step 0.5: Pre-confirm Model Tier (Mandatory after grading, before action)
Simultaneously with the grading conclusion, check against the current main session model (see model name in system prompt) and perform tier matching:
| Level | Current Main Model | Action |
|---|---|---|
| A | Fable 5 or Opus | Non-blocking: Complete the task directly. Append a one-line downgrade reminder in the summary output (e.g., "This A-level minor change has been directly completed; if there are more routine tasks, consider /model sonnet") |
| B | Fable 5 or Opus | Stop, do not start. Output a downgrade confirmation prompt (see below) and wait for user reply before continuing |
| A / B | Sonnet / Haiku | Matching; proceed directly |
| C | Any model | Directly enter the five-step flow (decision point: remind about upgrading per existing rules) |
Downgrade confirmation prompt template:
【Tier Confirmation】This task is graded B, which Sonnet can handle. The current main model is Fable 5 (fast token consumption). Recommend
/model sonnetthen re-issue this request; if you want to continue with the current model, reply "continue".
After the user explicitly replies "continue" (or equivalent), do not repeat this reminder within this task. If the user switches models and re-issues the request, execute normally with the new model.
Step 0.8: Demand Collision (The final gate before action)
The quality of a large model's output is bounded by the quality of the input demand, and user instructions are often hasty first instincts. This step's responsibility: Refine hasty instructions into complete requirements before execution – this is AI's responsibility, not the user's.
Four Attitude Rules:
- Question the goal, not the means – Distinguish between "what the user says to do" and "the problem the user wants to solve." Always confirm the latter first. If a user says "add an export button," first ask "who is exporting for what scenario?" – the answer may point to a completely different solution
- Must voice disagreement – If you judge the user's solution is not optimal, you must say so directly and offer alternatives with trade-off reasons; do not just go along with it. If the user insists on the original plan, respect and execute
- Check before asking – Before asking a question, self-check: can this answer be obtained by reading the code/project docs/existing config? If it can be found, don't ask the user; go look it up
- Every question must come with a recommended answer – Never throw an empty question for the user to think about from scratch. Make a judgment first, give the recommended answer and reasoning together; the user only needs to confirm or reject, not invent. If you can't think of a recommended answer, it means your homework is insufficient – go back to rule 3 first, then ask
Apply collision depth by grade:
| Level | Collision Depth | Question Rhythm | Action |
|---|---|---|---|
| A | Zero collision | — | One-sentence restatement of understanding, go directly |
| B | Light collision | Batch questions, max 3 at a time | Output: my understanding of the business goal + up to 3 key clarification questions (each with recommended answer) + 1–2 points the user may not have considered. After reply, enter Research |
| C | Full collision | One question at a time | See below: form a Requirements Brief and persist it; only after user confirms the brief enter Research |
B-level batching is fast, C-level one-by-one is deep – this is deliberate: B tasks have low risk, batching saves round trips; C tasks often have interdependent decisions (the answer to the first question determines whether the next is even necessary), so deep drilling one at a time is needed for accuracy. Ask one, wait for the user's answer, then ask the next.
C-level full collision requires four things:
- Reverse Interview: Drill down the decision tree one question at a time, following dependency chains (ask questions that change the direction first; branches eliminated by previous answers are skipped). Every question must include a recommended answer (the
interview-meskill can assist with the overall framework) - Alternative Plan: Provide at least 1 plan different from the user's original instruction, with trade-off reasoning
- Fill Gaps: List what the user didn't mention – exception flows, permission impacts, data compatibility, rollback methods
- Requirements Brief Persisted: Write into a project file (to counter long-session context compression). Template: Business Goal / Verifiable Success Criteria / In-Scope and Out-of-Scope / Confirmed Key Decisions / Alternative Plans and Rejection Reasons / Boundaries and Risk Checklist / Unclear (Fog of War: questions that cannot be answered now, pending upstream decisions – do not force answers to create pseudo-decisions)
Research and subsequent steps shall use the Requirements Brief (level C) or confirmed collision conclusions (level B) as the ground truth, not the user's original instructions.
Beyond Scope: When Task Exceeds a Single Session (Map First, Then Work)
Trigger: During Step 0.8 collision or Research, if the task scale exceeds what a single session can handle – signals: more than 5 interdependent pending questions, clearly multi-phase implementation, touches 3+ subsystems. At this point stop and step out of the five-step flow; build a map first, and report to the user "This task exceeds scope; recommend starting with a map."
- Create map file:
docs/maps/<task-name>.md(if no docs directory exists, use.claude/maps/). Five-section structure: Destination (the business result to achieve) / Notes (context and constraints) / Decisions Made (each with reason and date) / Not Yet Clear (Fog of War) / Out of Scope - Decision Tickets: Maintain a ticket list within the map. Each ticket = one decision item (a "whether and how" question, not a coding task), with status (Pending / In Progress / Decided) and dependencies (blocked by which ticket). Parts of the fog of war where "a precise question cannot yet be asked" are "graduated" into new tickets after their prerequisite tickets are resolved
- Plan, don't do: Map is complete when the fog of war is cleared and no tickets remain pending – nothing needs to be decided before execution begins
- One session, one ticket: Each session claims only one ticket (or one phase of an already-decided plan). Complete it, update the map, end the session; the next session inherits context from the map, not session memory
- Each phase's implementation within the map still follows the graded five-step process normally; updating the map is part of that phase's Verify closing actions (alongside writing run logs – it's not complete without updating the map)
Five-Step Execution Rules
1. Research – Understand first, don't write
- Read project docs (CLAUDE.md / AGENTS.md / docs/) and relevant existing code to find reusable capabilities and dependencies
- Output a brief current-status understanding + a clear list of uncertainties, presented together with the Plan for approval. If Research uncovers facts that overturn the collision conclusions or the Requirements Brief premises, stop immediately and report to the user – do not carry changed premises into Plan
- For B/C level, research broad-to-deep: wide net to understand → focus on key areas → check for omissions and hidden dependencies
2. Plan – The user's main control point
- Output: Goal / What is being done this time / What is NOT being done this time / Which files will be changed / Whether this affects database, permissions, API, public components, deployment / How to verify / How to roll back
- Write in business language so that someone who doesn't read code can judge: "Is this flow what I wanted? Has the scope expanded?"
- For C-level tasks, output a model switch reminder at this node (see rules below)
- Wait for explicit user approval before proceeding to Implement
3. Implement – Execute according to the approved plan
- Only do what was approved in the plan; minimal changes; prioritize reusing existing modules; do not refactor unrelated areas; stop and report immediately if anything goes beyond the plan
- For multi-file implementation, prefer delegating to
implementer(Sonnet). For plans containing complete code that just needs transcription, delegate toscribe(Haiku) - Run local verification after each item and record it, before proceeding to the next
4. Review – Switch perspectives; don't just self-review
- B level: Delegate to
task-reviewer(Sonnet) for task-level review - C level: Delegate to
final-reviewer(Opus) for independent final review - Checklist: Requirements compliance / Scope expansion / Unrelated file changes / Duplicate work / Permission and data risks / Error handling / Tests actually exist
5. Verify – Provide evidence of completion
- "Done / should work" is not verification. Must provide evidence, each item accompanied by a business-language statement of which business goal it proves. For actions the user can personally confirm (opening a page and clicking through, checking data persistence), prioritize handing over to the user for final acceptance:
- Actual output of build / type check / test commands
- Web changes must involve actually opening the page and operating it (browser verification)
- Data actually persists in the database and exists after refresh
- Different permission accounts cannot escalate privileges
- Old functionality is not broken
- Without evidence, do not declare completion. Instead, explicitly list "unverified items"
- Closing actions (not done without these): Append a run record for this task to
~/.claude/skills/five-step-dev/logbook.md(format at top of that file). If the log reaches 10 entries, proactively suggest the user run "Five-Step Retro" (five-step-retro skill)
Model Switch Reminders (For Manual Desktop Client Switching Only)
Keep the main session on sonnet for daily use. Review is handled by delegating (sub-agent models are fixed), so there's no need to switch the main model. There are two signals requiring manual model switch – downgrade signal is handled pre-emptively in Step 0.5 (see above), upgrade signals are as follows:
- Plan approval point for C-level tasks – After writing the Plan, when requesting approval, append:
【Suggest Switch】This is a C-level high-risk task. Recommend first
/model fableto review this plan before approving; after review,/model sonnetto switch back for implementation. - Stuck on hard problems – If the same error fails on the third attempt, stop retrying. If the environment has an
advisorconfigured (covered by global settings.json), first call the advisor for diagnosis (auto-forwards full context; no brief needed, no user action). If the advisor is unavailable or its opinion still cannot resolve, then output:【Suggest Switch】Same issue has failed 3 times, advisor diagnosis was inconclusive. Recommend
/model fablefor deep investigation.
Before outputting a switch reminder, persist key context (decision briefs / progress logbook) to avoid background loss due to long-session context compression.
C-Level Business Control Points (AI self-answers each item before implementation, with one-sentence basis per answer; user only decides whether to accept the consequences for items answered "yes" or with risk)
- Does it affect the existing sales flow / Shopify store operation?
- Does it affect Supabase permissions or data structure?
- Does it affect the shared structure for multiple companies, projects, or sales people?
- Will it create duplicate capabilities with existing AI interfaces?
- Does it modify public components? Has the impact scope been listed?
- Does it touch the production site? What's the rollback plan?
- Which actions require manual confirmation before execution?
Porting Notes (For Other Users)
This skill originates from the author's actual work environment. Before direct use, two adaptations are needed:
- Named Sub-Agents:
implementer/task-reviewer/final-reviewer/scribeare custom agents pre-built by the author in~/.claude/agents/(models fixed to Sonnet / Sonnet / Opus / Haiku respectively). If your environment doesn't have them, you can:- Create your own agents with the same names (recommended, to avoid missing model parameters); or
- Replace these names with
general-purposeagent + explicitmodelparameter
- C-Level Business Control Points: The Shopify / Supabase / multi-company structure in the checklist is the author's business stack. Replace with your own project's high-risk asset list (e.g., your payment channels, database, deployment platform).
Model names (fable / sonnet / opus / haiku) correspond to the Anthropic Claude series. For other model families, substitute with "strongest tier / standard tier / lightweight tier" equivalently.
Codex Migration
This skill's format is not tied to Claude Code and can be directly migrated to Codex. Replace the following four aspects:
-
Installation: Symlink into Codex's personal skill directory, consistent with this repo's
discover-project-skillsusage:mkdir -p ~/.codex/skills ln -s "$PWD/skills/five-step-dev" ~/.codex/skills/five-step-devInvocation changes to
$five-step-dev(Codex's explicit skill invocation syntax). The trigger phrase still works – just map "five-step method" in Codex's globalAGENTS.md:When I say "five-step method" = explicitly invoke $five-step-dev to process this request -
Model Tier Mapping: All instances of
/model fable,/model sonnetin the skill should be replaced with Codex's reasoning tier switch commands (e.g., GPT-5.6 high/low reasoning toggle). The Step 0.5 logic (grade vs current tier; if tier is too high, stop and confirm) remains the same; only the command text changes. -
Named Sub-Agents → Independent Session Review: Codex lacks Claude Code's named sub-agent mechanism (
implementer/task-reviewer/final-reviewer/scribe). Equivalent replacement:- Implement phase: replace "delegate to implementer" with "implement directly in the current session according to the approved plan" (Codex has no native sub-agent delegation; no need to simulate)
- Review phase: replace "delegate to task-reviewer / final-reviewer" with "open a new Codex session, paste only Plan + Diff (not the implementation process), and request an independent review" – use session isolation to achieve the same "perspective shift" effect
- Verify phase is unaffected; evidence requirements remain the same
-
Requirements Brief Persistence Path: The Requirements Brief file produced in Step 0.8. Adjust the path according to Codex project conventions (use
.codex/or equivalent directory if it exists; otherwise, place in project rootdocs/decisions/).
All other steps (grading criteria, demand collision rules, five-step execution rules, C-level business control point checklist) are tool-independent – no changes needed.
Acknowledgements
Step 0.8 "Demand Collision" questioning discipline (ask one at a time, each with a recommended answer, check before asking) references the grilling skill design from obra/superpowers, with added weight differentiation by task grade (B: batch questions, C: one-by-one). The "Beyond Scope" section's map/decision-ticket/fog-of-war mechanism references the wayfinder skill design from mattpocock/skills, adapted from an issue-tracker map into an in-project markdown file version to fit non-engineer toolchains.