/trogonstack-product-requirements:frd-writefrom trogonstack-product-requirements
Drafts a structured Feature Requirements Document (FRD) with Overview/Terminology/Requirements sections, acceptance criteria numbering, and sub-feature nesting. Activates when the user needs to specify a feature for engineering.
Ships in trogonstack-product-requirements. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce a single .frd.md file engineers can build from. FRDs follow a consistent three-section structure: Overview, Terminology, Requirements.
Use requirements-operating-model before writing when the task touches Product Overview context, existing FRDs, feature hierarchy, ambiguous behavior, or downstream Blueprint / Work Order impact. Use its clarification pattern instead of creating a separate local questioning workflow.
prd-* files) describes the product shape; a specific feature still needs to be pinned downDetermine projectid:
Glob .trogonai/project/*/ to offer existing projects.Ask: is this a top-level feature, or a sub-feature of an existing FRD?
Apply the sub-feature rule strictly: a child is only a child if the parent delivers complete value on its own and the child is meaningless without the parent. If the user describes it as a child but the parent would not work without it, push back; that means it should be merged, not nested.
.trogonai/project/{projectid}/frd/{slug}.frd.mdGlob existing FRDs to pick the parent:
frd/{parent-slug}.frd.md, promote to frd/{parent-slug}/index.frd.md first (read, write to new path, remove the old file with rm only after the new index exists).frd/{parent-slug}/{slug}.frd.md.If the target file already exists, read it first and ask replace or refine.
Before discovery, read the relevant Product Overview files when they exist:
personas.prd.md for user-story rolesproduct-description.prd.md for product surfaces and boundariesbusiness-problem.prd.md and current-state.prd.md for the user pain and status quosuccess-metrics.prd.md for outcome prioritytechnical-requirements.prd.md for constraints that acceptance criteria must respectAlso read nearby FRDs that share the same parent, prefix family, or product surface. If the new requirement duplicates an existing requirement, refine the owner instead of creating a second source of truth.
Requirements and acceptance criteria use stable IDs so they can be referenced unambiguously from code, commits, tickets, tests, and reviews.
REQ- stands for Requirement: a single cohesive, independently testable capability.AC- stands for Acceptance Criterion: one observable behavior the system must exhibit to satisfy its parent requirement.Format:
REQ-{PREFIX}-NNN (e.g., REQ-CHK-003).AC-{PREFIX}-NNN.N, where NNN matches its parent requirement (e.g., AC-CHK-003.2 is the 2nd acceptance criterion of REQ-CHK-003).Every FRD has a short uppercase prefix used inside its requirement and acceptance ids.
CHK for Checkout, AUTH for Auth). Confirm uniqueness by Grep-ing existing FRDs in the project for REQ-<prefix>-.- + a 2–3 letter sub-prefix specific to the child (e.g., parent AUTH + child Password Reset → AUTH-PR). The full requirement id then looks like REQ-AUTH-PR-001.Drive the user to produce 1–2 narrative paragraphs answering:
A stakeholder should understand the purpose in under a minute. Reject paragraphs that describe mechanisms or implementation: the Overview is purpose, not design.
Ask: "Which terms specific to this feature could be misunderstood?"
- **Term:** Definition.Each requirement represents one cohesive, independently testable capability.
For each requirement, drive:
personas.prd.md exists in the project, the role must match (or the deviation must be justified).AC-[PREFIX]-NNN.N items. Each criterion follows:
Quality bar for requirements:
Numbering: requirements are sequential, zero-padded to three digits (001, 002, ...). ACs within a requirement are NNN.N (001.1, 001.2, ...).
After requirements are stable, decide whether the FRD needs any extension section beyond the guide's three-section shape.
## Child FRDs only when this FRD has children.If the discovery surfaces more than roughly 5 requirements, or requirements covering capabilities a different team would own, recommend frd-split rather than producing a sprawling FRD.
Resolve the template source before writing:
assets/frd-template.md.Write a single file using the resolved template. Substitute the placeholders (feature name, {projectid}, {PREFIX}, parent path, date), repeat the REQ-{PREFIX}-NNN block once per requirement, and fill in each section from the discovery output.
After writing, if a parent FRD exists, append an entry to its ## Child FRDs section (creating the section if missing):
- [{child-slug}](./{child-slug}.frd.md): <one-line summary>
If refining an existing FRD, call out likely downstream Blueprint or Work Order follow-up when user stories, acceptance criteria, requirement IDs, feature boundaries, or technical constraints changed. Do not edit downstream modules from this skill.
Good
REQ-CHK-003: Payment Confirmation
User Story: As a customer, I want to receive confirmation after my payment is processed, so that I can know my order was placed successfully.
Acceptance Criteria:
- AC-CHK-003.1: When payment processing succeeds, the system shall display a confirmation page with the order number and estimated delivery date.
- AC-CHK-003.2: When payment processing fails, the system shall return the user to the payment form with an error message describing the failure reason.
- AC-CHK-003.3: When the user navigates away during processing, the system shall complete the transaction and display the confirmation on their next visit.
Bad (reject this shape)
REQ-CHK-003: Payment Confirmation
User Story: As a user, I want payment to work.
Acceptance Criteria:
- AC-CHK-003.1: The system should show a message.
- AC-CHK-003.2: Errors should be handled appropriately.
The user story has no outcome and uses a generic role. The ACs are untestable: "show a message" and "handled appropriately" do not describe specific behaviors.
frd-split: break an FRD into independently-valuable parent + nested childrenfrd-review: audit an FRD or a tree of FRDsfrd-getting-started: produce the initial set of FRDs for a new projectprd-personas: define personas that user stories referenceindex.frd.md succeedsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trogonstack/agentskills --plugin trogonstack-product-requirements14 skills in this plugin
/frd-getting-startedProduce the initial set of Feature Requirements Documents (FRDs) for a new project. Calibrates between an agile first pass (small set of must-have features only) and a waterfall first pass (comprehensive coverage). Asks how many features to draft, identifies them from the project's product overview, and scaffolds each via the FRD template. Use when the user is starting a project and there are no FRDs yet./frd-reviewReview Feature Requirements Documents (FRDs) (single file or full tree) against the Overview / Terminology / Requirements template, source-of-truth rules, module boundaries, downstream impact, and the parent-delivers-value rule for sub-features. Writes a review file. Use when the user asks to review, audit, or sanity-check a feature spec./frd-splitSplit, merge, or nest Feature Requirements Documents (FRDs) using the parent-delivers-value rule where a parent feature must deliver value on its own and a child must be meaningless without the parent. Promotes parent files into directories, scaffolds child FRDs with appended prefixes, and rewrites the parent into an umbrella. Use when an FRD has grown too large or when multiple FRDs should be combined./prd-business-problemDraft the Business Problem of a PRD by framing the core problem the product addresses, the gaps in today's tools and processes, and why change is necessary now. Drives discovery through who experiences the pain, what fails today, and the cost of inaction. Writes to `.trogonai/project/{projectid}/prd/business-problem.prd.md`. Use when the user wants to write, refine, or audit the problem framing of a product or feature./prd-current-stateDraft the Current State of a PRD by documenting the status quo the product improves upon. Drives discovery through what users do today, the workarounds in use, the costs of the status quo, and the alternatives that already exist. Writes to `.trogonai/project/{projectid}/prd/current-state.prd.md`. Use when the user wants to document the baseline before proposing a change./prd-custom-overviewDraft an additional Product Overview Document beyond the six defaults when a product-specific context area is needed. Keeps custom PRDs at product-level why/what, prevents duplicate default sections, and writes to `.trogonai/project/{projectid}/prd/{slug}.prd.md`. Use when the user needs a custom overview document rather than a feature requirement.Other plugins' skills for the same job