RFC-driven development for AI coding agents
Decide what to build before your agent builds it.
idea or existing code→verified PRD→features→rules→sequenced RFCs→reviewed, tested code
AI coding agents write code well. They are worse at deciding what to build, remembering yesterday's decisions, and noticing when two documents disagree. Every step here writes a markdown file the next step reads, so decisions outlive the chat session — and a script checks the files still agree. No CLI to learn, no framework, no lock-in.
RFC-driven since March 2025.
Install the plugin from inside Claude Code:
/plugin marketplace add nurettincoban/ai-prd-workflow /plugin install prd-workflow@ai-prd-workflow /prd-workflow:create-prd
Restart Claude Code between the install and the first command. Plugin commands carry the plugin's name.
Install the skills into your project:
cd your-project curl -fsSL https://raw.githubusercontent.com/nurettincoban/ai-prd-workflow/main/install.sh | bash -s -- .
In Codex, type $create-prd instead of /create-prd.
ChatGPT, Claude.ai, or anything else that takes a prompt: open a prompt from the commands below, copy it, and paste it in. Each prompt works on its own.
Restart your AI tool after installing. A running session does not see new skills, so the first command fails with Unknown skill — which looks like a broken install but is only a stale session.
What one run produced
We took the spec of a small URL shortener that our own v2.0 prompts had produced. It looks finished. We ran the commands on it, and three of the things they caught before any code existed were:
| What was there | What the workflow did |
|---|---|
| "Redirect short URL to original URL via HTTP 301" | /verify-prd: browsers cache a 301, so repeat clicks are never counted and deleted links keep redirecting. The fixed spec redirects with 302, and RFC-003 tests "never 301". |
| No user accounts, and anyone can "delete a short URL" | /verify-prd: anyone can delete anyone's link. Nobody was there to decide, so it wrote a proposed fix as an open question marked (assumption), not as a decision. |
| RFC-002 claims features F5, F6 and F11 | /workflow-status: its acceptance criteria only test the API, so the analytics page and chart those features require had nothing to make anyone build them. Every ID was cited, so a script could not see it. |
10 of 10 problems we had listed by hand, found by /verify-prd without seeing the list. (A plain agent asked to review the same PRD found them too.) 11 of 13 cross-document problems, found by the current /workflow-status in each of three runs, graded blind (the 3.1.0 prompt found 8, 9 and 8; the new checks were written against what it missed, so this is a regression check, not a held-out score). 12 RFCs and 203 planned tests, generated by the 3.1.0 commands, each RFC read cold by a second model, with the readers started by hand. About an hour of agent time on Claude Opus 5.5, and nobody answered the commands' questions. Browse the whole run →
How it works
Run the commands in order. Each one reads the files the previous ones wrote. Not sure what comes next? /workflow-status tells you.
Define what to build
Start from an idea, or from code that already exists.
Plan how to build it
Small units of work, in dependency order, with tests planned up front.
/extract-featurespromptTurns requirements into features with permanent IDs and MoSCoW priorities.
FEATURES.md/generate-rulespromptSets the standards the agent must follow, with dependency versions checked against the registry.
RULES.md/generate-rfcspromptSplits the work into small RFCs in dependency order, then checks each one with a fresh reader.
RFCs/ RFCS.mdBuild it, one RFC at a time
Plan, approve, code, prove — then review in a fresh context.
/implement-rfc <id>promptPlans, waits for your approval, writes the code, then runs the build and tests to prove each criterion.
/review-rfc <id>promptReviews the code against the RFC, the rules, and the test plan, in a fresh context.
reviews/↻ Then the next RFC.
Plan, approve, then code
/implement-rfc stops after the plan and waits for you.
Review with fresh eyes
/review-rfc will not review code written in the same conversation. In Claude Code it runs in a separate context automatically.
IDs never change
Requirements, features, rules and RFCs cite each other by ID. trace-check.py fails when a citation breaks or a Must-have feature has no RFC.
One file wins
When files disagree, PRD.md wins over FEATURES.md, then RULES.md, then the RFCs — and the other file is flagged for correction.
Your agent has a plan mode. It plans one task.
This workflow plans the product. The two work together: /generate-rfcs decides what the next piece of work is, and /implement-rfc hands your agent's planner a small, well-defined task.
| Built-in plan mode | This workflow |
|---|---|
| Plans one task: "how do I build this?" | Plans the product: what are we building, for whom, and what is out of scope? |
| The plan disappears with the session | PRD, features, rules and RFCs stay — across sessions, models, tools and teammates |
| Takes your request at face value | Interviews you first, so decisions are written down before any code exists |
| Reviews code by "looks right" | Reviews against written acceptance criteria, and checks the files against each other |
Each step catches what the others cannot
The numbers below you can check on the example in this repository. The cards are a field report from building a TypeScript library end to end with the workflow; that library is not public.
/workflow-status run on the v2.0 example, condensed. Full reportcross-document problems found by /workflow-status in each of three fresh runs that never saw our list, graded blind; the 3.1.0 prompt found 8, 9 and 8. See the grading
PRD problems found by /verify-prd on the same example — plus several we had missed. A plain agent asked to review the PRD found the ten too. See the eval
places where the generated RFCs would have made an implementer guess, found by cold reads on a second model and fixed before any code. Read the reports
A ten-line idea for a terminal to-do list, taken through every command to working code and tests, with the reviews that sent it back. See the todo-cli run
/verify-prdA function contradicting the PRD's own convention; an unspecified color space; a hidden rendering dependency.
It compared the spec with the reference implementation.
RFC edge casesThat the pinned TypeScript version would break the build; a clone-aliasing bug.
It reasoned about code that did not exist yet.
/review-rfcA geometry leak on an error path; unvalidated NaN inputs.
All 17 acceptance criteria had already passed.
/test-strategyNormals never checked for being finite, so degenerate geometry rendered black while every test passed.
It asks which tests should exist, not which do.
/workflow-statusTwo required files never created, while their RFC was reported complete.
It checked claims against the files on disk.
Fresh-reader checkAn RFC that contradicted itself; a criterion that could only pass by luck.
The author had read past both, repeatedly.
Before any code existed, an RFC's edge-case section predicted that a build plugin would not support TypeScript 7 yet, and named the fallback version. That is exactly what happened. Type-checking passed throughout, so only running the build revealed it.
Works where you work
install.sh puts the skills where each tool looks for them, and never overwrites a skill you have edited.
| Tool | Folder | Run a command |
|---|---|---|
| Claude Code | .claude/skills/, or the plugin | /create-prd (plugin: /prd-workflow:create-prd) |
| GitHub Copilot (VS Code, CLI) | .agents/skills/ | /create-prd |
| Cursor | .agents/skills/ | /create-prd, from the / menu |
| Gemini CLI | .agents/skills/ | /create-prd |
| OpenCode | .agents/skills/ | /create-prd |
| Devin | .agents/skills/ | /create-prd |
| Codex | .agents/skills/ | $create-prd, or pick it from /skills |
Try it on the example first
The example's before/ folder looks complete, and it is not. Copy it, run /workflow-status or /verify-prd, and compare with the problems we found by hand and with our run.
git clone https://github.com/nurettincoban/ai-prd-workflow.git cp -r ai-prd-workflow/examples/url-shortener/before linksnip ai-prd-workflow/install.sh linksnip