Updated write-a-prd to to-prd

This commit is contained in:
Test
2026-04-17 13:10:02 +01:00
parent a77fa6e7a6
commit aaf3050857
2 changed files with 19 additions and 30 deletions
+12 -21
View File
@@ -1,19 +1,17 @@
--- ---
name: prd-to-issues name: to-issues
description: Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items. description: Break a plan, spec, or PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.
--- ---
# PRD to Issues # To Issues
Break a PRD into independently-grabbable GitHub issues using vertical slices (tracer bullets). Break a plan into independently-grabbable GitHub issues using vertical slices (tracer bullets).
## Process ## Process
### 1. Locate the PRD ### 1. Gather context
Ask the user for the PRD GitHub issue number (or URL). Work from whatever is already in the conversation context. If the user passes a GitHub issue number or URL as an argument, fetch it with `gh issue view <number>` (with comments).
If the PRD is not already in your context window, fetch it with `gh issue view <number>` (with comments).
### 2. Explore the codebase (optional) ### 2. Explore the codebase (optional)
@@ -21,7 +19,7 @@ If you have not already explored the codebase, do so to understand the current s
### 3. Draft vertical slices ### 3. Draft vertical slices
Break the PRD into **tracer bullet** issues. Each issue is a thin vertical slice that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer. Break the plan into **tracer bullet** issues. Each issue is a thin vertical slice that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer.
Slices may be 'HITL' or 'AFK'. HITL slices require human interaction, such as an architectural decision or a design review. AFK slices can be implemented and merged without human interaction. Prefer AFK over HITL where possible. Slices may be 'HITL' or 'AFK'. HITL slices require human interaction, such as an architectural decision or a design review. AFK slices can be implemented and merged without human interaction. Prefer AFK over HITL where possible.
@@ -38,7 +36,7 @@ Present the proposed breakdown as a numbered list. For each slice, show:
- **Title**: short descriptive name - **Title**: short descriptive name
- **Type**: HITL / AFK - **Type**: HITL / AFK
- **Blocked by**: which other slices (if any) must complete first - **Blocked by**: which other slices (if any) must complete first
- **User stories covered**: which user stories from the PRD this addresses - **User stories covered**: which user stories this addresses (if the source material has them)
Ask the user: Ask the user:
@@ -56,13 +54,13 @@ For each approved slice, create a GitHub issue using `gh issue create`. Use the
Create issues in dependency order (blockers first) so you can reference real issue numbers in the "Blocked by" field. Create issues in dependency order (blockers first) so you can reference real issue numbers in the "Blocked by" field.
<issue-template> <issue-template>
## Parent PRD ## Parent
#<prd-issue-number> #<parent-issue-number> (if the source was a GitHub issue, otherwise omit this section)
## What to build ## What to build
A concise description of this vertical slice. Describe the end-to-end behavior, not layer-by-layer implementation. Reference specific sections of the parent PRD rather than duplicating content. A concise description of this vertical slice. Describe the end-to-end behavior, not layer-by-layer implementation.
## Acceptance criteria ## Acceptance criteria
@@ -76,13 +74,6 @@ A concise description of this vertical slice. Describe the end-to-end behavior,
Or "None - can start immediately" if no blockers. Or "None - can start immediately" if no blockers.
## User stories addressed
Reference by number from the parent PRD:
- User story 3
- User story 7
</issue-template> </issue-template>
Do NOT close or modify the parent PRD issue. Do NOT close or modify any parent issue.
+7 -9
View File
@@ -1,23 +1,21 @@
--- ---
name: write-a-prd name: to-prd
description: Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature. description: Turn the current conversation context into a PRD and submit it as a GitHub issue. Use when user wants to create a PRD from the current context.
--- ---
This skill will be invoked when the user wants to create a PRD. You may skip steps if you don't consider them necessary. 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.
1. Ask the user for a long, detailed description of the problem they want to solve and any potential ideas for solutions. ## Process
2. Explore the repo to verify their assertions and understand the current state of the codebase. 1. Explore the repo to understand the current state of the codebase, if you haven't already.
3. Interview the user relentlessly about every aspect of this plan until you reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. 2. Sketch out 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.
4. Sketch out 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. 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.
Check with the user that these modules match their expectations. Check with the user which modules they want tests written for. Check with the user that these modules match their expectations. Check with the user which modules they want tests written for.
5. Once you have a complete understanding of the problem and solution, use the template below to write the PRD. The PRD should be submitted as a GitHub issue. 3. Write the PRD using the template below and submit it as a GitHub issue.
<prd-template> <prd-template>