From shipshitdev-library
Drafts, scopes, and formalizes features as PRDs that planning agents can consume without re-elicitation. Activates on 'write a PRD for X', 'let's plan X', or when fleshing out tracker issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shipshitdev-library:prd-writerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A PRD is the input contract for the planning phase. It must contain enough
A PRD is the input contract for the planning phase. It must contain enough context, acceptance criteria, scope boundaries, and verification detail for a planning agent to produce a plan without re-eliciting requirements.
This skill is platform-agnostic. It assumes a plan → review → verify → ship flow where a PRD is written first, a planner decomposes it into steps, and a verifier checks the result against the PRD's acceptance criteria. Adapt the storage and field mechanics below to whatever tracker you use.
Use the tracker issue body as the default PRD location: one document per work item, one location. Avoid local sidecar files unless the repo explicitly uses them as source truth.
updated field.If there is no connected tracker, decide on the single canonical location for the PRD before writing — do not draft into a throwaway scratch file that nobody will find again.
Do not put YAML frontmatter at the top of issue bodies. Trackers render issue-body frontmatter as visible noise and already have native fields for this metadata.
Use native tracker / project-board fields instead:
Feature, Bug, or Task.Backlog, In Progress, Human Review, Done, or Deferred.P0, P1, P2, or P3.Low, Medium, or High.Contained, Cross-package, Cross-app, or Infra.Rules:
# PRD: <name> and contains only human-readable PRD content.Medium and explain why in Risks & Open Questions.Draft is workflow state, not body text. Keep draft PRDs off the runnable board path through status fields, not by editing the body.The issue title is what the board shows most of the time. Keep it at or under 80 characters.
Add pipeline checkpoints, Track CI blockers on issues, Expose model selectors in settings.and / while / during unless the feature is truly one inseparable unit.# PRD: name aligned with the final issue title's slugified form. If you shorten the title, shorten the PRD heading too.Bad:
Open draft PR during execution and ingest PR feedback into stabilization loopTreat CI failures as blocker state on issue tasksBetter:
Add draft PR feedback loopTrack CI blockers on issuesEvery PRD must have these sections, in this order. Missing sections fail quality gate.
# PRD: <name>
## Executive Summary
<2–4 sentences. What is this feature, why now, who wins.>
## Problem Statement
<The concrete pain. Reference real incidents, real users, real metrics where possible.
Avoid "users might want..." — if you can't name the user, you don't have a problem yet.>
## Goals
- <measurable, verifiable goal>
- <measurable, verifiable goal>
## Non-Goals
- <thing this explicitly does NOT do — the more you list, the less scope creep downstream>
## User Stories
- As a <role>, I want <capability> so that <outcome>.
- Each story ends with "**Acceptance:**" followed by 1–3 EARS criteria
(`WHEN <trigger> THE SYSTEM SHALL <response>`) — same syntax as Acceptance Criteria below.
## Functional Requirements
<Numbered list. Each item must be verifiable by reading code or running it.
NO implementation details — "the system must do X", not "use Zustand to do X".>
## Non-Functional Requirements
<Performance, accessibility, error-handling, offline, observability.
Only list the ones that actually matter for this feature.>
## Acceptance Criteria
<The bar the verification phase will check against. Write every bullet in EARS
syntax (Easy Approach to Requirements Syntax) so it parses unambiguously and is
pass/fail without judgement. Each bullet becomes an assertion the verifier checks:
- Event: WHEN <trigger> THE SYSTEM SHALL <response>.
- State: WHILE <state> THE SYSTEM SHALL <response>.
- Unwanted: IF <condition> THEN THE SYSTEM SHALL <response>.
- Optional: WHERE <feature enabled> THE SYSTEM SHALL <response>.
- Always: THE SYSTEM SHALL <invariant>.>
## Out of Scope
<At least one explicit boundary the implementation must not cross.>
## Dependencies
<Other PRDs, packages, external APIs, feature flags. Reference by path or URL.>
## Verification Plan
<How the verifier will know this shipped correctly.
`tests`: list the test files/suites that must exist and pass.
`manual`: list the manual QA steps a human will run post-merge.
`both`: both sections. The clearer this section, the fewer verification retries you burn.>
## Risks & Open Questions
<Unknowns, edge cases, things that could kill the plan mid-execution.
Open questions get tracked here until answered, then deleted.>
A PRD is read by the planning agent. Every section has a downstream consumer:
| PRD section | Feeds | Consumer |
|---|---|---|
| Executive Summary | Plan objective | Plan display, PR title, board card |
| Goals + Functional Requirements | Plan steps | Planner decomposition |
| Acceptance Criteria | Acceptance criteria (EARS) | Verification phase |
| Out of Scope | Plan out-of-scope list | Review phase (rejects scope creep) |
| Complexity field | Estimated complexity | Review rubric, retry budget |
| Verification Plan | Verification prompt input | Verification phase |
| Non-Goals + Out of Scope | Review gate | Reviewer rejects patches that violate these |
Do not write sections that describe files to change, function names, or implementation choices. Those belong in the plan, not the PRD. If you can't resist writing pseudo-code, put it under "Risks & Open Questions" as "I suspect we'll need to touch X" — not as a requirement.
Before marking a PRD ready for a planner to consume, every one of these must be true:
TODO, TBD, <fill this in>) remains in any section.Goals has at least one measurable bullet.Acceptance Criteria has at least one bullet, every bullet is written in EARS syntax (WHEN/WHILE/WHERE/IF … THE SYSTEM SHALL …, or a bare THE SYSTEM SHALL …), and each is verifiable without judgement — it either passes or fails. "Feels fast" is not verifiable. "WHEN the issues query runs THE SYSTEM SHALL return p95 latency < 300ms" is.Out of Scope has at least one bullet. Empty Out of Scope is a tell that the author didn't scope the feature.User Stories has at least one story with explicit Acceptance bullets.Dependencies is named (package, PRD path, or URL), not described vaguely.Verification Plan names either test file paths, suite names, or concrete manual steps — not "write some tests".If any gate fails, keep it in draft/on-hold workflow state and do not mark it ready to plan.
Confirm where the PRD will live. If using a tracker, confirm the target repo/project. If nothing is connected, agree on the single canonical location first — there must be exactly one.
Do not start writing immediately. Run a short elicitation pass first — you need answers before section-filling is meaningful:
Check for an existing issue. Search the project's tracker by keywords and state. If a matching issue already exists, ask whether to edit it or create a fresh one.
Kebab-case the PRD name. If the proposed name has spaces, camelCase, or punctuation, kebab-case it: "Notification Center" → notification-center. This slug goes in the # PRD: heading.
Compress the issue title before writing the body. Default to a short imperative title, then derive the # PRD: heading from that final title. Put nuance in the Executive Summary, not the title.
Draft the PRD body using the template above, in a scratch buffer. Fill every required section. If you can't fill a section, ask the user — don't hallucinate requirements.
Run the quality gates against the draft. If any fail, keep the issue in draft/on-hold workflow state and tell the user which gates failed. If they all pass, mark it ready through native project state.
Create the issue (with user approval). Show the drafted body first. On approval, create it through the tracker's native issue creation flow, using the PRD markdown as the issue body.
Confirm the outcome to the user with the issue URL and whether the PRD
passed every quality gate. Then suggest the next step: Ready to hand this to the planner? Say: plan issue #N.
## Implementation Plan comment on the same issue (see writing-plans) — it lives on the issue, not in a local file, so it stays in sync with the PRD and reaches the loop.Observed failure modes — do not repeat:
use TanStack Query v5 for caching in Functional Requirements. The PRD describes the what; the plan owns the how. This leaks into review and causes the reviewer to flag the plan for violating the PRD, which the planner then "fixes" by copying the implementation detail verbatim. Dead loop.WHEN the import completes THE SYSTEM SHALL display a success toast within 200ms.The text below is the exact issue body to publish. Tracker metadata belongs in native fields, not in this body.
# PRD: copy-issue-url-action
## Executive Summary
Users working in the board frequently need to paste an issue URL into chat,
commit messages, or an external ticketing tool. Today the only way to get the
URL is to click into the issue, then copy from the header — three clicks and
a context switch. Add a "Copy URL" action to the card's context menu so it
takes one click.
## Problem Statement
Observed on 2026-04-09: the user mentioned needing to paste an issue URL
into a chat thread five times in a single session, each requiring a detour
through the issue detail view. This is pure friction — the URL is already known.
## Goals
- Right-clicking a board card shows a context menu with "Copy URL".
- Clicking "Copy URL" writes the issue's URL to the clipboard and
shows a toast confirming the copy.
## Non-Goals
- Copying anything other than the URL (title, body, ID — all separate actions
if demand appears).
- A multi-select "copy all URLs" bulk action.
- Keyboard shortcut for copy — mouse-only for v1.
## User Stories
- As a developer pasting issue links into chat, I want to copy an issue's
URL without leaving the board, so that I don't break my flow.
**Acceptance:**
- WHEN a user right-clicks a board card THE SYSTEM SHALL display a context
menu including a "Copy URL" action.
- WHEN a user clicks "Copy URL" THE SYSTEM SHALL write the issue's URL to the
system clipboard.
- WHEN the copy succeeds THE SYSTEM SHALL display a confirmation toast within 200ms.
## Functional Requirements
1. The card component must support a right-click context menu.
2. The context menu must include an action labeled "Copy URL".
3. The URL written to the clipboard must be the canonical issue URL.
4. The toast notification must use the existing UI toast primitive.
## Non-Functional Requirements
- Clipboard write must succeed or fail cleanly — no silent failures. On
permission denial, surface an error toast.
## Acceptance Criteria
- WHEN a user right-clicks any board card THE SYSTEM SHALL open a context menu
containing a "Copy URL" item.
- WHEN a user clicks "Copy URL" THE SYSTEM SHALL place the exact canonical issue
URL on the clipboard.
- WHEN the clipboard write succeeds THE SYSTEM SHALL display a success toast.
- IF the clipboard API rejects the write THEN THE SYSTEM SHALL display an error toast.
## Out of Scope
- Copying other fields (title, body, branch name).
- Bulk selection + copy.
- Keyboard shortcut bindings.
- A "Share" action that opens the URL in the browser.
## Dependencies
- The existing UI toast primitive in the project's component library.
- The issue number and repo identifier for URL construction.
## Verification Plan
- **tests:** add a test that simulates a right-click and asserts the context
menu includes a "Copy URL" item wired to a mocked clipboard write.
- **manual:** right-click three cards from different projects, paste the
clipboard into a browser tab, verify the URL loads the correct issue.
## Risks & Open Questions
- Which clipboard API does the renderer use today? Check the existing
implementation before writing new clipboard code.
- Do we need focus-management so the context menu doesn't fight with
drag-and-drop handlers on the same card?
Note: no created, updated, status, complexity, or blast radius fields in the body — the tracker and project board track those natively. No file path — the PRD lives in the issue body itself.
npx claudepluginhub shipshitdev/skills --plugin worktreeGuides writing product requirements documents (PRDs) from discovery to spec, with validation checklists and kill criteria. Useful for turning vague ideas into buildable specs.
Drafts lightweight PRDs via guided conversation for feature ideas, requirements brainstorming, sprint planning, user stories, and acceptance criteria expansion.