Prd to issues

From richkuo/rk-skills · View interactive version

Prd to issues is an AI agent skill from the GitHub repository richkuo/rk-skills. Turns a finished Product Requirements Document (PRD) into GitHub milestones and complete, scored issues with typed dependencies and Execution blocks. Use for "file the issues from the PRD", "/prd-to-issues", or "break this into GitHub issues". Stage 4 of the new-app-pipeline.

How to use this skill

Skill file

prd-to-issues

Produce a complete, dependency-ordered backlog an agent can implement from each issue plus its cited PRD. The deliverable ends at verified GitHub issues; building and dispatch need their own instruction.

Follow the target repo's CLAUDE.md/AGENTS.md Response Style and attribution rules. Read github-issue-format before composing bodies. Read validate-issue step 6 and its complexity-scoring reference for scoring and routing; they own the formula and band tables. Do not start the validation workflow.

1. Establish the source and existing work

2. Map requirements and dependencies

Hold the requirement-to-issue map, draft bodies, dependency graph, and each issue's create/reuse/update action while you work.

If a missing product decision blocks a complete spec, hold that issue and its successors. Run prd-questions for that decision only. Keep drafting and filing independent issues within existing authorization unless the user wants the whole backlog settled first. Report the held requirements as partial completion; never file a stub.

3. Draft complete issues and execution metadata

Use github-issue-format for title, rationale, body order, the mandatory ## Plain simple English section, and footer. Embed the issue's requirements and acceptance criteria; the PRD gives context, never the spec.

State the result, scope boundaries, contracts, prerequisite outputs, and verification method. Include failure paths and money, privacy, authorization, data-integrity, and irreversible-deletion invariants. Carry the PRD's worked examples into acceptance tests after checking them against the stated rules; resolve contradictions before filing.

Grade all five axes from the proposed edit list and required proof, recording evidence per grade and marking proposed versus inspected sites. Re-score title, rationale, and execution defaults together after any scope change.

Append exactly one Execution block before the footer; local keys appear only in unpublished drafts:

First-review routing belongs to the pipeline and the validate-issue step 6 table; copy no review rules here. Omit Validate model:, Validate effort:, Plan model:, and Plan effort: unless requested; a user-directed plan override writes Plan model: Fable 5.2 or Opus 5.5 (the default is Opus 5.5 below [C90] and Fable 5.2 at [C90] or higher); a user-directed validate override writes Validate model: Fable 5.2, Opus 5.5, or <Name> (Codex CLI[, <model-id>]) and the tier to Validate effort:. Never stamp Fable 5.2 as the Build model without a specific user instruction. Never stamp an external CLI harness as the Build model without one either; CLI overrides use <Name> (Codex CLI[, <model-id>]) or <Name> (Cursor CLI[, <model-id>]). For user-directed overrides, apply the validation and clamp rules in execution-plan-review without running its workflow.

4. Review the filing plan

Before any write, present the drafts and coverage map with a table of draft key, title, milestone, score, typed predecessors, and action. Confirm every requirement is covered, every criterion is verifiable, the graph is acyclic, routing matches scores or overrides, and each milestone has a completion outcome.

Honor existing authorization. If the user asked to review first or has not authorized filing, stop here and ask; do not ask again when the session already covers this scope. Under new-app-pipeline, keep its stage checkpoints. A material scope or dependency change after approval needs reconciliation first.

5. File in dependency order and verify

6. Report

Return milestone and issue links, a compact score/title table, and any unresolved or deferred scope. Separate reused and already-implemented work from new filings. When blocked, report partial completion and the next decision. Claim readiness only after the saved bodies and graph pass verification.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.