返回 AiToEarn
SKILL.md
1 ---
2 name: to-prd
3 description: Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.
4 ---
5
6 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.
7
8 The issue tracker and triage label vocabulary should have been provided to you — run `/setup-matt-pocock-skills` if not.
9
10 ## Process
11
12 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the PRD, and respect any ADRs in the area you're touching.
13
14 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.
15
16 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.
17
18 Check with the user that these modules match their expectations. Check with the user which modules they want tests written for.
19
20 3. Write the PRD using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.
21
22 <prd-template>
23
24 ## Problem Statement
25
26 The problem that the user is facing, from the user's perspective.
27
28 ## Solution
29
30 The solution to the problem, from the user's perspective.
31
32 ## User Stories
33
34 A LONG, numbered list of user stories. Each user story should be in the format of:
35
36 1. As an <actor>, I want a <feature>, so that <benefit>
37
38 <user-story-example>
39 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
40 </user-story-example>
41
42 This list of user stories should be extremely extensive and cover all aspects of the feature.
43
44 ## Implementation Decisions
45
46 A list of implementation decisions that were made. This can include:
47
48 - The modules that will be built/modified
49 - The interfaces of those modules that will be modified
50 - Technical clarifications from the developer
51 - Architectural decisions
52 - Schema changes
53 - API contracts
54 - Specific interactions
55
56 Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
57
58 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.
59
60 ## Testing Decisions
61
62 A list of testing decisions that were made. Include:
63
64 - A description of what makes a good test (only test external behavior, not implementation details)
65 - Which modules will be tested
66 - Prior art for the tests (i.e. similar types of tests in the codebase)
67
68 ## Out of Scope
69
70 A description of the things that are out of scope for this PRD.
71
72 ## Further Notes
73
74 Any further notes about the feature.
75
76 </prd-template>
77
77 lines MARKDOWN