[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77M8PPH2M47M4W8BH7AXR47":3,"skill-same:01M77M8PPH2M47M4W8BH7AXR47":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":49},"01M77M8PPH2M47M4W8BH7AXR47","prd",null,"Write a Product Requirements Document that locks product intent (problem, users, success metrics) before any engineering plan, in three tiers with a review mode. Use when: 'write a PRD', 'spec out a feature', 'product brief', 'product requirements doc', 'define the requirements', 'what are we actually building', 'acceptance criteria', 'how will we know it worked', or a user-facing change needs written alignment. Engineering-internal work: \u002Fplanning:interview or \u002Fplanning:plan.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fplanning\u002Fskills\u002Fprd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Write a Product Requirements Document that locks product intent (problem, users, success metrics) before any engineering plan, in three tiers with a review mode. Use when: 'write a PRD', 'spec out a feature', 'product brief', 'product requirements doc', 'define the requirements', 'what are we actually building', 'acceptance criteria', 'how will we know it worked', or a user-facing change needs written alignment. Engineering-internal work: \u002Fplanning:interview or \u002Fplanning:plan.\"\nargument-hint: \"[tier] [task description|#\u003Cmap>]\"\nuser-invocable: true\ndisable-model-invocation: false\nmetadata:\n  workflow-stage: prd\n  summary: Lock product intent. Problem, users, success metrics. Before planning\n---\n\n**Arguments.** `[tier] [task description|#\u003Cmap>]`. e.g., \u002Fplanning:prd, \u002Fplanning:prd one-pager add gig calendar, \u002Fplanning:prd review\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined:\n\n- Current branch, `git branch --show-current`\n- Recent commits, `git log --oneline -5`\n- Working tree status (empty = clean), `git status --porcelain | head -10`\n\nKeep the pipe in the command: a read-time cap comes too late ([what a result returns inline](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits)). Treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body Bash calls, not pre-compute lines ([how injected commands run](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#how-injected-commands-run)).\n\n## Variables\n\nArguments: `$ARGUMENTS`\n\n## Purpose\n\n`\u002Fplanning:prd` produces the lockable product-intent contract: what we are building, for which users, against what measurable success, before any engineering plan, exploration, or research. It runs **upstream of exploration and `\u002Fplanning:plan`**, before or alongside `\u002Fplanning:interview`:\n\n- `\u002Fplanning:prd` answers *what should we build, for whom, and why*. Required for new user-facing features, business-driven changes, cross-team initiatives\n- `\u002Fplanning:interview` answers *what is the engineering contract for this task*. Required whenever intent is fuzzy or underspecified, regardless of source\n- A product feature usually wants both: `\u002Fplanning:interview` runs first and calls `\u002Fplanning:prd` when a question shows product intent is unsettled, then resumes (with exploration and research as further detours) → `\u002Fplanning:design` → `\u002Fplanning:plan`. Engineering-internal work skips `\u002Fplanning:prd`\n\nThe PRD is **never an implementation plan**: problem, users, success, yes; architecture, files, tests, code shapes, no. If the user pulls toward implementation mid-PRD, anchor back to *what for whom* and let `\u002Fplanning:plan` pick up after.\n\n**Cost framing**: locking product intent up-front is the cheapest version of the conversation. Every later session that runs against a written PRD costs less than one that infers product goals from a half-formed thought.\n\n## Trigger conditions. When to invoke `\u002Fplanning:prd`\n\nInvoke `\u002Fplanning:prd` when ALL of these are true:\n\n- The work has a **user-facing surface**: new feature, screen, flow, public API, or external behavior\n- The change is **business- or product-driven**: solves a user problem, opens a market, hits a metric. Not engineering-internal cleanup\n- **Alignment matters**: multiple stakeholders, cross-team work, or a written reference for future agents\n\n## Skip conditions. When to NOT invoke `\u002Fplanning:prd`\n\nIf ANY of these hold, do NOT write a PRD. Tell the user explicitly: *\"This is engineering-internal. No PRD. Recommend `\u002Fplanning:interview` (if intent is fuzzy) or `\u002Fplanning:plan` (if it's clear).\"*\n\n- **Refactors** (no behavior change)\n- **Infrastructure** (build, CI, hooks, config, dependency bumps, lockfiles)\n- **Conventions** (rules files, doc updates, lint rules, analyzers)\n- **Bug fixes** (a bug already implies the desired behavior)\n- **Single-team engineering work** with no user-visible surface\n- **Tooling**, scripts, internal automation\n- **Documentation-only** changes\n\nIf ambiguous, surface the question once and let the user pick. Never silently write a PRD for an engineering-internal task.\n\n## Action Router\n\nRead `$ARGUMENTS` whole. If its first word is one of the tier words in the table (`one-pager`, `consumer`, `consumer-feature`, `b2b`, `b2b-internal`, `synthesize`, `review`), that row wins and the rest of `$ARGUMENTS` is the task. Any other first word starts the task description, not a tier. When `$ARGUMENTS` is empty, ask for the tier (surface rules below).\n\n| Argument | Action | Use case |\n|----------|--------|----------|\n| *(empty)* | **Smart default** | If a prior PRD exists for the topic, offer resume\u002Frevise\u002Fstart-fresh. Otherwise prompt for tier + task. |\n| `\u003Ctask description>` (no tier word) | **Full PRD, prompt for tier** | Run skip-condition check, then ask which template tier (one-pager \u002F consumer-feature \u002F B2B-internal). |\n| `[tier] #\u003Cmap>` | **PRD from a map issue** | Step 2 reads its decisions |\n| `one-pager \u003Ctask>` | **Tier 1. Thin one-pager** | Small feature, single team, fast lock. ~½ page. |\n| `consumer \u003Ctask>` or `consumer-feature \u003Ctask>` | **Tier 2. Consumer feature** | User-facing app feature with metrics, user stories, risk surface. ~1 page. |\n| `b2b \u003Ctask>` or `b2b-internal \u003Ctask>` | **Tier 3. B2B \u002F internal** | Stakeholders, compliance, integration, rollout, change-management. ~2 pages. |\n| `synthesize \u003Ctask>` | **Synthesis-only PRD** | Skip Q&A. Produce PRD from existing conversation context when it already holds rich product context. Still runs skip-condition check (Step 1) and survey (Step 2). |\n| `review` | **PRD review** | Critique an existing PRD.md against template + skip-conditions. |\n\nTier choice rationale: [`context\u002Ftemplates.md`](context\u002Ftemplates.md). When the tier is unclear from the task description, present the three tiers with one-line descriptions: via `AskUserQuestion` when the plugin's `use_ask_user_question` user config (`${user_config.use_ask_user_question}`; unexpanded or empty means off) is on, numbered inline prose otherwise.\n\n## The PRD process\n\n### Step 1. Skip-condition check\n\nBefore any other work, run this mandatory check: validate the request matches the trigger conditions. If it matches the skip conditions, STOP and tell the user:\n\n> *\"This looks engineering-internal (`\u003Creason>`). PRDs add cost without value here. Recommend:\n> `\u002Fplanning:interview` for fuzzy intent OR `\u002Fplanning:plan` directly if scope is clear.\"*\n\nDo not proceed unless the user explicitly overrides (\"write the PRD anyway\") OR clarifies the user-facing\u002Fbusiness framing.\n\n### Step 2. Survey before you write\n\nSpend the first turn grounding yourself, in parallel:\n\n- Take product direction and current modules from the project's always-loaded instructions (root `CLAUDE.md` \u002F `AGENTS.md`), already in context; read a nested `AGENTS.md` under the area the topic touches, since those load only when a file they cover is read\n- When the topic touches a known module, read the domain glossary: `\u002Fdomain-driven-design:ubiquitous-language lookup` via the Skill tool when available, else Glob `**\u002F*{glossary,Glossary,GLOSSARY,ubiquitous,UBIQUITOUS}*.md` and Read the match covering the area\n- An item ref (`#\u003Cmap>`): read it per [map-source](..\u002F..\u002Fcontext\u002Fmap-source.md)\n- `Glob` and `Grep` for keywords from `$ARGUMENTS` to spot existing surfaces\n- `git log --oneline -20` for recent product direction\n- List the project's own rules files that govern the area (architecture, modules, conventions)\n- Note what `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002F` (default `.work\u002F`) already contains: prior PRD, PLAN, design, exploration and research artifacts\n- When `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002Fbrainstorm.md` exists, read its `## Handoff` block as seeds the rounds confirm: `Problem` and `Intent (why, in the user's words)` seed the Problem, `Vision (where this heads)` the Goals `Vision:` line (`not stated` becomes `none stated`), and `Chosen direction` with `Rejected options` stay context for the rounds, not requirements, since the PRD records the problem and its success, not the solution\n\nIf a prior `PRD.md` exists for this topic, ask: **resume** (continue from open questions), **revise** (in-place edits, bump `updated:`), or **start fresh** (append a dated restart note capturing why below the PRD's frontmatter, then rewrite; PRD.md is never committed, so the restart note is its only history, carried by the copy pasted into the pull request body or linked issue).\n\nSurvey output is a one-paragraph summary in your reply. Then move to frontier-rounds Q&A.\n\n### Step 3. Pick the template tier\n\nIf not specified in `$ARGUMENTS`, surface the tier choice (card only under the `use_ask_user_question` opt-in; numbered prose otherwise):\n\n| Tier | When |\n|------|------|\n| **1. One-pager** | Small feature, single team owns it, low ambiguity. ~½ page. Sections collapsed; one-line each. |\n| **2. Consumer-feature** | User-facing app feature with metrics, 1-2 user stories, risk surface. ~1 page. Full sections. |\n| **3. B2B-internal** | Internal\u002FB2B feature with stakeholders, compliance, integration, rollout, change-management. ~2 pages. Full sections + stakeholders, rollout, dependencies\u002Fintegrations. |\n\nTier governs section depth, not section presence: all three tiers cover the same nine required sections listed in Step 5.\n\nFull templates: [`context\u002Ftemplates.md`](context\u002Ftemplates.md). Read on demand.\n\n### Step 3.5. Synthesis-only path (`synthesize`)\n\nWith `synthesize`, skip Step 4 Q&A and produce the PRD from existing conversation context: prior discussion, explored files, research findings, user statements already captured. Steps 1 and 2 still run.\n\n`synthesize` also skips the always-on coverage prompt and reports it unexamined, per \"Acceptance-criteria capture\" below.\n\nIf after the survey a required section has NO answerable content in the conversation, record it as an open question rather than forcing Q&A; `\u002Fplanning:interview` or `\u002Fplanning:plan` picks it up downstream.\n\n### Step 4. Drive frontier-rounds Q&A\n\n**Skipped when `synthesize` was invoked**. Go directly to Step 5.\n\nAsk in frontier rounds: each round surfaces every open question whose prerequisites are settled as one numbered set (grouped by PRD section), each with a recommendation; a question that depends on another still open waits for the round after its prerequisite resolves. Render a round via `AskUserQuestion` only when the plugin's `use_ask_user_question` user config is on and the round is independent questions that fit one `AskUserQuestion` call (the per-call question limit: \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fagent-sdk\u002Fuser-input#limitations>). Inline prose otherwise.\n\nEach recommendation carries a `Basis:` line: `verified` with the `file:line`, tool output, or URL it rests on, or `judgment` (non-consequential only). A consequential one (cross-repo, shared infrastructure, irreversible, or security) is grounded before it is presented, in the affected code plus its consumers and in external research that reads official docs first; route that work to the exploration or research capability rather than doing it here. One research cannot settle is withheld: ask the question open and name the evidence that would settle it, or record it under **Open questions**. A changed recommendation is restated as old → new → why. Contract: [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Frecommendation-basis.md`](..\u002F..\u002Fcontext\u002Frecommendation-basis.md).\n\nEach candidate question first passes the self-answer step, [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fself-answer.md`](..\u002F..\u002Fcontext\u002Fself-answer.md): a fact it settles is stated with its basis and source tag, not asked.\n\nQuestion shapes that recur, in priority order:\n\n| Section | Highest-value surfacing question |\n|---------|----------------------------------|\n| Problem | \"Whose problem is this, and what do they currently do instead?\" |\n| Goals | \"If we ignore implementation, what changes for the user when this ships?\" Then, once for the feature: \"Which shortcut in building this would cost users something, and do we take it or not?\" And for the Vision line: \"Past this release, where do you want this to head?\" |\n| Non-goals | \"What is explicitly out of scope so we don't drift?\" Then: \"For every new option, control or setting: what is it for?\" Any that no one can explain lands in this section. |\n| Users | \"Who is the primary user. One persona or many? Walk me through their day before and after.\" |\n| User stories | \"Pick the one most-important journey: as a `\u003Crole>` I want to `\u003Caction>` so that `\u003Coutcome>`.\" |\n| Success metrics | \"How will we know it worked? Name the metric and the threshold. Adoption %, conversion %, time saved, error rate.\" Then: \"Which repeated task that brings users back does this improve, and does the metric measure that task?\" And: \"What result would make us stop or kill this feature?\" |\n| Quality requirements | \"Which of these does the feature touch, and where would a wrong guess change the design or a check grade it?\", over Step 5's prompt list at the tier's depth. Ask for a measurable target only there. |\n| Acceptance-criteria coverage | Asked once, per \"Acceptance-criteria capture\" below. Never one question per criterion. |\n| Dependencies \u002F risks | \"What outside this team must exist or change for this to ship? What's the biggest risk?\" |\n| Assumptions | \"What are we taking as true without proof, and what would show it false?\" |\n| Open questions | \"What is genuinely undecided that `\u002Fplanning:plan` needs an answer to?\" |\n\nStop asking once every required section has either a resolved answer or an explicit \"open question with revisit trigger\".\n\n### Step 5. Persist the PRD\n\nDerive `\u003Ctopic-slug>` from the task description or current branch name (kebab-case, ≤40 chars), the same slug `\u002Fplanning:interview`, `\u002Fplanning:design`, and `\u002Fplanning:plan` use for this topic. Write to `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002FPRD.md` (default `.work\u002F`), never committed; placement per the lifecycle artifact protocol [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md). Once it locks, paste the PRD into the pull request body or the linked issue. PRD.md sits beside the topic's `PLAN.md` and design artifacts.\n\nWhen a PRD.md already exists for the topic, never silently overwrite it: offer resume, revise, or start fresh. If scope shifted, append a dated restart note capturing why before rewriting.\n\nFrontmatter:\n\n```yaml\n---\nstatus: draft         # draft | locked | superseded\ntier: one-pager       # one-pager | consumer-feature | b2b-internal\ncreated: \u003CISO-8601 UTC, e.g. 2026-06-04T14:30:00Z>\nupdated: \u003CISO-8601 UTC, e.g. 2026-06-04T14:30:00Z>\n---\n```\n\nRequired sections (every tier; verbosity varies):\n\n1. **Problem**. What is broken, missed, or unmet for users today\n2. **Goals**. Outcome-level, not implementation-level, plus one `Vision:` line on where the user wants this to head (`none stated` when they gave none)\n3. **Non-goals**. Explicit out-of-scope items, including any setting, control or option with no stated reason. Asking for a reason never cuts an option the consuming project keeps configurable on purpose: there the option stays and its reason is recorded\n4. **Users**. Primary persona(s) + 1-2 user stories in `as a \u003Crole>, I want \u003Caction>, so that \u003Coutcome>` form\n5. **Success metrics**. Named metric + threshold + measurement window, tied to the repeated task users come back for; when the metric does not measure that task, say so; plus one `Stop condition:` line, the result that would end or kill the feature\n6. **Quality requirements**. Non-functional requirements (NFRs): how well the product must do what it does, one line each in the `Quality requirement:` format of [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Finterview\u002Fcontext\u002Fnfr-prompts.md`](..\u002Finterview\u002Fcontext\u002Fnfr-prompts.md), which owns the prompts and when a target is owed\n7. **Dependencies \u002F risks**. Outside-team dependencies + top 1-3 risks with mitigations\n8. **Assumptions**. What the PRD takes as true without proof, each with what would show it false; `\u002Fplanning:interview` carries them into the Brief's Captured assumptions\n9. **Open questions**. Anything genuinely undecided that `\u002Fplanning:plan` needs answered\n\nTier-3 (B2B) adds: **Stakeholders**, **Rollout**, **Compliance \u002F integration**.\n\nEach tier's template in [`context\u002Ftemplates.md`](context\u002Ftemplates.md) sets which quality prompts it covers: one-pager, only where the feature moves the current bar; consumer-feature, every prompt it touches; B2B-internal, all. Under `synthesize` or an unattended run, an unstated target goes under **Assumptions** in the `target assumed` form, never the requirement line.\n\n**Durability over precision.** Describe the product through its interfaces, types, and behavior contracts, not file paths or line numbers; the PRD should still be accurate after a refactor.\n\n**Written for a product owner who scans.** Each section opens with its point and carries no more words than the meaning needs: invoke `\u002Fwriting:be-concise` via the Skill tool when the `writing` plugin is enabled, else apply it inline. The nine required sections, the tier's depth, and every metric, threshold and open question stay.\n\n**Non-goals graduation edge.** A non-goal that is a permanent rejection, not a deferral, graduates to the consuming repo's rejected-concept ledger, one file per concept at `docs\u002Fout-of-scope\u002F\u003Cconcept>.md`, which gains a \"Prior requests\" entry each time the concept resurfaces, so the ledger answers later proposals instead of relitigating them. Create the file on the first permanent rejection; with no ledger, the plain Non-goals list suffices.\n\nTest seams (where, and at how few, the feature is tested) are not a PRD concern: `\u002Fplanning:design` sketches them as a design thread and `\u002Fplanning:plan`'s Test strategy sets the boundaries.\n\nOptionally offer to render the finalized PRD as a self-contained HTML pitch view for non-engineer stakeholders: a static generated view, never an editor with real data bound in. PRD.md stays the record. Write the view to the OS temp directory, never beside `PRD.md`, per the artifact protocol linked above. Resolve `medium` (option `${user_config.medium}`; `\"\"` if unsubstituted, never in shell) first per [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Frendered-view.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Frendered-view.md) \"Other optional views\": `terminal` skips the offer.\n\n### Step 6. Hand off\n\nAfter writing the PRD, recommend the next step by remaining ambiguity:\n\n- **Engineering scope still fuzzy** (constraints, untouchable areas, perf budget unclear) → `\u002Fplanning:interview` in this session (it reads the topic's `PRD.md` as scope)\n- **Engineering scope is clear, codebase grounding needed** → `\u002Fdiscovery:explore` if enabled, otherwise the environment's codebase-exploration capability\n- **Need external research (libs, APIs, comparables)** → `\u002Fdiscovery:research` if enabled, otherwise the strongest research capability available\n- **Engineering scope clear and externals understood** → `\u002Fplanning:design`, which records a one-line early exit when no design question is open and hands off to `\u002Fplanning:plan`\n- **The locked PRD is one unit of work that a later session, an AFK lane or another person picks up** → `\u002Fwork-items:track add --agent-ready`, one tracker item carrying the PRD's acceptance criteria\n- **An open question waits on a stakeholder** → also `\u002Fplanning:interview document \u003Ctopic>`, the interview's document surface, which turns it into a document that person fills in; it runs beside the next step, not in place of it\n\nDo NOT auto-clear or auto-invoke. Recommend; let the user pull the trigger.\n\n## Acceptance-criteria capture\n\nTwo behaviors apply to this PRD's verifiable statements (the Step 4 success-metrics and user-story rows and any acceptance criterion).\n\n### Coverage prompt. Always on, asked once\n\nWhile capturing them, ask ONE question: are they missing an **unwanted-behavior** case (an `IF \u003Ctrigger>, THEN \u003Cresponse>` criterion) and a **state-driven** case (a `WHILE \u003Cstate>, \u003Cresponse>` criterion)? One prompt covering both, never a per-criterion interrogation, and **\"neither applies\" is a valid answer** that closes it for the session. This runs whatever the acceptance-criteria format resolves to, and with no convention file present at all; it is a coverage check, not a format.\n\n### Non-interactive runs skip the ask and say so\n\nThe **`synthesize` action skips it**, along with any run that has nobody to answer: a dispatched worker, a forked subagent, a headless invocation, or any caller that declared the run unattended. In every one of those the ask is SKIPPED rather than blocking, and the returned summary states that **unwanted-behavior and state-driven coverage went unexamined**. Record the same line in the PRD's **Open questions** section so it outlives the summary.\n\nThe unattended condition is **declared by the caller, never sniffed**: never read an environment variable to decide it; `synthesize` is an explicit argument, which is a declaration.\n\n### EARS tags, when the convention selects them\n\nResolve `acceptance_criteria_format` per \"Resolving `acceptance_criteria_format`\" below. Under `free-text`, the default and every degrade, every section is emitted untagged, the same shape as a run with no convention file at all. Under `ears`, each acceptance criterion this run emits carries a bracketed pattern prefix on a plain bullet:\n\n| Tag | Pattern |\n|---|---|\n| `[ubiquitous]` | an always-true requirement, no trigger and no state |\n| `[event-driven]` | `WHEN \u003Ctrigger>, \u003Cresponse>` |\n| `[state-driven]` | `WHILE \u003Cstate>, \u003Cresponse>` |\n| `[unwanted-behavior]` | `IF \u003Ctrigger>, THEN \u003Cresponse>` |\n| `[optional-feature]` | `WHERE \u003Cfeature is included>, \u003Cresponse>` |\n\n```text\n- [event-driven] WHEN the upload completes, the manifest is rewritten\n- [unwanted-behavior] IF the upload fails, THEN the partial manifest is discarded\n```\n\nThe five names are exactly `ubiquitous`, `event-driven`, `state-driven`, `unwanted-behavior`, and `optional-feature`. A downstream reader matches the literal name, so a variant spelling (`unwanted_behavior`, `unwanted`, `event`) is an untagged criterion that looks tagged and fails silently.\n\n**Scope.** The nine required sections carry no acceptance-criteria list of their own, and this skill adds none: the **Success metrics** table is a measurement with a threshold and a window, not an EARS pattern, and it stays a table under both formats. Tags attach to acceptance criteria this run writes as plain bullets; the durable home for tagged criteria is the Brief `\u002Fplanning:interview` locks downstream. This skill owes the coverage question, the exact vocabulary, and the same resolution, so a PRD-then-interview pipeline does not change its answer halfway through.\n\n### Resolving `acceptance_criteria_format`\n\nFollow [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fauthoring-formats.md`](..\u002F..\u002Fcontext\u002Fauthoring-formats.md) \"Resolution ladder\", where `\u003Cplugin-root>` is `${CLAUDE_PLUGIN_ROOT}` and `\u003Cproject-root>` is `${CLAUDE_PROJECT_DIR}` (unexpanded or empty means unset). Default and every degrade: `free-text`, untagged criteria, exactly today's shape.\n\n## PRD review mode (`review`)\n\nWhen invoked with `review`:\n\n1. Locate the topic's `PRD.md` (slug derivation above)\n2. Evaluate against the nine required sections. Flag any missing or fuzzy\n3. Evaluate against skip-conditions. If engineering-internal, recommend supersession with a `\u002Fplanning:interview` brief\n4. Check goals are *outcomes*, not implementations (the most common failure mode)\n5. Check success metrics have a *measurement window* and *threshold*, not vague language, and a `Stop condition:` line\n6. Check the quality requirements cover the prompts the tier's depth requires (Step 5), with a measurable target where the interview's prompt list says one is owed and no invented target elsewhere\n7. Present findings: what's strong, what's missing, what to revise\n\nReview checks structure and convention; `\u002Fplanning:devils-advocate` (run later against `\u002Fplanning:plan`'s plan, not the PRD) checks failure modes.\n\n## What this skill does NOT do\n\n- **Does not plan implementation**. Architecture, files, tests, code is `\u002Fplanning:plan`'s job. If you find yourself writing \"we'll add `XHandler` to module Y\", move that to open questions as an architecture decision for later\n- **Does not run exploration or research**. Step 2's survey is a fast grounding pass. If product framing requires deep external research (competitive analysis, market data), pause the PRD and recommend the research capability first\n- **Does not gate other skills**. Engineering-internal tasks skip `\u002Fplanning:prd`; product features can skip it if intent is already locked elsewhere (roadmap doc, recent ADR, prior PRD)\n- **Does not adversarially attack the user's product idea**. Surface obvious product risk once in the *risks* section and continue. Pushback belongs in product review, not PRD authoring\n- **Does not write code, run tests, or modify anything outside the topic's memory slice**, apart from pasting the locked PRD into the pull request body or linked issue. Every link written to the tracker (that paste, a comment) is the item's title linked to its absolute URL, never a bare `#\u003Cn>`, so it resolves from any page that quotes it\n- **Does not export Gherkin**. Nothing here emits `.feature` files or `Given`\u002F`When`\u002F`Then` scenarios; the EARS tags are a bracketed prefix vocabulary on a plain bullet, not a step grammar. A Gherkin export is a separate slice against a separate contract\n\n## Composition with other skills\n\n| When | Skill | How it composes |\n|---|---|---|\n| Pre-PRD: a product idea not yet tested (should it be built at all) | `\u002Fplanning:interview product` | Stress-tests the idea one question at a time and ends in a verdict; a holding idea comes here for its PRD |\n| Pre-PRD: problem still rough, no candidate approach chosen | `\u002Fplanning:brainstorm` | Diverges cheapest→most-ambitious candidates; the resonating direction feeds this PRD |\n| Pre-task: product feature, fuzzy intent | **`\u002Fplanning:prd`** (this) | Produces the topic's `PRD.md` |\n| Pre-task: any fuzzy task. Including post-PRD constraint discovery | `\u002Fplanning:interview` | Produces the Brief in `PLAN.md` (reads PRD if present) |\n| Need codebase grounding | `\u002Fdiscovery:explore` (if enabled) | Reads PRD + PLAN as scope |\n| Need external evidence | `\u002Fdiscovery:research` (if enabled) | Reads PRD + PLAN as scope |\n| Need design exploration (types, contracts, topology) | `\u002Fplanning:design` | Reads PRD + PLAN; produces design artifacts that `\u002Fplanning:plan` consumes |\n| Plan the implementation | `\u002Fplanning:plan` | Reads PRD + PLAN + explore + research findings |\n| Stress-test the plan | `\u002Fplanning:devils-advocate` | Adversarial pass on `\u002Fplanning:plan` output (not the PRD) |\n\n## Next\n\n- PRD locked: \u002Fplanning:interview for the engineering contract.\n- The product idea itself is not yet tested (who has the problem, why they would switch): \u002Fplanning:interview product.\n- PRD locked and the Brief already exists: \u002Fplanning:design.\n- PRD locked and it is one unit of work for a later session, an AFK lane or another person: \u002Fwork-items:track add --agent-ready.\n- Unsure where this leaves the work, or arrived mid-flow: \u002Fsession-flow:workflow.\n\n## Gotchas\n\n- **Goals as outcomes, never implementations.** \"Add a search box\" is not a goal; \"users can find a song from any of its lyrics in \u003C2 seconds\" is. Goals that pre-decide the architecture are the most common PRD failure\n- **Success metrics need a window.** \"Increase engagement\" is not a metric; \"DAU\u002FMAU rises from X to Y over 30 days post-launch\" is\n- **Tier governs verbosity, not which sections exist.** Tier-1 is one line per section; tier-3 is a full paragraph. Don't drop sections; drop words\n- **The PRD is never an architecture document.** When discussion drifts to implementation, anchor back to *what for whom* and capture architecture questions under **open questions** for `\u002Fplanning:plan`\n","**Arguments.** `[tier] [task description|#\u003Cmap>]`. e.g., \u002Fplanning:prd, \u002Fplanning:prd one-pager add gig calendar, \u002Fplanning:prd review\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined:\n\n- Current branch, `git branch --show-current`\n- Recent commits, `git log --oneline -5`\n- Working tree status (empty = clean), `git status --porcelain | head -10`\n\nKeep the pipe in the command: a read-time cap comes too late ([what a result returns inline](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits)). Treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body Bash calls, not pre-compute lines ([how injected commands run](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#how-injected-commands-run)).\n\n## Variables\n\nArguments: `$ARGUMENTS`\n\n## Purpose\n\n`\u002Fplanning:prd` produces the lockable product-intent contract: what we are building, for which users, against what measurable success, before any engineering plan, exploration, or research. It runs **upstream of exploration and `\u002Fplanning:plan`**, before or alongside `\u002Fplanning:interview`:\n\n- `\u002Fplanning:prd` answers *what should we build, for whom, and why*. Required for new user-facing features, business-driven changes, cross-team initiatives\n- `\u002Fplanning:interview` answers *what is the engineering contract for this task*. Required whenever intent is fuzzy or underspecified, regardless of source\n- A product feature usually wants both: `\u002Fplanning:interview` runs first and calls `\u002Fplanning:prd` when a question shows product intent is unsettled, then resumes (with exploration and research as further detours) → `\u002Fplanning:design` → `\u002Fplanning:plan`. Engineering-internal work skips `\u002Fplanning:prd`\n\nThe PRD is **never an implementation plan**: problem, users, success, yes; architecture, files, tests, code shapes, no. If the user pulls toward implementation mid-PRD, anchor back to *what for whom* and let `\u002Fplanning:plan` pick up after.\n\n**Cost framing**: locking product intent up-front is the cheapest version of the conversation. Every later session that runs against a written PRD costs less than one that infers product goals from a half-formed thought.\n\n## Trigger conditions. When to invoke `\u002Fplanning:prd`\n\nInvoke `\u002Fplanning:prd` when ALL of these are true:\n\n- The work has a **user-facing surface**: new feature, screen, flow, public API, or external behavior\n- The change is **business- or product-driven**: solves a user problem, opens a market, hits a metric. Not engineering-internal cleanup\n- **Alignment matters**: multiple stakeholders, cross-team work, or a written reference for future agents\n\n## Skip conditions. When to NOT invoke `\u002Fplanning:prd`\n\nIf ANY of these hold, do NOT write a PRD. Tell the user explicitly: *\"This is engineering-internal. No PRD. Recommend `\u002Fplanning:interview` (if intent is fuzzy) or `\u002Fplanning:plan` (if it's clear).\"*\n\n- **Refactors** (no behavior change)\n- **Infrastructure** (build, CI, hooks, config, dependency bumps, lockfiles)\n- **Conventions** (rules files, doc updates, lint rules, analyzers)\n- **Bug fixes** (a bug already implies the desired behavior)\n- **Single-team engineering work** with no user-visible surface\n- **Tooling**, scripts, internal automation\n- **Documentation-only** changes\n\nIf ambiguous, surface the question once and let the user pick. Never silently write a PRD for an engineering-internal task.\n\n## Action Router\n\nRead `$ARGUMENTS` whole. If its first word is one of the tier words in the table (`one-pager`, `consumer`, `consumer-feature`, `b2b`, `b2b-internal`, `synthesize`, `review`), that row wins and the rest of `$ARGUMENTS` is the task. Any other first word starts the task description, not a tier. When `$ARGUMENTS` is empty, ask for the tier (surface rules below).\n\n| Argument | Action | Use case |\n|----------|--------|----------|\n| *(empty)* | **Smart default** | If a prior PRD exists for the topic, offer resume\u002Frevise\u002Fstart-fresh. Otherwise prompt for tier + task. |\n| `\u003Ctask description>` (no tier word) | **Full PRD, prompt for tier** | Run skip-condition check, then ask which template tier (one-pager \u002F consumer-feature \u002F B2B-internal). |\n| `[tier] #\u003Cmap>` | **PRD from a map issue** | Step 2 reads its decisions |\n| `one-pager \u003Ctask>` | **Tier 1. Thin one-pager** | Small feature, single team, fast lock. ~½ page. |\n| `consumer \u003Ctask>` or `consumer-feature \u003Ctask>` | **Tier 2. Consumer feature** | User-facing app feature with metrics, user stories, risk surface. ~1 page. |\n| `b2b \u003Ctask>` or `b2b-internal \u003Ctask>` | **Tier 3. B2B \u002F internal** | Stakeholders, compliance, integration, rollout, change-management. ~2 pages. |\n| `synthesize \u003Ctask>` | **Synthesis-only PRD** | Skip Q&A. Produce PRD from existing conversation context when it already holds rich product context. Still runs skip-condition check (Step 1) and survey (Step 2). |\n| `review` | **PRD review** | Critique an existing PRD.md against template + skip-conditions. |\n\nTier choice rationale: [`context\u002Ftemplates.md`](context\u002Ftemplates.md). When the tier is unclear from the task description, present the three tiers with one-line descriptions: via `AskUserQuestion` when the plugin's `use_ask_user_question` user config (`${user_config.use_ask_user_question}`; unexpanded or empty means off) is on, numbered inline prose otherwise.\n\n## The PRD process\n\n### Step 1. Skip-condition check\n\nBefore any other work, run this mandatory check: validate the request matches the trigger conditions. If it matches the skip conditions, STOP and tell the user:\n\n> *\"This looks engineering-internal (`\u003Creason>`). PRDs add cost without value here. Recommend:\n> `\u002Fplanning:interview` for fuzzy intent OR `\u002Fplanning:plan` directly if scope is clear.\"*\n\nDo not proceed unless the user explicitly overrides (\"write the PRD anyway\") OR clarifies the user-facing\u002Fbusiness framing.\n\n### Step 2. Survey before you write\n\nSpend the first turn grounding yourself, in parallel:\n\n- Take product direction and current modules from the project's always-loaded instructions (root `CLAUDE.md` \u002F `AGENTS.md`), already in context; read a nested `AGENTS.md` under the area the topic touches, since those load only when a file they cover is read\n- When the topic touches a known module, read the domain glossary: `\u002Fdomain-driven-design:ubiquitous-language lookup` via the Skill tool when available, else Glob `**\u002F*{glossary,Glossary,GLOSSARY,ubiquitous,UBIQUITOUS}*.md` and Read the match covering the area\n- An item ref (`#\u003Cmap>`): read it per [map-source](..\u002F..\u002Fcontext\u002Fmap-source.md)\n- `Glob` and `Grep` for keywords from `$ARGUMENTS` to spot existing surfaces\n- `git log --oneline -20` for recent product direction\n- List the project's own rules files that govern the area (architecture, modules, conventions)\n- Note what `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002F` (default `.work\u002F`) already contains: prior PRD, PLAN, design, exploration and research artifacts\n- When `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002Fbrainstorm.md` exists, read its `## Handoff` block as seeds the rounds confirm: `Problem` and `Intent (why, in the user's words)` seed the Problem, `Vision (where this heads)` the Goals `Vision:` line (`not stated` becomes `none stated`), and `Chosen direction` with `Rejected options` stay context for the rounds, not requirements, since the PRD records the problem and its success, not the solution\n\nIf a prior `PRD.md` exists for this topic, ask: **resume** (continue from open questions), **revise** (in-place edits, bump `updated:`), or **start fresh** (append a dated restart note capturing why below the PRD's frontmatter, then rewrite; PRD.md is never committed, so the restart note is its only history, carried by the copy pasted into the pull request body or linked issue).\n\nSurvey output is a one-paragraph summary in your reply. Then move to frontier-rounds Q&A.\n\n### Step 3. Pick the template tier\n\nIf not specified in `$ARGUMENTS`, surface the tier choice (card only under the `use_ask_user_question` opt-in; numbered prose otherwise):\n\n| Tier | When |\n|------|------|\n| **1. One-pager** | Small feature, single team owns it, low ambiguity. ~½ page. Sections collapsed; one-line each. |\n| **2. Consumer-feature** | User-facing app feature with metrics, 1-2 user stories, risk surface. ~1 page. Full sections. |\n| **3. B2B-internal** | Internal\u002FB2B feature with stakeholders, compliance, integration, rollout, change-management. ~2 pages. Full sections + stakeholders, rollout, dependencies\u002Fintegrations. |\n\nTier governs section depth, not section presence: all three tiers cover the same nine required sections listed in Step 5.\n\nFull templates: [`context\u002Ftemplates.md`](context\u002Ftemplates.md). Read on demand.\n\n### Step 3.5. Synthesis-only path (`synthesize`)\n\nWith `synthesize`, skip Step 4 Q&A and produce the PRD from existing conversation context: prior discussion, explored files, research findings, user statements already captured. Steps 1 and 2 still run.\n\n`synthesize` also skips the always-on coverage prompt and reports it unexamined, per \"Acceptance-criteria capture\" below.\n\nIf after the survey a required section has NO answerable content in the conversation, record it as an open question rather than forcing Q&A; `\u002Fplanning:interview` or `\u002Fplanning:plan` picks it up downstream.\n\n### Step 4. Drive frontier-rounds Q&A\n\n**Skipped when `synthesize` was invoked**. Go directly to Step 5.\n\nAsk in frontier rounds: each round surfaces every open question whose prerequisites are settled as one numbered set (grouped by PRD section), each with a recommendation; a question that depends on another still open waits for the round after its prerequisite resolves. Render a round via `AskUserQuestion` only when the plugin's `use_ask_user_question` user config is on and the round is independent questions that fit one `AskUserQuestion` call (the per-call question limit: \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fagent-sdk\u002Fuser-input#limitations>). Inline prose otherwise.\n\nEach recommendation carries a `Basis:` line: `verified` with the `file:line`, tool output, or URL it rests on, or `judgment` (non-consequential only). A consequential one (cross-repo, shared infrastructure, irreversible, or security) is grounded before it is presented, in the affected code plus its consumers and in external research that reads official docs first; route that work to the exploration or research capability rather than doing it here. One research cannot settle is withheld: ask the question open and name the evidence that would settle it, or record it under **Open questions**. A changed recommendation is restated as old → new → why. Contract: [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Frecommendation-basis.md`](..\u002F..\u002Fcontext\u002Frecommendation-basis.md).\n\nEach candidate question first passes the self-answer step, [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fself-answer.md`](..\u002F..\u002Fcontext\u002Fself-answer.md): a fact it settles is stated with its basis and source tag, not asked.\n\nQuestion shapes that recur, in priority order:\n\n| Section | Highest-value surfacing question |\n|---------|----------------------------------|\n| Problem | \"Whose problem is this, and what do they currently do instead?\" |\n| Goals | \"If we ignore implementation, what changes for the user when this ships?\" Then, once for the feature: \"Which shortcut in building this would cost users something, and do we take it or not?\" And for the Vision line: \"Past this release, where do you want this to head?\" |\n| Non-goals | \"What is explicitly out of scope so we don't drift?\" Then: \"For every new option, control or setting: what is it for?\" Any that no one can explain lands in this section. |\n| Users | \"Who is the primary user. One persona or many? Walk me through their day before and after.\" |\n| User stories | \"Pick the one most-important journey: as a `\u003Crole>` I want to `\u003Caction>` so that `\u003Coutcome>`.\" |\n| Success metrics | \"How will we know it worked? Name the metric and the threshold. Adoption %, conversion %, time saved, error rate.\" Then: \"Which repeated task that brings users back does this improve, and does the metric measure that task?\" And: \"What result would make us stop or kill this feature?\" |\n| Quality requirements | \"Which of these does the feature touch, and where would a wrong guess change the design or a check grade it?\", over Step 5's prompt list at the tier's depth. Ask for a measurable target only there. |\n| Acceptance-criteria coverage | Asked once, per \"Acceptance-criteria capture\" below. Never one question per criterion. |\n| Dependencies \u002F risks | \"What outside this team must exist or change for this to ship? What's the biggest risk?\" |\n| Assumptions | \"What are we taking as true without proof, and what would show it false?\" |\n| Open questions | \"What is genuinely undecided that `\u002Fplanning:plan` needs an answer to?\" |\n\nStop asking once every required section has either a resolved answer or an explicit \"open question with revisit trigger\".\n\n### Step 5. Persist the PRD\n\nDerive `\u003Ctopic-slug>` from the task description or current branch name (kebab-case, ≤40 chars), the same slug `\u002Fplanning:interview`, `\u002Fplanning:design`, and `\u002Fplanning:plan` use for this topic. Write to `\u003Cmemory_dir>\u002F\u003Ctopic-slug>\u002FPRD.md` (default `.work\u002F`), never committed; placement per the lifecycle artifact protocol [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md). Once it locks, paste the PRD into the pull request body or the linked issue. PRD.md sits beside the topic's `PLAN.md` and design artifacts.\n\nWhen a PRD.md already exists for the topic, never silently overwrite it: offer resume, revise, or start fresh. If scope shifted, append a dated restart note capturing why before rewriting.\n\nFrontmatter:\n\n```yaml\n---\nstatus: draft         # draft | locked | superseded\ntier: one-pager       # one-pager | consumer-feature | b2b-internal\ncreated: \u003CISO-8601 UTC, e.g. 2026-06-04T14:30:00Z>\nupdated: \u003CISO-8601 UTC, e.g. 2026-06-04T14:30:00Z>\n---\n```\n\nRequired sections (every tier; verbosity varies):\n\n1. **Problem**. What is broken, missed, or unmet for users today\n2. **Goals**. Outcome-level, not implementation-level, plus one `Vision:` line on where the user wants this to head (`none stated` when they gave none)\n3. **Non-goals**. Explicit out-of-scope items, including any setting, control or option with no stated reason. Asking for a reason never cuts an option the consuming project keeps configurable on purpose: there the option stays and its reason is recorded\n4. **Users**. Primary persona(s) + 1-2 user stories in `as a \u003Crole>, I want \u003Caction>, so that \u003Coutcome>` form\n5. **Success metrics**. Named metric + threshold + measurement window, tied to the repeated task users come back for; when the metric does not measure that task, say so; plus one `Stop condition:` line, the result that would end or kill the feature\n6. **Quality requirements**. Non-functional requirements (NFRs): how well the product must do what it does, one line each in the `Quality requirement:` format of [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Finterview\u002Fcontext\u002Fnfr-prompts.md`](..\u002Finterview\u002Fcontext\u002Fnfr-prompts.md), which owns the prompts and when a target is owed\n7. **Dependencies \u002F risks**. Outside-team dependencies + top 1-3 risks with mitigations\n8. **Assumptions**. What the PRD takes as true without proof, each with what would show it false; `\u002Fplanning:interview` carries them into the Brief's Captured assumptions\n9. **Open questions**. Anything genuinely undecided that `\u002Fplanning:plan` needs answered\n\nTier-3 (B2B) adds: **Stakeholders**, **Rollout**, **Compliance \u002F integration**.\n\nEach tier's template in [`context\u002Ftemplates.md`](context\u002Ftemplates.md) sets which quality prompts it covers: one-pager, only where the feature moves the current bar; consumer-feature, every prompt it touches; B2B-internal, all. Under `synthesize` or an unattended run, an unstated target goes under **Assumptions** in the `target assumed` form, never the requirement line.\n\n**Durability over precision.** Describe the product through its interfaces, types, and behavior contracts, not file paths or line numbers; the PRD should still be accurate after a refactor.\n\n**Written for a product owner who scans.** Each section opens with its point and carries no more words than the meaning needs: invoke `\u002Fwriting:be-concise` via the Skill tool when the `writing` plugin is enabled, else apply it inline. The nine required sections, the tier's depth, and every metric, threshold and open question stay.\n\n**Non-goals graduation edge.** A non-goal that is a permanent rejection, not a deferral, graduates to the consuming repo's rejected-concept ledger, one file per concept at `docs\u002Fout-of-scope\u002F\u003Cconcept>.md`, which gains a \"Prior requests\" entry each time the concept resurfaces, so the ledger answers later proposals instead of relitigating them. Create the file on the first permanent rejection; with no ledger, the plain Non-goals list suffices.\n\nTest seams (where, and at how few, the feature is tested) are not a PRD concern: `\u002Fplanning:design` sketches them as a design thread and `\u002Fplanning:plan`'s Test strategy sets the boundaries.\n\nOptionally offer to render the finalized PRD as a self-contained HTML pitch view for non-engineer stakeholders: a static generated view, never an editor with real data bound in. PRD.md stays the record. Write the view to the OS temp directory, never beside `PRD.md`, per the artifact protocol linked above. Resolve `medium` (option `${user_config.medium}`; `\"\"` if unsubstituted, never in shell) first per [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Frendered-view.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Frendered-view.md) \"Other optional views\": `terminal` skips the offer.\n\n### Step 6. Hand off\n\nAfter writing the PRD, recommend the next step by remaining ambiguity:\n\n- **Engineering scope still fuzzy** (constraints, untouchable areas, perf budget unclear) → `\u002Fplanning:interview` in this session (it reads the topic's `PRD.md` as scope)\n- **Engineering scope is clear, codebase grounding needed** → `\u002Fdiscovery:explore` if enabled, otherwise the environment's codebase-exploration capability\n- **Need external research (libs, APIs, comparables)** → `\u002Fdiscovery:research` if enabled, otherwise the strongest research capability available\n- **Engineering scope clear and externals understood** → `\u002Fplanning:design`, which records a one-line early exit when no design question is open and hands off to `\u002Fplanning:plan`\n- **The locked PRD is one unit of work that a later session, an AFK lane or another person picks up** → `\u002Fwork-items:track add --agent-ready`, one tracker item carrying the PRD's acceptance criteria\n- **An open question waits on a stakeholder** → also `\u002Fplanning:interview document \u003Ctopic>`, the interview's document surface, which turns it into a document that person fills in; it runs beside the next step, not in place of it\n\nDo NOT auto-clear or auto-invoke. Recommend; let the user pull the trigger.\n\n## Acceptance-criteria capture\n\nTwo behaviors apply to this PRD's verifiable statements (the Step 4 success-metrics and user-story rows and any acceptance criterion).\n\n### Coverage prompt. Always on, asked once\n\nWhile capturing them, ask ONE question: are they missing an **unwanted-behavior** case (an `IF \u003Ctrigger>, THEN \u003Cresponse>` criterion) and a **state-driven** case (a `WHILE \u003Cstate>, \u003Cresponse>` criterion)? One prompt covering both, never a per-criterion interrogation, and **\"neither applies\" is a valid answer** that closes it for the session. This runs whatever the acceptance-criteria format resolves to, and with no convention file present at all; it is a coverage check, not a format.\n\n### Non-interactive runs skip the ask and say so\n\nThe **`synthesize` action skips it**, along with any run that has nobody to answer: a dispatched worker, a forked subagent, a headless invocation, or any caller that declared the run unattended. In every one of those the ask is SKIPPED rather than blocking, and the returned summary states that **unwanted-behavior and state-driven coverage went unexamined**. Record the same line in the PRD's **Open questions** section so it outlives the summary.\n\nThe unattended condition is **declared by the caller, never sniffed**: never read an environment variable to decide it; `synthesize` is an explicit argument, which is a declaration.\n\n### EARS tags, when the convention selects them\n\nResolve `acceptance_criteria_format` per \"Resolving `acceptance_criteria_format`\" below. Under `free-text`, the default and every degrade, every section is emitted untagged, the same shape as a run with no convention file at all. Under `ears`, each acceptance criterion this run emits carries a bracketed pattern prefix on a plain bullet:\n\n| Tag | Pattern |\n|---|---|\n| `[ubiquitous]` | an always-true requirement, no trigger and no state |\n| `[event-driven]` | `WHEN \u003Ctrigger>, \u003Cresponse>` |\n| `[state-driven]` | `WHILE \u003Cstate>, \u003Cresponse>` |\n| `[unwanted-behavior]` | `IF \u003Ctrigger>, THEN \u003Cresponse>` |\n| `[optional-feature]` | `WHERE \u003Cfeature is included>, \u003Cresponse>` |\n\n```text\n- [event-driven] WHEN the upload completes, the manifest is rewritten\n- [unwanted-behavior] IF the upload fails, THEN the partial manifest is discarded\n```\n\nThe five names are exactly `ubiquitous`, `event-driven`, `state-driven`, `unwanted-behavior`, and `optional-feature`. A downstream reader matches the literal name, so a variant spelling (`unwanted_behavior`, `unwanted`, `event`) is an untagged criterion that looks tagged and fails silently.\n\n**Scope.** The nine required sections carry no acceptance-criteria list of their own, and this skill adds none: the **Success metrics** table is a measurement with a threshold and a window, not an EARS pattern, and it stays a table under both formats. Tags attach to acceptance criteria this run writes as plain bullets; the durable home for tagged criteria is the Brief `\u002Fplanning:interview` locks downstream. This skill owes the coverage question, the exact vocabulary, and the same resolution, so a PRD-then-interview pipeline does not change its answer halfway through.\n\n### Resolving `acceptance_criteria_format`\n\nFollow [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fauthoring-formats.md`](..\u002F..\u002Fcontext\u002Fauthoring-formats.md) \"Resolution ladder\", where `\u003Cplugin-root>` is `${CLAUDE_PLUGIN_ROOT}` and `\u003Cproject-root>` is `${CLAUDE_PROJECT_DIR}` (unexpanded or empty means unset). Default and every degrade: `free-text`, untagged criteria, exactly today's shape.\n\n## PRD review mode (`review`)\n\nWhen invoked with `review`:\n\n1. Locate the topic's `PRD.md` (slug derivation above)\n2. Evaluate against the nine required sections. Flag any missing or fuzzy\n3. Evaluate against skip-conditions. If engineering-internal, recommend supersession with a `\u002Fplanning:interview` brief\n4. Check goals are *outcomes*, not implementations (the most common failure mode)\n5. Check success metrics have a *measurement window* and *threshold*, not vague language, and a `Stop condition:` line\n6. Check the quality requirements cover the prompts the tier's depth requires (Step 5), with a measurable target where the interview's prompt list says one is owed and no invented target elsewhere\n7. Present findings: what's strong, what's missing, what to revise\n\nReview checks structure and convention; `\u002Fplanning:devils-advocate` (run later against `\u002Fplanning:plan`'s plan, not the PRD) checks failure modes.\n\n## What this skill does NOT do\n\n- **Does not plan implementation**. Architecture, files, tests, code is `\u002Fplanning:plan`'s job. If you find yourself writing \"we'll add `XHandler` to module Y\", move that to open questions as an architecture decision for later\n- **Does not run exploration or research**. Step 2's survey is a fast grounding pass. If product framing requires deep external research (competitive analysis, market data), pause the PRD and recommend the research capability first\n- **Does not gate other skills**. Engineering-internal tasks skip `\u002Fplanning:prd`; product features can skip it if intent is already locked elsewhere (roadmap doc, recent ADR, prior PRD)\n- **Does not adversarially attack the user's product idea**. Surface obvious product risk once in the *risks* section and continue. Pushback belongs in product review, not PRD authoring\n- **Does not write code, run tests, or modify anything outside the topic's memory slice**, apart from pasting the locked PRD into the pull request body or linked issue. Every link written to the tracker (that paste, a comment) is the item's title linked to its absolute URL, never a bare `#\u003Cn>`, so it resolves from any page that quotes it\n- **Does not export Gherkin**. Nothing here emits `.feature` files or `Given`\u002F`When`\u002F`Then` scenarios; the EARS tags are a bracketed prefix vocabulary on a plain bullet, not a step grammar. A Gherkin export is a separate slice against a separate contract\n\n## Composition with other skills\n\n| When | Skill | How it composes |\n|---|---|---|\n| Pre-PRD: a product idea not yet tested (should it be built at all) | `\u002Fplanning:interview product` | Stress-tests the idea one question at a time and ends in a verdict; a holding idea comes here for its PRD |\n| Pre-PRD: problem still rough, no candidate approach chosen | `\u002Fplanning:brainstorm` | Diverges cheapest→most-ambitious candidates; the resonating direction feeds this PRD |\n| Pre-task: product feature, fuzzy intent | **`\u002Fplanning:prd`** (this) | Produces the topic's `PRD.md` |\n| Pre-task: any fuzzy task. Including post-PRD constraint discovery | `\u002Fplanning:interview` | Produces the Brief in `PLAN.md` (reads PRD if present) |\n| Need codebase grounding | `\u002Fdiscovery:explore` (if enabled) | Reads PRD + PLAN as scope |\n| Need external evidence | `\u002Fdiscovery:research` (if enabled) | Reads PRD + PLAN as scope |\n| Need design exploration (types, contracts, topology) | `\u002Fplanning:design` | Reads PRD + PLAN; produces design artifacts that `\u002Fplanning:plan` consumes |\n| Plan the implementation | `\u002Fplanning:plan` | Reads PRD + PLAN + explore + research findings |\n| Stress-test the plan | `\u002Fplanning:devils-advocate` | Adversarial pass on `\u002Fplanning:plan` output (not the PRD) |\n\n## Next\n\n- PRD locked: \u002Fplanning:interview for the engineering contract.\n- The product idea itself is not yet tested (who has the problem, why they would switch): \u002Fplanning:interview product.\n- PRD locked and the Brief already exists: \u002Fplanning:design.\n- PRD locked and it is one unit of work for a later session, an AFK lane or another person: \u002Fwork-items:track add --agent-ready.\n- Unsure where this leaves the work, or arrived mid-flow: \u002Fsession-flow:workflow.\n\n## Gotchas\n\n- **Goals as outcomes, never implementations.** \"Add a search box\" is not a goal; \"users can find a song from any of its lyrics in \u003C2 seconds\" is. Goals that pre-decide the architecture are the most common PRD failure\n- **Success metrics need a window.** \"Increase engagement\" is not a metric; \"DAU\u002FMAU rises from X to Y over 30 days post-launch\" is\n- **Tier governs verbosity, not which sections exist.** Tier-1 is one line per section; tier-3 is a full paragraph. Don't drop sections; drop words\n- **The PRD is never an architecture document.** When discussion drifts to implementation, anchor back to *what for whom* and capture architecture questions under **open questions** for `\u002Fplanning:plan`\n",{"metadata":24,"description":7,"argument-hint":26,"user-invocable":27,"disable-model-invocation":20},{"summary":25,"workflow-stage":5},"Lock product intent. Problem, users, success metrics. Before planning","[tier] [task description|#\u003Cmap>]",true,"main","5aff8ba54896bc54fd0eb46e4a954099449cf67d","plugins\u002Fplanning\u002Fskills\u002Fprd",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":27},[39,42,45],{"tool":40,"command":41},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill prd",{"tool":43,"command":44},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill prd",{"tool":46,"command":47},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill prd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fplanning\u002Fskills\u002Fprd\u002FSKILL.md",[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"context\u002Ftemplates.md","REFERENCE","参考文档",12301,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fplanning\u002Fskills\u002Fprd\u002Fcontext\u002Ftemplates.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"evals\u002Fevals.json",11983,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fplanning\u002Fskills\u002Fprd\u002Fevals\u002Fevals.json",[61,68,75,82,87,94],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":83,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]