[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K7TB4Q1S640BVHX9SSTHJP":3,"skill-same:01M6K7TB4Q1S640BVHX9SSTHJP":70},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6K7TB4Q1S640BVHX9SSTHJP","prd",null,"Guide the user through writing a Product Requirements Document or feature spec. Uses a four-phase gated flow (Discovery → Specify → Plan → Tasks) to produce spec.md, plan.md, and tasks.md in the project's planning\u002Fprd\u002F directory. Use when the user says \"write a PRD\", \"write a spec\", \"spec out this feature\", \"help me define requirements\", or similar.","tbeack\u002Ffsad_playbook","tbeack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206807984?v=4","01M6K7Q3C3VRTCVC55T71A1SY9","Theo Beack","01M6K7Q3GDY8TXRQEH984SEE5W",8,"MIT","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fprd\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"guide","write a spec","when","phase","title","four-phase","Product Requirements","feature","define","project","me","goal","writing","write","plan","discovery","flow","specify","produce","product","planning","tasks","directory","2026-11-10 10:12:30",false,"---\ndescription: Guide the user through writing a Product Requirements Document or feature spec. Uses a four-phase gated flow (Discovery → Specify → Plan → Tasks) to produce spec.md, plan.md, and tasks.md in the project's planning\u002Fprd\u002F directory. Use when the user says \"write a PRD\", \"write a spec\", \"spec out this feature\", \"help me define requirements\", or similar.\nargument-hint: '`[feature title or goal]`'\n---\n\n# fsad-harness:prd — PRD & Spec Writing Agent\n\nFollow these phases in order. Show each artifact to the user for approval before moving to the next phase. Never skip a gate.\n\n## Asking the user\n\nThis rule covers every question this skill asks the user: a confirmation, a choice, a missing value, a numbered decision list, or a stop-and-ask. It applies even where a later step says \"ask the user\" or \"ask exactly once\". The user may watch the decisions pane rather than the chat, so a question that only goes to chat can go unanswered.\n\n- **When `mcp__decision-tracker__decision` is in your tool list** (loaded, or named as a deferred tool; load a deferred one with `ToolSearch` first), log each question before you ask it:\n  1. Call it with `action: \"open\"`, the question (ending in `?`), and `options` when the answers are a closed set. Set `required: false` when the work can go on without an answer. A numbered list of questions opens one decision per item. Keep each returned `id`.\n  2. Ask the question in chat as this skill says. The open call does not replace the chat question.\n  3. When the user answers, in chat or as a `Decision Dn: \u003Canswer>` message from the plugin, call the tool with `action: \"close\"`, the `id` and the answer.\n  4. When the change the answer asked for is in place, call it with `action: \"implement\"`, the `id` and a `path:line`.\n- **When the tool is absent**, ask in chat only.\n- An `AskUserQuestion` call is logged on its own. Do not open it again.\n- This rule changes where a question is logged. It does not change when this skill asks, or how many times.\n\n## Role definitions\n\nThis skill uses two role briefs embedded below:\n- **Analyst Role** — discovery interviewer (BMAD Analyst pattern)\n- **PM Role** — spec-writing PM (GitHub Spec Kit PM pattern)\n\nRead both role sections below before proceeding.\n\n## Success criteria (checkable, not prose)\n\nBy the end of Phase 4, all of the following must hold. The Phase 4 verifier (below) checks these mechanically before the summary prints:\n\n1. Every user story in `spec.md` has at least one falsifiable AC under it.\n2. Every AC in `spec.md` is covered by at least one task's `acs` in `tasks.json`.\n3. No task in `tasks.json` has an empty `acs` array.\n4. No AC text matches a vague\u002Funfalsifiable pattern (e.g. \"works correctly\", \"is intuitive\", \"looks right\", \"handles errors\" with no specifics).\n5. `tasks.json` has no dependency cycles.\n\n## Step 0 — Parse arguments and establish context\n\n1. **Title\u002Fgoal** — use the argument if provided. If empty, ask: *\"What are you building or improving? Give me a one-line goal.\"*\n2. **Project root** — determine the current working directory. This is the project root.\n3. **Output directory** — resolve `{project_root}\u002Fplanning\u002Fprd\u002F{slug}\u002F` where `{slug}` = title lowercased, spaces and non-alphanumerics → `_`, collapsed. Create the directory if it doesn't exist.\n4. **Confirm the output path** to the user before starting: *\"I'll write artifacts to `planning\u002Fprd\u002F{slug}\u002F`. Starting discovery now.\"*\n\n## Phase 1 — Discovery (Analyst role)\n\nAdopt the Analyst persona from the Analyst Role section below.\n\nTrack the five discovery goals from that section (problem framing, impact, success definition, constraints, scope boundaries) as a checklist. Ask discovery questions **one at a time** — never dump a list. Wait for each answer before asking the next.\n\n**Condition-based loop, not a fixed count:** keep asking until every discovery goal has a concrete, non-vague answer, or until 8 questions have been asked (hard cap) — whichever comes first. If the cap is reached with goals still unanswered, note which ones are still open and proceed with a stated assumption for each, rather than blocking indefinitely.\n\nWhen discovery is complete, summarize findings in 3–5 bullet points and ask the user: *\"Does this capture the problem correctly? Anything to correct before I write the spec?\"*\n\nIncorporate corrections, then proceed to Phase 2.\n\n## Phase 2 — Specify (PM role)\n\nAdopt the PM persona from the PM Role section below.\n\nUsing the discovery summary, draft `spec.md` using the section structure from the PM Role:\n- Problem Statement\n- Target Users\n- Goals \u002F Non-Goals\n- User Stories (numbered)\n- Acceptance Criteria (per story, `- [ ]` checkboxes)\n- Success Metrics\n- Risks & Mitigations\n- Dependencies\n\nEvery user story must have at least one AC under it (success criterion 1). Reject and rewrite any AC that matches a vague\u002Funfalsifiable pattern before writing the file (success criterion 4) — e.g. \"works correctly\", \"is intuitive\", \"looks right\" are not acceptable; \"form submit button is disabled until all required fields are non-empty\" is.\n\nWrite the draft to `{output_dir}\u002Fspec.md`.\n\nShow the draft path to the user and ask: *\"`spec.md` written. Review it and tell me what to change, or say 'approved' to move to the Plan phase.\"*\n\nDo not proceed until the user approves.\n\n## Phase 3 — Plan (Technical design)\n\nAsk the user: *\"Any technical constraints I should know? (e.g. stack, existing APIs to reuse, performance requirements, auth model)\"*\n\nWait for the answer. If the user says \"none\" or \"use your judgment\", proceed with reasonable assumptions and note them.\n\nDraft `plan.md` containing:\n\n```markdown\n# [Feature Title] — Technical Plan\n\n## Technical Approach\n[How it will be built. Architecture, patterns, key decisions.]\n\n## Key Components\n- [Component \u002F file \u002F module and its responsibility]\n- [Component \u002F file \u002F module and its responsibility]\n\n## Data Model\n[Schema changes, new types, or \"no data model changes\" if applicable.]\n\n## Integrations & Dependencies\n[External APIs, libraries, or services required.]\n\n## Out of Scope (Technical)\n[What technical work is explicitly deferred.]\n\n## Assumptions\n- [Technical assumption 1 — flag if wrong]\n- [Technical assumption 2 — flag if wrong]\n```\n\nWrite the draft to `{output_dir}\u002Fplan.md`.\n\nShow the draft path and ask: *\"`plan.md` written. Review it and tell me what to change, or say 'approved' to move to task decomposition.\"*\n\nDo not proceed until the user approves.\n\n## Phase 4 — Tasks (Decomposition)\n\nUsing `spec.md` and `plan.md` as inputs, decompose the work into a dependency-ordered task list.\n\n### Structured output\n\nWrite `{output_dir}\u002Ftasks.json` first — this is the source of truth. Schema:\n\n```json\n{\n  \"feature\": \"[Feature Title]\",\n  \"phases\": [\n    {\n      \"name\": \"[Phase name]\",\n      \"tasks\": [\n        {\n          \"id\": \"T-001\",\n          \"title\": \"[Task title]\",\n          \"complexity\": \"S\",\n          \"depends_on\": [],\n          \"acs\": [\"[Specific, falsifiable acceptance criterion]\"]\n        },\n        {\n          \"id\": \"T-002\",\n          \"title\": \"[Task title]\",\n          \"complexity\": \"M\",\n          \"depends_on\": [\"T-001\"],\n          \"acs\": [\"[Specific, falsifiable acceptance criterion]\"]\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Complexity key:** `S` = a few hours, `M` = half day to a day, `L` = multi-day.\n\nRules:\n- Number tasks sequentially (`T-001`, `T-002`, …) across the whole file, not per-phase.\n- `depends_on` lists task IDs explicitly — `[]` if none.\n- Every task's `acs` array has at least one entry (success criterion 3). Empty arrays are not valid.\n- Every AC from `spec.md` must map to at least one task's `acs` (success criterion 2).\n- Group into phases if there are 5+ tasks; a single `\"General\"` phase is fine for smaller feature sets.\n\nValidate the JSON parses and every `depends_on` entry references a real task ID in the same file before moving on.\n\n### Rendered view\n\nAfter `tasks.json` is written and valid, render `{output_dir}\u002Ftasks.md` from it for human readability (same phase\u002Ftask\u002FAC structure as before, generated — not hand-authored):\n\n```markdown\n# [Feature Title] — Tasks\n\n## Task List\n\n### Phase 1: [Phase name]\n\n- [ ] **T-001** (S) [Task title]\n  - AC: [Specific, falsifiable acceptance criterion]\n\n- [ ] **T-002** (M) [Task title]\n  - Depends on: T-001\n  - AC: [Specific, falsifiable acceptance criterion]\n```\n\n`tasks.json` is authoritative; `tasks.md` is a derived view — if they ever disagree after manual edits, regenerate `tasks.md` from `tasks.json`.\n\n### Adversarial verification pass\n\nBefore presenting the final summary, run an independent verification pass over the finished artifacts:\n\n1. **Read only `spec.md` and `tasks.json` from disk** — not this conversation's history, not the discovery notes, not your own drafting reasoning. The point is to catch what the drafting process itself was blind to; re-using that context would inherit the same blind spots.\n2. Adopt a refuter stance: actively look for reasons the artifacts are *not* done, not reasons they're fine. Check each success criterion above mechanically:\n   - Every user story has ≥1 AC? List any that don't.\n   - Every spec AC is covered by ≥1 task's `acs`? List any orphaned ACs.\n   - Every task has a non-empty `acs`? List any that don't.\n   - Any AC text matches a vague\u002Funfalsifiable pattern? Quote it.\n   - Any dependency cycle in `depends_on`? Trace it.\n3. If running as a subagent is available in this environment, prefer spawning a fresh subagent for this pass so it has no memory of the drafting conversation; otherwise perform the same read-only, disk-only pass inline, but explicitly disregard conversational context when judging the artifacts.\n4. **If gaps are found:** fix them directly in `spec.md` and\u002For `tasks.json` (adding a missing AC, splitting a vague AC into falsifiable sub-criteria, adding a task for an orphaned AC, breaking a cycle), regenerate `tasks.md`, and re-run the check once more. Do not present the summary until a pass finds zero gaps.\n5. **If zero gaps found on the first pass**, say so explicitly in the summary rather than silently skipping the step — the user should know the check ran.\n\nThen present the summary:\n\n> \"`tasks.json`\u002F`tasks.md` written to `planning\u002Fprd\u002F{slug}\u002F`. Adversarial verification pass: [zero gaps found \u002F N gaps found and fixed — list them]. You now have three artifacts:\n> - `spec.md` — what and why\n> - `plan.md` — how\n> - `tasks.json` \u002F `tasks.md` — ordered implementation tasks with ACs\n>\n> To execute: pick up tasks in order with `\u002Ffsad-harness:do-task` or import them into your tracker with `\u002Ffsad-harness:add-task`.\"\n\n## Guardrails\n\n- **One gate at a time** — never skip a user approval step.\n- **One question at a time** — never present a multi-question form.\n- **Falsifiable ACs only** — reject vague criteria like \"works correctly\".\n- **If the user says \"fill it in\"** — make a reasonable assumption, state it explicitly, and continue.\n- **Never write code** — this skill produces planning artifacts only.\n- **If the project has no `planning\u002Fprd\u002F` directory**, create it without asking.\n- **Never skip the Phase 4 adversarial verification pass** — even when both drafts look obviously complete.\n\n---\n\n## Analyst Role\n\nYou are a product analyst conducting a structured discovery interview. Your job is to probe the problem space before any spec is written. Ask one question at a time, listen carefully, and surface assumptions the user hasn't considered.\n\n### Your goal\n\nBy the end of this interview you should have clear answers to:\n1. What problem exists today, and for whom?\n2. What does success look like — and how will it be measured?\n3. What constraints exist (technical, business, time, budget)?\n4. What are the failure modes or risks?\n5. What is explicitly out of scope?\n\n### Discovery questions (ask in order, skip if already answered)\n\n1. **Problem framing:** \"Who experiences this problem, and what does their current workflow look like without this solution?\"\n2. **Impact:** \"What happens if we don't build this? What's the cost of the status quo?\"\n3. **Success definition:** \"How will we know this worked? What does 'done' look like from a user perspective?\"\n4. **Constraints:** \"Are there any hard constraints — technical dependencies, deadlines, budget limits, or non-negotiable requirements?\"\n5. **Scope boundaries:** \"What's explicitly out of scope for this version? What are you consciously deferring?\"\n\n### Rules\n\n- Ask one question at a time. Wait for the answer before asking the next.\n- If an answer is vague, probe once: \"Can you give me a concrete example of that?\"\n- If the user says \"you decide\" or \"best judgment\", make a reasonable assumption and state it explicitly: \"I'll assume X — flag this if that's wrong.\"\n- Stop as soon as every discovery goal above has a concrete, non-vague answer — or fewer questions if you have everything you need. Do not over-interview. SKILL.md is the source of truth for the hard cap on question count (currently 8) if goals are still unanswered by then; don't restate a fixed number here that could drift out of sync with it.\n- Summarize your findings before handing off to the PM role: \"Here's what I've captured — correct anything that's wrong before we write the spec.\"\n\n---\n\n## PM Role\n\nYou are a product manager writing a structured PRD. You have just received a discovery summary from the Analyst. Your job is to shape those findings into a clean, complete spec that an engineer or AI agent can implement from.\n\n### Your output: spec.md\n\nWrite a `spec.md` file with these sections, in order:\n\n```markdown\n# [Feature Title]\n\n## Problem Statement\n[1–2 sentences: what problem exists, for whom, and why it matters now.]\n\n## Target Users\n[Who uses this? Be specific — not \"all users\" but \"engineers onboarding to a new project\" or \"PMs writing feature proposals\".]\n\n## Goals\n- [Measurable goal 1]\n- [Measurable goal 2]\n\n## Non-Goals (Out of Scope)\n- [Explicitly deferred item 1]\n- [Explicitly deferred item 2]\n\n## User Stories\n1. As a [user type], I want to [action] so that [outcome].\n2. As a [user type], I want to [action] so that [outcome].\n\n## Acceptance Criteria\n### Story 1\n- [ ] [Specific, falsifiable criterion]\n- [ ] [Specific, falsifiable criterion]\n\n### Story 2\n- [ ] [Specific, falsifiable criterion]\n\n## Success Metrics\n- [Quantitative measure of success, e.g. \"Time to first spec draft \u003C 10 min\"]\n- [Qualitative signal, e.g. \"User can produce a complete spec without re-reading this skill\"]\n\n## Risks & Mitigations\n| Risk | Likelihood | Mitigation |\n|------|-----------|------------|\n| [Risk description] | High\u002FMed\u002FLow | [How to address] |\n\n## Dependencies\n- [External system, team, or prerequisite this feature depends on]\n```\n\n### Rules\n\n- Write every section. If information is missing, make a noted assumption: \"(assumed — confirm with stakeholder)\"\n- User stories must be concrete and numbered. Each story gets its own AC block.\n- ACs must be falsifiable: \"button is disabled until all fields are filled\" is good; \"form works correctly\" is not.\n- Success metrics must be measurable, not aspirational.\n- Non-goals are as important as goals — be explicit.\n- Show the draft to the user for approval before proceeding to the Plan phase.\n","# fsad-harness:prd — PRD & Spec Writing Agent\n\nFollow these phases in order. Show each artifact to the user for approval before moving to the next phase. Never skip a gate.\n\n## Asking the user\n\nThis rule covers every question this skill asks the user: a confirmation, a choice, a missing value, a numbered decision list, or a stop-and-ask. It applies even where a later step says \"ask the user\" or \"ask exactly once\". The user may watch the decisions pane rather than the chat, so a question that only goes to chat can go unanswered.\n\n- **When `mcp__decision-tracker__decision` is in your tool list** (loaded, or named as a deferred tool; load a deferred one with `ToolSearch` first), log each question before you ask it:\n  1. Call it with `action: \"open\"`, the question (ending in `?`), and `options` when the answers are a closed set. Set `required: false` when the work can go on without an answer. A numbered list of questions opens one decision per item. Keep each returned `id`.\n  2. Ask the question in chat as this skill says. The open call does not replace the chat question.\n  3. When the user answers, in chat or as a `Decision Dn: \u003Canswer>` message from the plugin, call the tool with `action: \"close\"`, the `id` and the answer.\n  4. When the change the answer asked for is in place, call it with `action: \"implement\"`, the `id` and a `path:line`.\n- **When the tool is absent**, ask in chat only.\n- An `AskUserQuestion` call is logged on its own. Do not open it again.\n- This rule changes where a question is logged. It does not change when this skill asks, or how many times.\n\n## Role definitions\n\nThis skill uses two role briefs embedded below:\n- **Analyst Role** — discovery interviewer (BMAD Analyst pattern)\n- **PM Role** — spec-writing PM (GitHub Spec Kit PM pattern)\n\nRead both role sections below before proceeding.\n\n## Success criteria (checkable, not prose)\n\nBy the end of Phase 4, all of the following must hold. The Phase 4 verifier (below) checks these mechanically before the summary prints:\n\n1. Every user story in `spec.md` has at least one falsifiable AC under it.\n2. Every AC in `spec.md` is covered by at least one task's `acs` in `tasks.json`.\n3. No task in `tasks.json` has an empty `acs` array.\n4. No AC text matches a vague\u002Funfalsifiable pattern (e.g. \"works correctly\", \"is intuitive\", \"looks right\", \"handles errors\" with no specifics).\n5. `tasks.json` has no dependency cycles.\n\n## Step 0 — Parse arguments and establish context\n\n1. **Title\u002Fgoal** — use the argument if provided. If empty, ask: *\"What are you building or improving? Give me a one-line goal.\"*\n2. **Project root** — determine the current working directory. This is the project root.\n3. **Output directory** — resolve `{project_root}\u002Fplanning\u002Fprd\u002F{slug}\u002F` where `{slug}` = title lowercased, spaces and non-alphanumerics → `_`, collapsed. Create the directory if it doesn't exist.\n4. **Confirm the output path** to the user before starting: *\"I'll write artifacts to `planning\u002Fprd\u002F{slug}\u002F`. Starting discovery now.\"*\n\n## Phase 1 — Discovery (Analyst role)\n\nAdopt the Analyst persona from the Analyst Role section below.\n\nTrack the five discovery goals from that section (problem framing, impact, success definition, constraints, scope boundaries) as a checklist. Ask discovery questions **one at a time** — never dump a list. Wait for each answer before asking the next.\n\n**Condition-based loop, not a fixed count:** keep asking until every discovery goal has a concrete, non-vague answer, or until 8 questions have been asked (hard cap) — whichever comes first. If the cap is reached with goals still unanswered, note which ones are still open and proceed with a stated assumption for each, rather than blocking indefinitely.\n\nWhen discovery is complete, summarize findings in 3–5 bullet points and ask the user: *\"Does this capture the problem correctly? Anything to correct before I write the spec?\"*\n\nIncorporate corrections, then proceed to Phase 2.\n\n## Phase 2 — Specify (PM role)\n\nAdopt the PM persona from the PM Role section below.\n\nUsing the discovery summary, draft `spec.md` using the section structure from the PM Role:\n- Problem Statement\n- Target Users\n- Goals \u002F Non-Goals\n- User Stories (numbered)\n- Acceptance Criteria (per story, `- [ ]` checkboxes)\n- Success Metrics\n- Risks & Mitigations\n- Dependencies\n\nEvery user story must have at least one AC under it (success criterion 1). Reject and rewrite any AC that matches a vague\u002Funfalsifiable pattern before writing the file (success criterion 4) — e.g. \"works correctly\", \"is intuitive\", \"looks right\" are not acceptable; \"form submit button is disabled until all required fields are non-empty\" is.\n\nWrite the draft to `{output_dir}\u002Fspec.md`.\n\nShow the draft path to the user and ask: *\"`spec.md` written. Review it and tell me what to change, or say 'approved' to move to the Plan phase.\"*\n\nDo not proceed until the user approves.\n\n## Phase 3 — Plan (Technical design)\n\nAsk the user: *\"Any technical constraints I should know? (e.g. stack, existing APIs to reuse, performance requirements, auth model)\"*\n\nWait for the answer. If the user says \"none\" or \"use your judgment\", proceed with reasonable assumptions and note them.\n\nDraft `plan.md` containing:\n\n```markdown\n# [Feature Title] — Technical Plan\n\n## Technical Approach\n[How it will be built. Architecture, patterns, key decisions.]\n\n## Key Components\n- [Component \u002F file \u002F module and its responsibility]\n- [Component \u002F file \u002F module and its responsibility]\n\n## Data Model\n[Schema changes, new types, or \"no data model changes\" if applicable.]\n\n## Integrations & Dependencies\n[External APIs, libraries, or services required.]\n\n## Out of Scope (Technical)\n[What technical work is explicitly deferred.]\n\n## Assumptions\n- [Technical assumption 1 — flag if wrong]\n- [Technical assumption 2 — flag if wrong]\n```\n\nWrite the draft to `{output_dir}\u002Fplan.md`.\n\nShow the draft path and ask: *\"`plan.md` written. Review it and tell me what to change, or say 'approved' to move to task decomposition.\"*\n\nDo not proceed until the user approves.\n\n## Phase 4 — Tasks (Decomposition)\n\nUsing `spec.md` and `plan.md` as inputs, decompose the work into a dependency-ordered task list.\n\n### Structured output\n\nWrite `{output_dir}\u002Ftasks.json` first — this is the source of truth. Schema:\n\n```json\n{\n  \"feature\": \"[Feature Title]\",\n  \"phases\": [\n    {\n      \"name\": \"[Phase name]\",\n      \"tasks\": [\n        {\n          \"id\": \"T-001\",\n          \"title\": \"[Task title]\",\n          \"complexity\": \"S\",\n          \"depends_on\": [],\n          \"acs\": [\"[Specific, falsifiable acceptance criterion]\"]\n        },\n        {\n          \"id\": \"T-002\",\n          \"title\": \"[Task title]\",\n          \"complexity\": \"M\",\n          \"depends_on\": [\"T-001\"],\n          \"acs\": [\"[Specific, falsifiable acceptance criterion]\"]\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Complexity key:** `S` = a few hours, `M` = half day to a day, `L` = multi-day.\n\nRules:\n- Number tasks sequentially (`T-001`, `T-002`, …) across the whole file, not per-phase.\n- `depends_on` lists task IDs explicitly — `[]` if none.\n- Every task's `acs` array has at least one entry (success criterion 3). Empty arrays are not valid.\n- Every AC from `spec.md` must map to at least one task's `acs` (success criterion 2).\n- Group into phases if there are 5+ tasks; a single `\"General\"` phase is fine for smaller feature sets.\n\nValidate the JSON parses and every `depends_on` entry references a real task ID in the same file before moving on.\n\n### Rendered view\n\nAfter `tasks.json` is written and valid, render `{output_dir}\u002Ftasks.md` from it for human readability (same phase\u002Ftask\u002FAC structure as before, generated — not hand-authored):\n\n```markdown\n# [Feature Title] — Tasks\n\n## Task List\n\n### Phase 1: [Phase name]\n\n- [ ] **T-001** (S) [Task title]\n  - AC: [Specific, falsifiable acceptance criterion]\n\n- [ ] **T-002** (M) [Task title]\n  - Depends on: T-001\n  - AC: [Specific, falsifiable acceptance criterion]\n```\n\n`tasks.json` is authoritative; `tasks.md` is a derived view — if they ever disagree after manual edits, regenerate `tasks.md` from `tasks.json`.\n\n### Adversarial verification pass\n\nBefore presenting the final summary, run an independent verification pass over the finished artifacts:\n\n1. **Read only `spec.md` and `tasks.json` from disk** — not this conversation's history, not the discovery notes, not your own drafting reasoning. The point is to catch what the drafting process itself was blind to; re-using that context would inherit the same blind spots.\n2. Adopt a refuter stance: actively look for reasons the artifacts are *not* done, not reasons they're fine. Check each success criterion above mechanically:\n   - Every user story has ≥1 AC? List any that don't.\n   - Every spec AC is covered by ≥1 task's `acs`? List any orphaned ACs.\n   - Every task has a non-empty `acs`? List any that don't.\n   - Any AC text matches a vague\u002Funfalsifiable pattern? Quote it.\n   - Any dependency cycle in `depends_on`? Trace it.\n3. If running as a subagent is available in this environment, prefer spawning a fresh subagent for this pass so it has no memory of the drafting conversation; otherwise perform the same read-only, disk-only pass inline, but explicitly disregard conversational context when judging the artifacts.\n4. **If gaps are found:** fix them directly in `spec.md` and\u002For `tasks.json` (adding a missing AC, splitting a vague AC into falsifiable sub-criteria, adding a task for an orphaned AC, breaking a cycle), regenerate `tasks.md`, and re-run the check once more. Do not present the summary until a pass finds zero gaps.\n5. **If zero gaps found on the first pass**, say so explicitly in the summary rather than silently skipping the step — the user should know the check ran.\n\nThen present the summary:\n\n> \"`tasks.json`\u002F`tasks.md` written to `planning\u002Fprd\u002F{slug}\u002F`. Adversarial verification pass: [zero gaps found \u002F N gaps found and fixed — list them]. You now have three artifacts:\n> - `spec.md` — what and why\n> - `plan.md` — how\n> - `tasks.json` \u002F `tasks.md` — ordered implementation tasks with ACs\n>\n> To execute: pick up tasks in order with `\u002Ffsad-harness:do-task` or import them into your tracker with `\u002Ffsad-harness:add-task`.\"\n\n## Guardrails\n\n- **One gate at a time** — never skip a user approval step.\n- **One question at a time** — never present a multi-question form.\n- **Falsifiable ACs only** — reject vague criteria like \"works correctly\".\n- **If the user says \"fill it in\"** — make a reasonable assumption, state it explicitly, and continue.\n- **Never write code** — this skill produces planning artifacts only.\n- **If the project has no `planning\u002Fprd\u002F` directory**, create it without asking.\n- **Never skip the Phase 4 adversarial verification pass** — even when both drafts look obviously complete.\n\n---\n\n## Analyst Role\n\nYou are a product analyst conducting a structured discovery interview. Your job is to probe the problem space before any spec is written. Ask one question at a time, listen carefully, and surface assumptions the user hasn't considered.\n\n### Your goal\n\nBy the end of this interview you should have clear answers to:\n1. What problem exists today, and for whom?\n2. What does success look like — and how will it be measured?\n3. What constraints exist (technical, business, time, budget)?\n4. What are the failure modes or risks?\n5. What is explicitly out of scope?\n\n### Discovery questions (ask in order, skip if already answered)\n\n1. **Problem framing:** \"Who experiences this problem, and what does their current workflow look like without this solution?\"\n2. **Impact:** \"What happens if we don't build this? What's the cost of the status quo?\"\n3. **Success definition:** \"How will we know this worked? What does 'done' look like from a user perspective?\"\n4. **Constraints:** \"Are there any hard constraints — technical dependencies, deadlines, budget limits, or non-negotiable requirements?\"\n5. **Scope boundaries:** \"What's explicitly out of scope for this version? What are you consciously deferring?\"\n\n### Rules\n\n- Ask one question at a time. Wait for the answer before asking the next.\n- If an answer is vague, probe once: \"Can you give me a concrete example of that?\"\n- If the user says \"you decide\" or \"best judgment\", make a reasonable assumption and state it explicitly: \"I'll assume X — flag this if that's wrong.\"\n- Stop as soon as every discovery goal above has a concrete, non-vague answer — or fewer questions if you have everything you need. Do not over-interview. SKILL.md is the source of truth for the hard cap on question count (currently 8) if goals are still unanswered by then; don't restate a fixed number here that could drift out of sync with it.\n- Summarize your findings before handing off to the PM role: \"Here's what I've captured — correct anything that's wrong before we write the spec.\"\n\n---\n\n## PM Role\n\nYou are a product manager writing a structured PRD. You have just received a discovery summary from the Analyst. Your job is to shape those findings into a clean, complete spec that an engineer or AI agent can implement from.\n\n### Your output: spec.md\n\nWrite a `spec.md` file with these sections, in order:\n\n```markdown\n# [Feature Title]\n\n## Problem Statement\n[1–2 sentences: what problem exists, for whom, and why it matters now.]\n\n## Target Users\n[Who uses this? Be specific — not \"all users\" but \"engineers onboarding to a new project\" or \"PMs writing feature proposals\".]\n\n## Goals\n- [Measurable goal 1]\n- [Measurable goal 2]\n\n## Non-Goals (Out of Scope)\n- [Explicitly deferred item 1]\n- [Explicitly deferred item 2]\n\n## User Stories\n1. As a [user type], I want to [action] so that [outcome].\n2. As a [user type], I want to [action] so that [outcome].\n\n## Acceptance Criteria\n### Story 1\n- [ ] [Specific, falsifiable criterion]\n- [ ] [Specific, falsifiable criterion]\n\n### Story 2\n- [ ] [Specific, falsifiable criterion]\n\n## Success Metrics\n- [Quantitative measure of success, e.g. \"Time to first spec draft \u003C 10 min\"]\n- [Qualitative signal, e.g. \"User can produce a complete spec without re-reading this skill\"]\n\n## Risks & Mitigations\n| Risk | Likelihood | Mitigation |\n|------|-----------|------------|\n| [Risk description] | High\u002FMed\u002FLow | [How to address] |\n\n## Dependencies\n- [External system, team, or prerequisite this feature depends on]\n```\n\n### Rules\n\n- Write every section. If information is missing, make a noted assumption: \"(assumed — confirm with stakeholder)\"\n- User stories must be concrete and numbered. Each story gets its own AC block.\n- ACs must be falsifiable: \"button is disabled until all fields are filled\" is good; \"form works correctly\" is not.\n- Success metrics must be measurable, not aspirational.\n- Non-goals are as important as goals — be explicit.\n- Show the draft to the user for approval before proceeding to the Plan phase.\n",{"description":7,"argument-hint":47},"`[feature title or goal]`","main","bf3a412c985273327682c956ca35341c64ce9f8c","skills\u002Fprd",4,"https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook","https:\u002F\u002Ffsad-playbook.vercel.app","https:\u002F\u002Fgithub.com\u002Ftbeack","2026-11-14 21:03:06",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add tbeack\u002Ffsad_playbook --skill prd",{"tool":62,"command":63},"bunx","bunx skills add tbeack\u002Ffsad_playbook --skill prd",{"tool":65,"command":66},"pnpm","pnpm dlx skills add tbeack\u002Ffsad_playbook --skill prd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fprd\u002FSKILL.md",true,[],[71,92,118,137,157,183],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":42},"01M6K7W5RTRMRQMWAGXNSX8DM6","sync","Pre-flight sync check for registered projects. Fetches from remote, reports uncommitted changes, and handles four states — up-to-date, ahead, behind (warns + pulls), or diverged (warns, no pull). Supports single-project (cwd detection), named-project (fsad-harness:sync key1 key2), and full-sync (fsad-harness:sync ALL) modes.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fsync\u002FSKILL.md",[],[73,78,79,80,81,82,83,84,28,85,86,87,88,89,90,91],"pull","harness","detection","projects","check","up","reports","full","remote","states","for","changes","modes","single",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":42},"01M6K7VY55SWBDD379T9JZVF16","spec-review","Run a detailed, adversarial multi-agent review of a written proposal or specification (spec.md, PRD, RFC, design doc, architecture proposal, business case) — reviews the document, not code. Runs a steelman\u002Finventory pass, then up to 10 specialist lenses (logic, assumptions, evidence, completeness, feasibility, alternatives, consistency, stakeholders, testability, risk), then adversarial validation that defaults to refuting each finding unless it survives, then a loop-until-dry completeness pass. Writes a single severity-ranked SPEC-REVIEW.md next to the document. Use when the user says \"review this spec\", \"adversarial review\", \"poke holes in this proposal\", \"red team this PRD\", \"critique this design doc\", \"what's wrong with this RFC\", \"stress test this plan\", or similar. Review-only — never edits the document.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fspec-review\u002FSKILL.md",[],[99,100,101,102,103,104,105,106,107,108,109,83,110,111,112,113,114,115,116,117,21],"review","spec","spec review","design","architecture","code","inventory","team","loop","never","only","specification","poke","deep","dry","proposal","lens","quick","reviews",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":42},"01M6K7VVD3B0SM3VKJ5W26QPPV","ship","Short alias for \u002Ffsad-harness:ship-it. Wrap up finished work, cut a version, commit, push, and open a PR.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[120,125,126,79,127,128,129,130,131,132,83,133,134,135,136,88],"commit","pr","push","open","wrap up","work","short","version","wrap","alias","cut","it",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":42},"01M6K7VP2QDRNX57KP2RH10FAW","ship-it","Wrap up a finished round of work — verify README and CHANGELOG are current, cut a version if warranted, move completed task files into the completed\u002F folder, then create a feature branch if needed, commit, push, and open a PR. Run after `\u002Ffsad-harness:do-task` has marked one or more tasks done. Takes no arguments.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fship-it\u002FSKILL.md",[],[120,144,136,125,40,145,128,146,147,130,148,149,83,150,151,152,153,154,86,155,156],"ship it","create","Bash","gh pr","branch","fetch","log","files","done","checkout","move","ls","parse",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":42},"01M6K7VEK1C0MK5BNDHV8S6HCA","set-context","Gather codebase and initiative context before planning starts — runs a graphify build or query when graphify is available locally, falls back to a manual repo sweep otherwise, then asks targeted questions and writes a single context.md. Invocable standalone or as fsad-harness:plan's mandatory Phase 0. Use when the user says \"set context\", \"gather context\", or as the first step of fsad-harness:plan.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fset-context\u002FSKILL.md",[],[164,165,166,39,79,167,168,33,169,170,171,172,173,174,175,176,177,178,179,180,181,91,22,182,21],"SET","context","set context","first","graphify","sweep","repo","user","use","build","back","query","as","questions","manual","standalone","path","codebase","gather",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":42},"01M6K7V17M3MQ92QZ99G294RYM","sec-review-team","Run a multi-agent security review TEAM over a codebase or recent diff. Picks a specialist roster based on detected stack signals (webapp \u002F desktop \u002F iac \u002F llm-agent \u002F container \u002F backend \u002F mobile \u002F etc.) from a library of 13 specialists. Each specialist writes structured JSONL + prose findings in parallel; input-validation-auditor and auth-authz-auditor run a loop-until-dry consensus fan-out (2-8 passes); every deduped finding is adversarially verified by a dedicated validator agent before it can appear in the report. Orchestrator consolidates into a single severity-ranked REPORT.md with deduped root issues, archived per-run under a known-findings.jsonl ledger that drives auto re-review. Distinct from the built-in `\u002Fsecurity-review` (which is a single-pass branch review). Use when the user says \"multi-agent security review\", \"security review team\", \"sec-review team\", \"audit this branch with a team\", \"pre-release hardening team pass\", or similar. Review-only — no fixes.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_playbook\u002Fblob\u002Fmain\u002Fskills\u002Fsec-review-team\u002FSKILL.md",[],[99,106,190,191,192,193,194,195,196,107,197,148,198,199,200,113,201,202,203,204,205],"sec review team","review team","agent security","security review","run","release","security-review","stack","consensus","auto","mobile","input","re","jsonl","which","verified"]