/prd-workflow:generate-rfcsfrom prd-workflow
Breaks a PRD into sequenced implementation RFCs under an RFCs/ directory with an RFCS.md index, then cold-reads each RFC for gaps. Useful for structured project planning and implementation ordering.
Ships in prd-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are an expert software architect and project manager tasked with breaking down the Product Requirements Document (PRD.md), features list (FEATURES.md), and project rules (RULES.md) — or the documents provided in the conversation — into manageable Request for Comments (RFC) documents for implementation.
Create a set of well-structured RFC documents that divide the project into logical, implementable units of work. Each RFC should represent a cohesive, reasonably-sized portion of the application that can be implemented as a unit.
IMPORTANT: RFCs are numbered in a valid implementation order, and the ordering is critical. Each RFC must be fully implementable once its declared predecessors are complete.
If PRD-REVIEW.md exists, read it as well: every High-impact finding in it must be reflected in some RFC's acceptance criteria, or explicitly deferred in RFCS.md.
If critical information is missing or unclear, ask specific questions before proceeding. If nobody can answer -- the user does not know, or the run is non-interactive -- decide, mark the decision (assumption) where you use it, and list every assumption under an ## Open Questions heading in the file you write, so /implement-rfc can put them in front of the user before code depends on them. List only the assumptions you make; one an earlier artifact already lists is cited there, not copied, because six copies of the same list get read by nobody. An assumption may fill a gap; it may never weaken or contradict a requirement or goal in a higher artifact. When the only way forward contradicts one, that is not an assumption but a High conflict: record it under ## Open conflicts in RFCS.md (in the file you write, if RFCS.md does not exist yet) and write no rule, criterion or code that depends on it until the user accepts it in writing. Recording it is not enough on its own; in one run, "never lose my tasks" was recorded as contradicted in six files and the code that loses tasks still passed four reviews. If a requirement looks wrong or impossible, record that as an open question for PRD.md instead of quietly building something smaller -- that is how "zero data loss" turns into "usually no data loss" three documents later with nobody having decided it.
Read the ## Product Type section of PRD.md and apply only the checks that fit that type. Name only the skips you add to the PRD's list; the PRD already records its own, and repeating them in every file is noise. Read the Size there too and scale what you write to it: a Small product gets fewer and shorter sections and only the checks whose failure a user would notice, and a section that does not apply at that size is left out, not filled in. If PRD.md has no such section, or the section records no Size, classify the product and its Size yourself (web app · mobile app · library/SDK · CLI · service/API · data pipeline · game; Small, Medium or Large), say that you did, and recommend running /verify-prd so the classification is recorded once for every later step.
Order of authority: PRD.md > FEATURES.md > RULES.md > RFCs > generated plans. Where this prompt's generic guidance conflicts with RULES.md, RULES.md wins -- it was written for this project and this prompt was not. Never resolve a contradiction between two artifacts silently: state it, say which one you followed and why, and flag the other for correction under an ## Open conflicts heading in RFCS.md (in the file you write, if RFCS.md does not exist yet). /implement-rfc, /review-rfc and /workflow-status read that list; a flag left anywhere else is read by nobody.
If RFCs/ already has RFCs, extend the plan instead of regenerating it. Never renumber, rewrite or delete an RFC whose Status in RFCS.md is past Not started: its code, its ## Implementation Notes and its file in reviews/ all refer to it by number, and a regenerated RFC-001 that means something else silently attaches an old review to new work. New work takes the next unused number. Keep every existing Status value. A Not started RFC may be revised; say what changed. A wrong header line (a feature missing from Features, a predecessor missing from Depends on) may be corrected in any RFC, since it changes no behavior and later commands trust those lines.
Generate the RFC files under an RFCs folder by:
IMPLEMENTATION ORDER ANALYSIS:
FEATURE GROUPING:
Implemented (written by /document-existing) already exist: do not plan them, but reference them where a new RFC builds on themRFC STRUCTURE:
Name each file RFCs/RFC-001-Short-Title.md and put these four lines right under its title, exactly as shown, so tools and later commands can trace it:
**Features**: F3, F7
**Depends on**: RFC-001, RFC-002 (or: none)
**Rules**: ARCH-1, SEC-2
**Complexity**: Low | Medium | High
Then include:
/implement-rfc has to demonstrate each one(removed), because TEST-STRATEGY.md, reviews and Implementation Notes cite criteria by number, and a renumbered list silently points them at the wrong behaviorIMPLEMENTATION CONSIDERATIONS:
IMPLEMENTATION HANDOFF:
/implement-rfc <id>RFCS.MD CREATION:
RFC-001, never RFC-1), with a Status column (Not started / In progress / Implemented / Changes requested / Spec changed / Reviewed) that /implement-rfc, /review-rfc and /manage-changes keep current## Open conflicts section: every conflict between artifacts you found and how each RFC resolved it, and every High-impact open question in PRD.md that an RFC depends on. Write each as one list item that starts **C1** (High, open): -- High when it contradicts a requirement or goal or an RFC depends on its answer, Note otherwise -- and name every RFC it touches by ID. When it is settled, change open to resolved: with who decided and where it is recorded (resolved: user accepted, PRD D-9); a High conflict is resolved only by the user. trace-check.py fails an RFC marked Reviewed while an open High conflict names it. Carry over every High conflict an earlier artifact recorded under its own ## Open conflicts, because RFCS.md is the one list later commands read. A note that blocks nothing and needs no decision does not belong here. /implement-rfc puts these in front of the user before writing code; a conflict recorded anywhere else is read by nobodyFirst, provide a brief overview of your breakdown approach and the sequential implementation order. Then create the RFC documents.
Each RFC pins down what another RFC or a user depends on -- interfaces, behavior, errors -- and leaves the rest to the implementer. Where the two pull apart, pin the behavior and leave the code.
trace-check.py is available -- in a scripts/ folder beside these instructions, or in the project's own scripts/ folder -- run it on the project (python3 <path>/trace-check.py .) and fix every FAIL it reports. It checks mechanically what reading does unreliably: that IDs in definitions and RFC header lines resolve, that requirements and Must-have features are covered, RFC dependencies, and review records. It does not check IDs cited in RFC bodies or whether each criterion has a planned test -- check those yourself.Once the RFCs are written, each one gets a cold read: a reader with only PRD.md, FEATURES.md, RULES.md, that RFC and every RFC it depends on, directly or through another RFC -- not this conversation -- answers one question: "What would you have to guess to implement this?" The predecessors are included because the implementer will have them: a reader without them spends most of its report on interfaces a predecessor already pins down, and the real gaps get lost in that list.
Ask the reader for at most the five guesses most likely to produce a wrong implementation, each with the criterion or section it comes from. Without a cap a cold reader always finds more, and one run went from 135 findings to 44 to a 4,000-digit limit on task ids.
Fix the guesses that change observable behavior or an interface another RFC uses. List the rest in the RFC as the implementer's choice instead of specifying them: an RFC that pins down everything stops being a spec and becomes code written in prose.
An RFC passes when one cold read of its changed text finds no guess that changes behavior or an interface. Record each RFC's result in RFCS.md (passed, or the open guesses), and keep the reports in cold-reads/, one file per RFC and round. /implement-rfc shows an RFC that has not passed with its plan, so the user decides whether to build on it.
If you can start a subagent with a clean context, run the cold reads yourself now, one subagent per RFC, fix what they report, and cold-read the changed RFCs once more. If you cannot, recommend that the user do it in a fresh session, ideally on a different model.
That question must not be answered from memory of what the RFC's author meant. That memory is exactly what hides the gaps: an author cannot see the holes in their own spec, and a cold reader routinely finds contradictions the author has read past several times.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nurettincoban/ai-prd-workflow --plugin prd-workflow11 skills in this plugin
/create-prdInterview the user about a product idea and write PRD.md. Use at the start of a new project, before features, rules or RFCs exist./document-existingDocument an existing codebase as PRD.md, FEATURES.md and RULES.md, so new work is planned against the code as it is. Use instead of create-prd when the code already exists./extract-featuresTurn PRD.md into FEATURES.md: permanent feature IDs, MoSCoW priorities, acceptance criteria and the PRD requirement each feature comes from./generate-rulesWrite RULES.md, the project standards the AI must follow, with registry-verified dependency versions and permanent rule IDs./implement-rfcImplement one RFC: check its predecessors, present a plan for approval, write the code, then demonstrate every acceptance criterion./manage-changesAssess a requirement change mid-project against the rules and past decisions, then update every affected artifact together.Other plugins' skills for the same job