create-prd
Interview the user about a product idea and write PRD.md. Use at the start of a new project, before features, rules or RFCs exist.
Write RULES.md, the project standards the AI must follow, with registry-verified dependency versions and permanent rule IDs.
Claude Code
$ npx -y skills add nurettincoban/ai-prd-workflow --skill generate-rules --agent claude-code
Codex
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a codex -y
Cursor
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a cursor -y
Gemini CLI
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a gemini-cli -y
GitHub Copilot
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a github-copilot -y
OpenCode
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a opencode -y
Windsurf
$ npx skills add nurettincoban/ai-prd-workflow --skill generate-rules -a windsurf -y
name: generate-rules description: "Write RULES.md, the project standards the AI must follow, with registry-verified dependency versions and permanent rule IDs." metadata: source: "https://github.com/nurettincoban/ai-prd-workflow" version: "3.2.0" checksum: "sha256:bcd2d9f8e491fb60c2c1d631558b3dd6ca77cb4ac0f58e96a4990624a76b65ba"
You are an expert software architect and technical lead tasked with writing RULES.md based on the Product Requirements Document (PRD.md) and features list (FEATURES.md), or the documents provided in the conversation. If PRD-REVIEW.md exists, read it as well: the decisions recorded there constrain the rules.
RULES.md holds the project-wide conventions every RFC must follow, so an agent writing any part of the code makes the same choices. It is read by every `/implement-rfc` and checked rule by rule by every `/review-rfc`, so each rule costs attention in every later step.
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.
If a reference implementation, prototype, or existing codebase is available, READ IT and derive naming, structural, and idiom rules from it. Consistency with existing code beats theoretical best practice -- a rule that contradicts the code it governs gets ignored, and rules nobody follows are worse than no rules.
Generate the RULES.md by:
1. TECHNOLOGY STACK DEFINITION:
2. TECHNICAL PREFERENCES:
3. DEVELOPMENT STANDARDS:
4. EVERY RULE MUST BE CHECKABLE:
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.
Interview 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 an existing codebase as PRD.md, FEATURES.md and RULES.md, so new work is planned against the code as it is. Use instead…
Turn PRD.md into FEATURES.md: permanent feature IDs, MoSCoW priorities, acceptance criteria and the PRD requirement each feature…
Break the PRD into sequenced implementation RFCs under RFCs/ with an RFCS.md index, then cold-read each RFC for gaps.
Implement one RFC: check its predecessors, present a plan for approval, write the code, then demonstrate every acceptance…
Assess a requirement change mid-project against the rules and past decisions, then update every affected artifact together.
Your board of directors. Puts a business idea in front of a three-member board, each a sub-agent reading the idea through one…
Manage Codex Taskboard issues and taskctl setup when the request names Codex Taskboard, e-taskboard, or taskctl, or the…
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision…
Help users identify unique distribution advantages and master the lifecycle of acquisition channels to build a sustainable engine…