write-prd
Stage 2 - Acts as a Product Manager to turn raw user ideas into a rigorous Product Requirements Document (PRD), saving the output and managing the user…
Skill by sapientcoffee
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sapientcoffee-write-prd
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/write-prd
What's inside
- Skill name
write-prd- Description
- Stage 2 - Acts as a Product Manager to turn raw user ideas into a rigorous Product Requirements Document (PRD), saving the output and managing the user approval process.
- License
- Apache-2.0
- Instructions
- 43 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Skill: Write PRD (Product Requirements Document) (Stage 2)
## Objective
Your goal as the Product Manager is to turn raw, unstructured user ideas into a rigorous Product Requirements Document (PRD) and **pause for user approval** before any technical design or research begins.
## Rules of Engagement
- **Artifact Handover**: Save your final output back to the file system.
- **Save Location & Directory Reuse**: Output the markdown document to `plans/{feature-slug}/{timestamp}/02_PRD.md` and output the visual HTML counterpart to `plans/{feature-slug}/{timestamp}/visual-dashboard.html`. **CRITICAL**: Check if an existing plan directory already exists under `plans/{feature-slug}/` (e.g., created by `ideator` or a prior skill). If one exists, **REUSE that exact directory**. Do NOT create a new timestamp folder when `ideator` was run first. Fallback to creating a new timestamp directory ONLY if no existing directory for `{feature-slug}` exists under `plans/`.
- **UI Visibility / Artifact Mirroring**: In addition to saving the documents in the workspace, mirror `visual-dashboard.html` to system artifacts via `python3 ~/.gemini/config/plugins/bean-to-cup/skills/visual-dashboard/scripts/manage_dashboard.py mirror --plan-dir "plans/{feature-slug}/{timestamp}"`, and copy `02_PRD.md` to system artifacts as `02_prd.md`.
- **Pure Product Boundary**: Do NOT suggest technical frameworks, software libraries, databases, state management patterns, or physical file/folder structures. Keep the requirements focused entirely on the business problem, personas, customer journeys, scope, and functional acceptance criteria.
- **Approval Gate**: You MUST pause and actively ask the user if they approve the requirements before taking any further action.
- **Iterative Rework**: If the user leaves comments or provides feedback in chat, apply the requested changes to both `02_PRD.md` and `visual-dashboard.html`, and ask for approval again!
## Instructions
1. **Deconstruct User Intent**: Deeply analyze the user's initial idea or feature request.
2. **Draft the Markdown PRD**: Your PRD MUST include:
- **Problem Statement**: Definition of the pain point.
- **Target Personas**: Who will use this feature.
- **User Stories & Epics**: Structured as "As a [role], I want to [action] so that [outcome]."
- **Scope Boundaries**: In-Scope and Out-of-Scope lists.
- **Acceptance Criteria**: Gherkin (Given-When-Then) scenarios.
- **Non-Functional Requirements (NFRs) / Google Cloud Well-Architected Framework Pillars**: Reliability (self-healing, backups), Security (least-privilege IAM, VPC Service Controls, Cloud Secret Manager), Cost Optimization (right-sizing, cleanups), Performance Efficiency (indexes, cache, autoscaling thresholds).
- **Deployment & DevOps Strategy**: Target GCP runtimes, Terraform Infrastructure-as-Code resources, CI/CD setup, and progressive release strategies (canary, rolling, blue-green).
- **SRE & Observability Integration**: Google Cloud Logging (JSON formats), Cloud Monitoring metrics, Cloud Trace integration, SLIs/SLOs targets, error budget rules, and operational runbooks.
3. **Specification Purification Gate (`@copy-editor`)**:
- Post-drafting, dispatch the subagent `@copy-editor` in an isolated context to ingest `02_PRD.md`, eliminate AI boilerplate and corporate buzzwords, convert passive voice to active voice, and replace vague criteria with dense, measurable thresholds.
4. **OWASP ASVS Level 2 Threat Modeling Gate (`@threat-modeler`)**:
- Dispatch the subagent `@threat-modeler` in an isolated context to audit `02_PRD.md` against baseline ASVS Level 2 domains: V2 (Authentication), V3 (Session Management), V4 (Access Control), and V5 (Validation & Sanitization).
- Require `@threat-modeler` to write `docs/security/asvs_requirements.md` and return a binary `PASS` or `BLOCKED: <reasons>` decision. The gate fails if authorization checks or credential handling boundaries are missing.
- Refine `02_PRD.md` until `@threat-modeler` returns `PASS`.
5. **Generate Executable Evals (`evals/test_kpis.py`)**:
- Parse all measurable KPIs and non-functional requirements in `02_PRD.md` and generate programmatic benchmark test scripts in `evals/test_kpis.py` (e.g. testing latency thresholds, error rate bounds, and payload limits).
6. **Compile the Visual PRD inside the Unified Dashboard (`visual-dashboard.html`)**:
- Ensure `visual-dashboard.html` exists by executing `python3 ~/.gemini/config/plugins/bean-to-cup/skills/visual-dashboard/scripts/manage_dashboard.py ensure --plan-dir "plans/{feature-slug}/{timestamp}" --moniker "{feature-slug}"` (or invoke the `visual-dashboard` skill).
- Automatically compile all PRD sections into full-fidelity HTML cards and render raw markdown by running:
`python3 ~/.gemini/config/plugins/bean-to-cup/skills/visual-dashboard/scripts/manage_dashboard.py sync-prd --plan-dir "plans/{feature-slug}/{timestamp}" --moniker "{feature-slug}"`
- **Zero Intermediate Snippet Files**: Do NOT write any temporary HTML files. `sync-prd` parses `02_PRD.md` directly and updates `visual-dashboard.html` in-place.
7. Save all documents (`02_PRD.md`, `evals/test_kpis.py`, `visual-dashboard.html`).
8. **Halt Execution**: Explicitly ask the user: "Do you approve of these product requirements and PRD? Please review `02_PRD.md`, the executable KPIs in `evals/test_kpis.py`, and the visual dashboard `visual-dashboard.html`. Once approved, we will proceed to Stage 3: Context Extraction."From sapientcoffee/bean-roaster, Apache-2.0.
More from sapientcoffee/bean-roaster
- 0.521score
grill
sapientcoffee
Stage 1 - A relentless Socratic interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
SkillBFreshness: BClaude Code +9 - 0.521score
ideator
sapientcoffee
Generates a product discovery and technical architecture draft from any raw product idea, feature request, or prompt.
SkillBFreshness: BClaude Code +9 - 0.518score
feature
sapientcoffee
Stage 2 - Initialize a new feature development workflow (Discovery & Validation)
SkillBFreshness: BClaude Code +9 - 0.513score
grilling
sapientcoffee
[DEPRECATED] Use the 'grill' skill instead.
SkillBFreshness: BClaude Code +9 - 0.499score
domain-modeling
sapientcoffee
Build and sharpen a project's domain model.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 9, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/sapientcoffee/bean-roaster
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sapientcoffee
- 0.526score
harness-immunizer
sapientcoffee
Velocity Harness Patch self-healing mechanism.
SkillBFreshness: BClaude Code +9 - 0.526score
cycle-telemetry
sapientcoffee
Velocity Chess Clock telemetry tracker.
SkillBFreshness: BClaude Code +9 - 0.526score
code-hygiene
sapientcoffee
Deterministic local code hygiene runner.
SkillBFreshness: BClaude Code +9 - 0.524score
github-workflow
sapientcoffee
Phase 9 - Provides the process for raising git commits, checking branches, and creating PRs using the gh CLI.
SkillBFreshness: BClaude Code +9 - 0.521score
git-delivery
sapientcoffee
Provides an emoji-powered, good-practice delivery pipeline to verify code quality, craft conventional atomic commits, and compile premium "What, Why, How"…
SkillBFreshness: BClaude Code +9 - 0.521score
record
sapientcoffee
Record terminal interactions and compile them to animated GIFs.
SkillBFreshness: BClaude Code +9
Cite this page
write-prd skill. Agent Mart. https://agentmart.dev/skills/sapientcoffee-write-prd (last updated 2026-10-24)