npx skills add ...
npx skills add prometheas-labs/agent-plugins --skill product-development
Use when the user asks to create a feature, write a PRD or TRD, add user stories, write scenarios, create acceptance criteria, plan implementation, initialize product docs, set up product documentation, create, approve, amend, or validate a Product Constitution, run the Constitution Grill, create or maintain Product Vision, run a Vision Grill, or work anywhere in the product development lifecycle from project setup through implementation planning.
npx skills add prometheas-labs/agent-plugins --skill product-development
Guide features through the product development lifecycle from idea to implementation plan. Each workflow produces specific artifacts that feed into the next. Workflow transitions are gated by human review, with optional automated review passes.
Foundation Stage does not block brainstorming or design exploration. Foundation Gate blocks creation of the first PRD. Later PRDs must check constitution and vision alignment before proceeding.
Trigger: The project does not yet have a docs/product/ directory, or the user asks to "initialize product docs" or "set up product documentation."
Process: Run the initialization script (scripts/init.sh) to scaffold the documentation structure. The script uses templates with placeholders, auto-detects project context (name, surfaces), and prompts the user for domain-specific values. Consult references/initialization.md for the full workflow.
Output:
docs/product/README.md — documentation hierarchy and boundary rulesdocs/product/AGENTS.md — agent guidance for organizing product docsdocs/product/features/ — empty directory ready for the first featureThis workflow runs once per project. Skip if docs/product/README.md already exists.
Trigger: docs/product/constitution.md or docs/product/vision.md is missing, the user asks to create or update product-anchor docs, or the agent is preparing to start the first feature PRD and must verify Foundation Gate before drafting.
Process: Establish product-anchor docs in this hierarchy:
docs/product/constitution.md. Consult references/product-constitution.md for grill-with-docs dependency behavior, Constitution Grill workflow, versioning, amendment behavior, and constitution alignment checks.references/product-vision.md for grill-with-docs dependency behavior, context/ADR coordination, and vision versioning.docs/product/constitution.md and approved, versioned docs/product/vision.md exist.Output: Approved, versioned docs/product/constitution.md; approved, versioned docs/product/vision.md; optional CONTEXT-MAP.md, docs/product/CONTEXT.md, and ADRs when approved and used.
Foundation Gate: Do not create the first PRD until the user approves docs/product/constitution.md, it has version metadata, and approved, versioned docs/product/vision.md exists.
Trigger: An idea, feature request, or problem statement arrives.
Process: Invoke the brainstorming skill. It handles collaborative exploration, approach proposals, and design approval.
Output: Approved design document at docs/plans/YYYY-MM-DD-<topic>-design.md.
Gate: Do not proceed to Requirements until the design is approved.
Trigger: Design document is approved.
Required inputs: Approved design document, approved, versioned docs/product/constitution.md, and approved, versioned docs/product/vision.md. Missing, unapproved, or unversioned foundation documents block first-PRD requirements work.
Process: Create product and technical requirements documents. Consult references/phase-2-requirements.md for structure, conventions, constitution alignment, and vision alignment.
Gate: The PRD defines what; the TRD defines how. Present the PRD for human approval before writing the TRD. This prevents wasted architectural work if the requirements shift.
Output:
docs/product/features/{feature}/PRD.mddocs/product/features/{feature}/TRD.mdGate: Both documents reviewed and approved before proceeding. Run configured review passes (see Configuration).
Artifacts live at platform level — requirements describe what the product does regardless of surface.
Trigger: PRD and TRD are reviewed and stable.
Process: Decompose PRD requirements into user-facing narratives. Consult references/phase-3-user-stories.md for format, sizing guidance, and acceptance criteria conventions.
Output: Story files at docs/product/features/{feature}/stories/.
Gate: Stories reviewed and approved. Run configured review passes.
Stories are platform-level — they describe user intent, not surface-specific interactions.
Trigger: User stories have acceptance criteria defined.
Process: Express acceptance criteria as Gherkin scenarios. Consult references/phase-4-scenarios.md for the boundary rule, file placement, and writing conventions.
Output:
docs/product/features/{feature}/scenarios/*.featureapps/{surface}/docs/features/{feature}/scenarios/*.featureGate: Scenarios reviewed and approved. Run configured review passes.
Boundary rule: If the Given/When/Then language is surface-neutral, the scenario is platform-level. If it references a specific interaction model (swipe, D-pad, gaze), it is surface-specific.
Trigger: Scenarios are reviewed and cover the acceptance criteria.
Process: Load the approved constitution and approved vision with the reviewed scenarios, then invoke the writing-plans skill. It creates a detailed, task-by-task implementation plan with TDD steps, file paths, and verification criteria. Stop before planning if the plan would violate MUST NOT language, weaken a constitutional principle, conflict with the approved vision, or exceed clear authority.
Output: Implementation plan at docs/plans/YYYY-MM-DD-<topic>.md.
At each gate:
Review passes are optional automated checks that run at gates before human review. They are configured per-project or per-user (see Configuration). Examples:
coderabbit:review) against the artifactsAGENTS.mdIf no review passes are configured for a gate, the gate is human-only.
Configuration lives in two locations, with project-level overriding user-level:
~/.config/prometheas-product-development-skill/$PROJECT_ROOT/.config/prometheas-product-development-skill/Declarative, structured configuration for what runs where:
Natural language instructions that review agents receive as context. Use this for nuanced, project-specific guidance that doesn't fit structured config:
Project-level settings.toml overrides user-level per-key. Project-level AGENTS.md is appended after user-level AGENTS.md, so project-specific instructions take precedence in context.
If neither config location exists, the skill runs with defaults: human-only gates, no automated review passes, sub-agents used at the agent's discretion based on context size.
Requirements, User Stories, and BDD Scenarios involve substantial writing. To keep the main context focused on orchestration and human collaboration, delegate heavy writing to sub-agents. The lifecycle is sequential — never run workflows in parallel.
For each writing workflow, dispatch a sub-agent with only the inputs it needs:
| Workflow | Sub-agent receives | Sub-agent returns |
|---|---|---|
| Requirements PRD | Design doc, constitution, vision, references/phase-2-requirements.md, example features | PRD written to disk |
| Requirements TRD | Approved PRD, constitution, vision, references/phase-2-requirements.md, example features | TRD written to disk |
| User Stories | Approved PRD, TRD, constitution, vision, references/phase-3-user-stories.md | Story files written to disk |
| BDD Scenarios | User stories, TRD, constitution, vision, references/phase-4-scenarios.md | .feature files written to disk |
The main context reviews sub-agent output with the human and iterates if needed.
Not every workflow needs a sub-agent. Stay in the main context when:
All product documentation follows a three-tier hierarchy. See docs/product/README.md for the full specification.
| Tier | Location | Contains |
|---|---|---|
| Platform | docs/product/ | PRDs, TRDs, user stories, platform-level scenarios |
| App | apps/{surface}/docs/ | Surface-specific scenarios |
| Code | apps/{surface}/tests/ | Step definitions (test automation) |
Not every feature starts at the beginning. Match the entry point to the current state:
| Starting point | Enter at |
|---|---|
No docs/product/ directory | Project Setup |
| Missing, unapproved, or unversioned constitution or vision before first PRD | Foundation Stage |
| Vague idea, no clarity on approach | Discovery and Design |
| Clear requirements, needs documentation | Requirements after Foundation Gate |
| PRD exists, needs decomposition | User Stories |
| Stories exist, needs testable criteria | BDD Scenarios |
| Scenarios exist, needs implementation | Implementation Planning |
Clear requirements may skip brainstorming only after Foundation Gate passes. If this is the first PRD and docs/product/constitution.md or docs/product/vision.md is missing, unapproved, or unversioned, run Foundation Stage before Requirements.
This skill orchestrates the lifecycle but delegates to specialized skills for bookend workflows:
brainstorming skillwriting-plans skillProduct specifications are living artifacts. Different artifact types evolve at different rates. Consult docs/METHODOLOGY.md for the full methodology. Summary:
| Artifact | Strategy |
|---|---|
| Constitution, Vision | Immutable + supersede (semver) |
| PRD, TRD | Living document with changelog |
| User Stories | Living — add, complete, archive |
| Platform Scenarios | Living + self-verifying |
| Surface Scenarios | Living + self-verifying |
When updating an existing spec, append to its changelog with date, change, and rationale. When changes are so extensive the document is unrecognizable from its original form, supersede with a new document instead.
Detailed guidance for each workflow lives in reference files to keep context targeted. The phase-* filenames are legacy compatibility paths; load them by the workflow names below:
references/initialization.md — Project initialization workflow, placeholders, post-init stepsreferences/product-constitution.md — Product Constitution workflow, Foundation Gate, Constitution Grill, versioning, amendment behavior, and alignment checksreferences/product-vision.md — Product Vision workflow, Foundation Gate, Vision Grill, versioning, and context/ADR coordinationreferences/phase-2-requirements.md — PRD and TRD structure, conventions, constitution and vision checksreferences/phase-3-user-stories.md — Story format, acceptance criteria, sizingreferences/phase-4-scenarios.md — Gherkin conventions, boundary rule, file placementdocs/METHODOLOGY.md — Specification evolution strategies, changelog conventions, supersession rulesLoad references/source/product-constitution-guide.md only through references/product-constitution.md when exact source detail is needed. Load references/source/vision-document-guide.md only through references/product-vision.md when exact source detail is needed.
scripts/init.sh — Project initialization script. Scaffolds docs/product/ from templates with placeholder substitution. Supports interactive prompts, CLI arguments, and --dry-run.templates/README.md.tmpl — Documentation hierarchy templatetemplates/AGENTS.md.tmpl — Agent guidance template*[review_gates.requirements]
reviews = ["constitution-check"]
[review_gates.user_stories]
reviews = ["traceability-audit"]
[review_gates.bdd_scenarios]
reviews = ["traceability-audit", "coderabbit:review"]
[workflows]
use_subagents = true # Delegate heavy writing to sub-agents
prd_before_trd = true # Human approves PRD before TRD## Review Context
When reviewing PRDs, ensure constitution alignment with particular
attention to Principle II (Privacy).
## Requirements Notes
All TRDs must follow the vendor-agnostic facade pattern.