/dev-workflow:to-prdfrom dev-workflow
Synthesizes conversation context and codebase understanding into a Product Requirements Document (PRD) saved as a local markdown file. Checks for CONTEXT.md glossary and ADRs before drafting.
Ships in dev-workflow. 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.
None: SKILL.md is the whole skill.
This skill takes the current conversation context and codebase understanding and produces a PRD. Do NOT interview the user — just synthesize what you already know. If the conversation has not produced enough context yet, say so explicitly and suggest /grill-with-docs first; do not start interviewing from this skill.
Domain glossary check. Before drafting the PRD:
CONTEXT.md / domain glossary, read it and use the glossary's vocabulary throughout the PRD.CONTEXT.md does NOT exist, surface this once — say: "No CONTEXT.md yet. The PRD will use the most domain-precise terms I can extract from the conversation; want me to also seed a CONTEXT.md with the 3-5 load-bearing terms before publishing?" Don't block — proceed if AFK.docs/adr/ exists, respect any ADRs in the area you're touching.Sketch the major modules you will need to build or modify to complete the implementation. Actively look for opportunities to extract deep modules that can be tested in isolation.
A deep module (as opposed to a shallow module) is one which encapsulates a lot of functionality in a simple, testable interface which rarely changes. (See improve-codebase-architecture/LANGUAGE.md for the full vocabulary.)
Check with the user that these modules match their expectations. Check with the user which modules they want tests written for.
Write the PRD using the template below, then save it:
docs/prds/PRD-{slug}.md and tell the user the path.gh auth status succeeding means you can publish, not that you should — an issue on a shared or public repo is outward-facing.When publishing, apply the triage label vocabulary if one is configured (e.g. ready-for-agent). Otherwise, no label.
The problem that the user is facing, from the user's perspective.
The solution to the problem, from the user's perspective.
A LONG, numbered list of user stories. Each user story should be in the format of:
This list of user stories should be extremely extensive and cover all aspects of the feature.
A list of implementation decisions that were made. This can include:
Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
A list of testing decisions that were made. Include:
A description of the things that are out of scope for this PRD.
Any further notes about the feature.
grill-with-docs — the interview counterpart to this skill. Run grill-with-docs first when the conversation hasn't established enough context; run to-prd to crystallise that context once it has. If the PRD's Implementation Decisions contain hard-to-reverse architectural choices, those should also become ADRs (criteria and format in its ADR-FORMAT.md).deep-plan — once the PRD is published, run deep-plan to turn it into a phased implementation plan.Adapted from mattpocock/skills — engineering/to-prd. License: MIT.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub davie521/claude-skills --plugin dev-workflow10 skills in this plugin
/cavemanUltra-compressed communication mode. Substantially cuts token usage by dropping filler, articles, and pleasantries while keeping full technical accuracy. Designed for English output; limited effect on Chinese conversations. TRIGGER only on explicit invocation: user says "caveman mode", "talk like caveman", "use caveman", or invokes /caveman. DO NOT TRIGGER when user merely asks for a short or concise answer — that is a one-off style request, not a switch into this persistent mode.
/cleanupEnd-of-session cleanup: shut down every process the session started, find code-vs-doc mismatches and update the DOCS to match the code (code is the source of truth; never rewrite code just to match a doc), drive leftover tasks to zero (finish or explicitly report), and persist lessons learned to memory. Each phase must end with an explicit done / not-needed verdict — no silent skipping. Use when the user says 'cleanup', '收尾', '清理现场', '打扫', wants to wrap up a work session, or before handing off / ending a long task./cprAutomated Git PR workflow: detect status → commit → create PR → run CI and a Codex review in parallel → fix CI failures and the review findings that need it → re-review until the review of the current HEAD passes (no CRITICAL/HIGH introduced or enlarged by the PR) → auto-merge. Stops only when a user decision is needed. Use when user says 'cpr' or 'cl', or wants to push code through the full PR pipeline.Other plugins' skills for the same job