prompt-suite 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -1
- package/flows/ps.0-gen-rules.prompt.md +43 -43
- package/flows/ps.0-rev-rules.prompt.md +8 -8
- package/flows/ps.1-gen-requirement.prompt.md +7 -7
- package/flows/ps.1-rev-requirement.prompt.md +6 -6
- package/flows/ps.2-gen-design.prompt.md +11 -11
- package/flows/ps.2-rev-design.prompt.md +7 -7
- package/flows/ps.3-gen-code.prompt.md +10 -10
- package/flows/ps.3-rev-code.prompt.md +7 -7
- package/flows/ps.4-gen-test-plan.prompt.md +10 -10
- package/flows/ps.4-rev-test-plan.prompt.md +7 -7
- package/flows/ps.5-gen-test-code.prompt.md +9 -9
- package/flows/ps.5-rev-test-code.prompt.md +7 -7
- package/flows/ps.6-analyze.prompt.md +4 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/scripts/setup-ps-chat-antigravity.sh +1 -1
- package/scripts/setup-ps-chat-vscode.sh +1 -1
- package/{templates/gen-requirement-template.txt → specs/FEAT-000/gen-requirement-template.md} +3 -3
- package/raws/.gitkeep +0 -0
- package/raws/changename.md +0 -7
- package/raws/my-project-rules.txt +0 -7
- /package/{templates/gen-rule-template.txt → specs/FEAT-000/gen-rule-template.md} +0 -0
package/bin/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ const sourceRoot = path.join(__dirname, '..');
|
|
|
17
17
|
const targetRoot = path.join(process.cwd(), 'prompt-suite');
|
|
18
18
|
|
|
19
19
|
// Exclude 'flows' - will be copied directly to IDE prompts folder
|
|
20
|
-
const itemsToCopy = ['rules', 'scripts', 'templates', 'README.md'];
|
|
20
|
+
const itemsToCopy = ['rules', 'scripts', 'specs', 'templates', 'README.md'];
|
|
21
21
|
|
|
22
22
|
console.log(`\n🚀 Initializing Prompt Suite...`);
|
|
23
23
|
console.log(`Source: ${sourceRoot}`);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Initialize workflow rules for project (requirement, design, code, test)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.0-gen-rules
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Create workflow rules for all SDLC steps. Each step has 2 rules: gen-rule (for generation) and rev-rule (for review).
|
|
@@ -18,8 +18,8 @@ Create workflow rules for all SDLC steps. Each step has 2 rules: gen-rule (for g
|
|
|
18
18
|
|
|
19
19
|
**Input Type: File Path (Required)**
|
|
20
20
|
- Provides path to a text file containing Step, Stack, Architecture, etc.
|
|
21
|
-
- **File can be located anywhere** (not limited to `/
|
|
22
|
-
- Template file available at: `/
|
|
21
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
22
|
+
- Template file available at: `/prompt-suite/templates/gen-rule-template.txt`
|
|
23
23
|
- Format inside file:
|
|
24
24
|
```text
|
|
25
25
|
Step: ...
|
|
@@ -48,82 +48,82 @@ Create workflow rules for all SDLC steps. Each step has 2 rules: gen-rule (for g
|
|
|
48
48
|
## Output Format
|
|
49
49
|
|
|
50
50
|
### Output Location:
|
|
51
|
-
- **Base directory**: `<repo_root>/
|
|
51
|
+
- **Base directory**: `<repo_root>/prompt-suite/rules/`
|
|
52
52
|
- **Auto-creation**: Directory will be created automatically if it doesn't exist
|
|
53
53
|
- **File handling**: Existing files will be overwritten. **Review carefully before running.**
|
|
54
54
|
|
|
55
55
|
### Rules Structure:
|
|
56
56
|
```
|
|
57
|
-
/
|
|
58
|
-
├──
|
|
59
|
-
├──
|
|
60
|
-
├──
|
|
61
|
-
├──
|
|
62
|
-
├──
|
|
63
|
-
├──
|
|
64
|
-
├──
|
|
65
|
-
├──
|
|
66
|
-
├──
|
|
67
|
-
└──
|
|
57
|
+
/prompt-suite/rules/
|
|
58
|
+
├── ps.1-gen-requirement.rule.md
|
|
59
|
+
├── ps.1-rev-requirement.rule.md
|
|
60
|
+
├── ps.2-gen-design.rule.md
|
|
61
|
+
├── ps.2-rev-design.rule.md
|
|
62
|
+
├── ps.3-gen-code.rule.md
|
|
63
|
+
├── ps.3-rev-code.rule.md
|
|
64
|
+
├── ps.4-gen-test-plan.rule.md
|
|
65
|
+
├── ps.4-rev-test-plan.rule.md
|
|
66
|
+
├── ps.5-gen-test-code.rule.md
|
|
67
|
+
└── ps.5-rev-test-code.rule.md
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
### Rule Content by Step:
|
|
71
71
|
|
|
72
72
|
**Step 1 (Requirement):**
|
|
73
|
-
- `
|
|
73
|
+
- `ps.1-gen-requirement.rule.md`: Guidelines for converting raw request → requirement document
|
|
74
74
|
- What to include, what to avoid
|
|
75
75
|
- Template structure requirements
|
|
76
76
|
- Acceptance criteria format
|
|
77
77
|
- Edge case documentation
|
|
78
|
-
- `
|
|
78
|
+
- `ps.1-rev-requirement.rule.md`: Checklist for reviewing requirement documents
|
|
79
79
|
- Completeness checks
|
|
80
80
|
- Clarity verification
|
|
81
81
|
- Testability assessment
|
|
82
82
|
- Common mistakes to catch
|
|
83
83
|
|
|
84
84
|
**Step 2 (Design):**
|
|
85
|
-
- `
|
|
85
|
+
- `ps.2-gen-design.rule.md`: Guidelines for creating tech design from requirement
|
|
86
86
|
- Architecture principles (Clean Architecture, etc.)
|
|
87
87
|
- Security requirements
|
|
88
88
|
- API specification format
|
|
89
89
|
- Data model design rules
|
|
90
|
-
- `
|
|
90
|
+
- `ps.2-rev-design.rule.md`: Checklist for reviewing tech design
|
|
91
91
|
- Architecture compliance
|
|
92
92
|
- Security verification
|
|
93
93
|
- API completeness
|
|
94
94
|
- Implementation feasibility
|
|
95
95
|
|
|
96
96
|
**Step 3 (Code):**
|
|
97
|
-
- `
|
|
97
|
+
- `ps.3-gen-code.rule.md`: Coding standards and conventions
|
|
98
98
|
- Backend/Frontend coding rules
|
|
99
99
|
- Layer separation
|
|
100
100
|
- Error handling patterns
|
|
101
101
|
- Security implementation
|
|
102
|
-
- `
|
|
102
|
+
- `ps.3-rev-code.rule.md`: Code review checklist
|
|
103
103
|
- Code quality checks
|
|
104
104
|
- Security verification
|
|
105
105
|
- Performance considerations
|
|
106
106
|
- Test coverage requirements
|
|
107
107
|
|
|
108
108
|
**Step 4 (Test Plan):**
|
|
109
|
-
- `
|
|
109
|
+
- `ps.4-gen-test-plan.rule.md`: Guidelines for creating test plans
|
|
110
110
|
- Test level strategy (unit/integration/E2E)
|
|
111
111
|
- Coverage requirements
|
|
112
112
|
- Test case format
|
|
113
113
|
- Mock/stub guidelines
|
|
114
|
-
- `
|
|
114
|
+
- `ps.4-rev-test-plan.rule.md`: Test plan review checklist
|
|
115
115
|
- Coverage verification
|
|
116
116
|
- Test case quality
|
|
117
117
|
- Edge case inclusion
|
|
118
118
|
- Feasibility assessment
|
|
119
119
|
|
|
120
120
|
**Step 5 (Test Code):**
|
|
121
|
-
- `
|
|
121
|
+
- `ps.5-gen-test-code.rule.md`: Test code writing standards
|
|
122
122
|
- Test structure conventions
|
|
123
123
|
- Assertion best practices
|
|
124
124
|
- Test data management
|
|
125
125
|
- Deterministic test requirements
|
|
126
|
-
- `
|
|
126
|
+
- `ps.5-rev-test-code.rule.md`: Test code review checklist
|
|
127
127
|
- Test quality verification
|
|
128
128
|
- Coverage confirmation
|
|
129
129
|
- Reliability checks
|
|
@@ -150,7 +150,7 @@ INSTRUCTIONS:
|
|
|
150
150
|
- The user will provide a file path.
|
|
151
151
|
- USE `view_file` tool to read its content.
|
|
152
152
|
- **Fallback**: If the tool is unavailable or fails, ask the user to paste the file content directly.
|
|
153
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
153
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
154
154
|
|
|
155
155
|
2. **Parse Information**:
|
|
156
156
|
- Extract **Step** (required): Which step/rule to generate
|
|
@@ -164,8 +164,8 @@ TASK:
|
|
|
164
164
|
Generate gen-rule and rev-rule files based on STEP parameter:
|
|
165
165
|
- If Step = `1`, `2`,... → Generate BOTH gen-rule and rev-rule for that step.
|
|
166
166
|
- If Step = `all` → Generate ALL 10 files.
|
|
167
|
-
- If Step = `X-gen` → Generate ONLY `
|
|
168
|
-
- If Step = `X-rev` → Generate ONLY `
|
|
167
|
+
- If Step = `X-gen` → Generate ONLY `ps.X-gen-....rule.md`.
|
|
168
|
+
- If Step = `X-rev` → Generate ONLY `ps.X-rev-....rule.md`.
|
|
169
169
|
|
|
170
170
|
Follow the 9-section template structure defined below.
|
|
171
171
|
|
|
@@ -201,23 +201,23 @@ COMMON REQUIREMENTS (apply to ALL steps):
|
|
|
201
201
|
|
|
202
202
|
STEP-SPECIFIC FOCUS (only the delta for each step):
|
|
203
203
|
|
|
204
|
-
**Step 1 (Requirement) - Files:
|
|
204
|
+
**Step 1 (Requirement) - Files: ps.1-gen-requirement.rule.md, ps.1-rev-requirement.rule.md**
|
|
205
205
|
- gen: Acceptance criteria format, edge case documentation, error scenarios, what to avoid (inventing requirements, vague criteria)
|
|
206
206
|
- rev: Testability assessment, ambiguity checks, contradiction detection
|
|
207
207
|
|
|
208
|
-
**Step 2 (Design) - Files:
|
|
208
|
+
**Step 2 (Design) - Files: ps.2-gen-design.rule.md, ps.2-rev-design.rule.md**
|
|
209
209
|
- gen: Architecture principles (based on specified approach), security patterns, API specs (endpoints, request/response, errors), data model (migrations, indexes), observability (logs, metrics, tracing)
|
|
210
210
|
- rev: Architecture compliance, security verification, API completeness, data model safety, implementation feasibility
|
|
211
211
|
|
|
212
|
-
**Step 3 (Code) - Files:
|
|
212
|
+
**Step 3 (Code) - Files: ps.3-gen-code.rule.md, ps.3-rev-code.rule.md**
|
|
213
213
|
- gen: Layer separation (domain/application/infrastructure), naming conventions (classes, functions, variables), error handling patterns, security implementation, performance best practices
|
|
214
214
|
- rev: Code quality (readability, maintainability), architecture compliance, security vulnerabilities, performance considerations, test coverage, code smells
|
|
215
215
|
|
|
216
|
-
**Step 4 (Test Plan) - Files:
|
|
216
|
+
**Step 4 (Test Plan) - Files: ps.4-gen-test-plan.rule.md, ps.4-rev-test-plan.rule.md**
|
|
217
217
|
- gen: Test strategy (unit/integration/E2E), coverage requirements, test case format, mock/stub guidelines, test data requirements
|
|
218
218
|
- rev: Coverage verification (all use cases covered?), test case quality, edge case inclusion, feasibility
|
|
219
219
|
|
|
220
|
-
**Step 5 (Test Code) - Files:
|
|
220
|
+
**Step 5 (Test Code) - Files: ps.5-gen-test-code.rule.md, ps.5-rev-test-code.rule.md**
|
|
221
221
|
- gen: Test structure (AAA pattern), assertion best practices, test data management, deterministic tests (no flaky tests), mocking guidelines
|
|
222
222
|
- rev: Test quality, coverage confirmation, reliability (no flaky tests), maintainability
|
|
223
223
|
|
|
@@ -237,7 +237,7 @@ STRICT OUTPUT RULE:
|
|
|
237
237
|
|
|
238
238
|
SELF-CHECK BEFORE OUTPUT:
|
|
239
239
|
1. Verify all required files for the Step are generated.
|
|
240
|
-
2. Verify filenames match exactly (e.g., `
|
|
240
|
+
2. Verify filenames match exactly (e.g., `ps.1-gen-requirement.rule.md`).
|
|
241
241
|
3. Verify all 9 sections are present in every file.
|
|
242
242
|
```
|
|
243
243
|
|
|
@@ -304,8 +304,8 @@ SELF-CHECK BEFORE OUTPUT:
|
|
|
304
304
|
|
|
305
305
|
### Example 1: Generate all rules
|
|
306
306
|
```bash
|
|
307
|
-
/
|
|
308
|
-
# → Generates all 10 files in /
|
|
307
|
+
/ps.0-gen-rules /path/to/my-project-rules.txt
|
|
308
|
+
# → Generates all 10 files in /prompt-suite/rules/ (step1-5, each with gen + rev)
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
⚠️ **Warning**: This will overwrite existing rule files. Commit your changes first!
|
|
@@ -313,23 +313,23 @@ SELF-CHECK BEFORE OUTPUT:
|
|
|
313
313
|
### Example 2: Generate only step 1 rules (Requirement)
|
|
314
314
|
```bash
|
|
315
315
|
# In your input file: Step: 1
|
|
316
|
-
/
|
|
317
|
-
# → Generates:
|
|
316
|
+
/ps.0-gen-rules /path/to/step1-rules.txt
|
|
317
|
+
# → Generates: ps.1-gen-requirement.rule.md, ps.1-rev-requirement.rule.md
|
|
318
318
|
```
|
|
319
319
|
|
|
320
320
|
### Example 3: Generate step 2 rules (Design)
|
|
321
321
|
```bash
|
|
322
322
|
# In your input file: Step: 2
|
|
323
|
-
/
|
|
324
|
-
# → Generates:
|
|
323
|
+
/ps.0-gen-rules /path/to/step2-rules.txt
|
|
324
|
+
# → Generates: ps.2-gen-design.rule.md, ps.2-rev-design.rule.md
|
|
325
325
|
```
|
|
326
326
|
|
|
327
327
|
### Example 4: Generate step 3 rules (Code) in Vietnamese
|
|
328
328
|
```bash
|
|
329
329
|
# In your input file: Language: vi
|
|
330
|
-
/
|
|
331
|
-
# → Generates:
|
|
330
|
+
/ps.0-gen-rules /path/to/step3-vi-rules.txt
|
|
331
|
+
# → Generates: ps.3-gen-code.rule.md, ps.3-rev-code.rule.md (in Vietnamese)
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
## Next Steps
|
|
335
|
-
After generating workflow rules → run `/
|
|
335
|
+
After generating workflow rules → run `/ps.0-rev-rules` to review and improve
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review and improve workflow rules for consistency
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.0-rev-rules
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review and improve workflow rules for all SDLC steps. Detect contradictions, gaps, and suggest improvements.
|
|
@@ -19,9 +19,9 @@ Review and improve workflow rules for all SDLC steps. Detect contradictions, gap
|
|
|
19
19
|
**Input Type: File Path OR Directory Path (Required)**
|
|
20
20
|
- **File Path**: Reviews that specific rule file.
|
|
21
21
|
- **Directory Path**: Reviews ALL rule files (`*.rule.md`) in that directory.
|
|
22
|
-
- **Files/Dirs can be located anywhere** (not limited to `/
|
|
23
|
-
- Example File: `/path/to/
|
|
24
|
-
- Example Dir: `/path/to/
|
|
22
|
+
- **Files/Dirs can be located anywhere** (not limited to `/prompt-suite`)
|
|
23
|
+
- Example File: `/path/to/ps.1-gen-requirement.rule.md`
|
|
24
|
+
- Example Dir: `/path/to/prompt-suite/rules/`
|
|
25
25
|
- AI will automatically read the files
|
|
26
26
|
|
|
27
27
|
## Input Validation
|
|
@@ -30,7 +30,7 @@ Review and improve workflow rules for all SDLC steps. Detect contradictions, gap
|
|
|
30
30
|
- **Rule Content**:
|
|
31
31
|
- If Directory: Must contain valid `.rule.md` files.
|
|
32
32
|
- If File: Must be a valid `.rule.md` file (or text file with rule definitions).
|
|
33
|
-
- **Step Identification**: AI must be able to infer the Step ID (1-5) from the filename (e.g., `
|
|
33
|
+
- **Step Identification**: AI must be able to infer the Step ID (1-5) from the filename (e.g., `ps.1-...`) or content.
|
|
34
34
|
|
|
35
35
|
**If validation fails**: Stop immediately and output error message.
|
|
36
36
|
|
|
@@ -125,12 +125,12 @@ STRICT OUTPUT RULE:
|
|
|
125
125
|
|
|
126
126
|
### Option 1: Review Single File
|
|
127
127
|
```bash
|
|
128
|
-
/
|
|
128
|
+
/ps.0-rev-rules /path/to/ps.1-gen-requirement.rule.md
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
### Option 2: Review Directory (All Rules)
|
|
132
132
|
```bash
|
|
133
|
-
/
|
|
133
|
+
/ps.0-rev-rules /path/to/prompt-suite/rules/
|
|
134
134
|
# → Finds and reviews all *.rule.md files in that folder
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -153,4 +153,4 @@ STRICT OUTPUT RULE:
|
|
|
153
153
|
- "Never use if-else" → too extreme
|
|
154
154
|
|
|
155
155
|
## Next Steps
|
|
156
|
-
After reviewing and improving workflow rules → Start using them with `/
|
|
156
|
+
After reviewing and improving workflow rules → Start using them with `/ps.1-gen-requirement`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Convert raw customer request to structured requirement document
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.1-gen-requirement
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ Convert raw customer request into a structured, clear, and testable requirement
|
|
|
30
30
|
- If Mode is `UPDATE`, provide current business rules or code snippets to be modified.
|
|
31
31
|
|
|
32
32
|
**Rule File** (optional but recommended):
|
|
33
|
-
- `
|
|
33
|
+
- `ps.1-gen-requirement.rule.md` from `/prompt-suite/rules/` - Guidelines for generating requirements
|
|
34
34
|
|
|
35
35
|
## Input Validation
|
|
36
36
|
|
|
@@ -47,7 +47,7 @@ File markdown: `{#task-id}-requirement.md`
|
|
|
47
47
|
**Folder Structure**: All feature artifacts must be stored in:
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
/
|
|
50
|
+
/prompt-suite/specs/{#task-id}/
|
|
51
51
|
├── {#task-id}-requirement.md
|
|
52
52
|
├── {#task-id}-design.md
|
|
53
53
|
├── {#task-id}-test.md
|
|
@@ -55,7 +55,7 @@ File markdown: `{#task-id}-requirement.md`
|
|
|
55
55
|
└── {#task-id}-test.patch
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Example: `/
|
|
58
|
+
Example: `/prompt-suite/specs/FEAT-001/FEAT-001-requirement.md`
|
|
59
59
|
|
|
60
60
|
## Template
|
|
61
61
|
|
|
@@ -147,7 +147,7 @@ INSTRUCTIONS:
|
|
|
147
147
|
- The user will provide a file path.
|
|
148
148
|
- USE `view_file` tool to read its content.
|
|
149
149
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
150
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
150
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
151
151
|
|
|
152
152
|
**Behave based on Mode (if specified in file or prompt)**:
|
|
153
153
|
- **IF Mode is UPDATE**:
|
|
@@ -191,7 +191,7 @@ RULES:
|
|
|
191
191
|
## Usage Example
|
|
192
192
|
|
|
193
193
|
```bash
|
|
194
|
-
/
|
|
194
|
+
/ps.1-gen-requirement ~/Desktop/FEAT-001-request.txt
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
## Common Mistakes to Avoid
|
|
@@ -276,4 +276,4 @@ Raw request: "メール/パスワードでログインできるようにした
|
|
|
276
276
|
|
|
277
277
|
## Next Steps
|
|
278
278
|
|
|
279
|
-
After requirement is ready → run `/
|
|
279
|
+
After requirement is ready → run `/ps.1-rev-requirement` to review
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review requirement document for completeness and clarity
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.1-rev-requirement
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review requirement document to detect gaps, ambiguities, contradictions, and suggest improvements.
|
|
@@ -14,7 +14,7 @@ Review requirement document to detect gaps, ambiguities, contradictions, and sug
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-requirement.md`, `FEAT-001.md`, `my-FEAT-001-spec.md`)
|
|
15
15
|
- Task-id is needed to name output files
|
|
16
16
|
- Can be anywhere in filename, any format: `TASK-123`, `FEAT-001`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/Desktop/FEAT-001-requirement.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -23,7 +23,7 @@ Review requirement document to detect gaps, ambiguities, contradictions, and sug
|
|
|
23
23
|
- AI will automatically read file and extract task-id from filename
|
|
24
24
|
|
|
25
25
|
**Rule File** (optional but recommended):
|
|
26
|
-
- `
|
|
26
|
+
- `ps.1-rev-requirement.rule.md` from `/prompt-suite/rules/` (for quality checklist)
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -64,7 +64,7 @@ INSTRUCTIONS:
|
|
|
64
64
|
- The user will provide a file path.
|
|
65
65
|
- USE `view_file` tool to read its content.
|
|
66
66
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
67
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
67
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
68
68
|
|
|
69
69
|
2. **Extract Task ID** (for file path input):
|
|
70
70
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -141,7 +141,7 @@ RULES:
|
|
|
141
141
|
## Usage Example
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
/
|
|
144
|
+
/ps.1-rev-requirement /prompt-suite/specs/FEAT-001/FEAT-001-requirement.md
|
|
145
145
|
```
|
|
146
146
|
|
|
147
147
|
## Common Issues Found
|
|
@@ -203,4 +203,4 @@ Error/Edge cases:
|
|
|
203
203
|
```
|
|
204
204
|
|
|
205
205
|
## Next Steps
|
|
206
|
-
After clarifying → run `/
|
|
206
|
+
After clarifying → run `/ps.2-gen-design` to create technical design
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Create technical design from requirement (architecture, API, data model)
|
|
3
3
|
---
|
|
4
|
-
# /
|
|
4
|
+
# /ps.2-gen-design
|
|
5
5
|
|
|
6
6
|
## Description
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ Create technical design document from requirement and coding rules, including ar
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-requirement.md`, `TASK-123.md`)
|
|
15
15
|
- Task-id is needed to name output design file
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/Documents/FEAT-001-requirement.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -26,10 +26,10 @@ Create technical design document from requirement and coding rules, including ar
|
|
|
26
26
|
- `NEW`: Designing a new feature.
|
|
27
27
|
- `UPDATE`: Modifying existing design/code. **Requires strict impact analysis.**
|
|
28
28
|
|
|
29
|
-
**Coding Rule Files** (from `/
|
|
30
|
-
- `
|
|
29
|
+
**Coding Rule Files** (from `/prompt-suite/rules/`):
|
|
30
|
+
- `ps.2-gen-design.rule.md` (required) - Architecture, API, Security guidelines.
|
|
31
31
|
**MUST define project structure/roots.**
|
|
32
|
-
- `
|
|
32
|
+
- `ps.3-gen-code.rule.md` (optional) - For implementation context
|
|
33
33
|
|
|
34
34
|
**Language** (optional): Output language (default: `en`)
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ Create technical design document from requirement and coding rules, including ar
|
|
|
37
37
|
|
|
38
38
|
- **Requirement file**: Required, must exist
|
|
39
39
|
- **File name**: MUST contain task-id pattern `[A-Z]+-[0-9]+` (e.g., `FEAT-001-req.md`, `TASK-123.md`)
|
|
40
|
-
- **Coding rules**: `
|
|
40
|
+
- **Coding rules**: `ps.2-gen-design.rule.md` is required
|
|
41
41
|
- **Language**: If specified, must be one of: `en`, `vi`, `ja`, `ko`
|
|
42
42
|
|
|
43
43
|
**If validation fails**: Stop immediately and output error message.
|
|
@@ -46,10 +46,10 @@ Create technical design document from requirement and coding rules, including ar
|
|
|
46
46
|
|
|
47
47
|
File markdown: `{#task-id}-design.md`
|
|
48
48
|
|
|
49
|
-
**Folder Structure**: Save in `/
|
|
49
|
+
**Folder Structure**: Save in `/prompt-suite/specs/{#task-id}/`
|
|
50
50
|
|
|
51
51
|
```
|
|
52
|
-
/
|
|
52
|
+
/prompt-suite/specs/{#task-id}/{#task-id}-design.md
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
## Template
|
|
@@ -155,7 +155,7 @@ INSTRUCTIONS:
|
|
|
155
155
|
- Use available file-reading tool (e.g. `view_file`) to read content.
|
|
156
156
|
- **Fallback**: If tool is unavailable, ask user to paste content.
|
|
157
157
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
158
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
158
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
159
159
|
|
|
160
160
|
2. **Extract Task ID** (for file path input):
|
|
161
161
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -209,9 +209,9 @@ RULES:
|
|
|
209
209
|
## Usage Example
|
|
210
210
|
|
|
211
211
|
```bash
|
|
212
|
-
/
|
|
212
|
+
/ps.2-gen-design /prompt-suite/specs/FEAT-001/FEAT-001-requirement.md
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
## Next Steps
|
|
216
216
|
|
|
217
|
-
After tech design is ready → run `/
|
|
217
|
+
After tech design is ready → run `/ps.2-rev-design` to review
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review technical design for implementability and edge cases
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.2-rev-design
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review technical design to detect gaps, unhandled edge cases, and conflicts with coding rules.
|
|
@@ -14,7 +14,7 @@ Review technical design to detect gaps, unhandled edge cases, and conflicts with
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-design.md`, `TASK-123.md`)
|
|
15
15
|
- Task-id is needed to name output files
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/work/FEAT-001-design.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -22,13 +22,13 @@ Review technical design to detect gaps, unhandled edge cases, and conflicts with
|
|
|
22
22
|
- `~/design.md` ❌ (no task-id)
|
|
23
23
|
- AI will read file and extract task-id from filename
|
|
24
24
|
|
|
25
|
-
**Rule File**: `
|
|
25
|
+
**Rule File**: `ps.2-rev-design.rule.md` from `/prompt-suite/rules/` (Design review checklist)
|
|
26
26
|
|
|
27
27
|
## Input Validation
|
|
28
28
|
|
|
29
29
|
- **Design file**: Required, must exist
|
|
30
30
|
- **File name**: MUST contain task-id pattern `[A-Z]+-[0-9]+` (e.g., `FEAT-001-design.md`, `TASK-123.md`)
|
|
31
|
-
- **Coding rules**: `
|
|
31
|
+
- **Coding rules**: `ps.2-rev-design.rule.md` is required
|
|
32
32
|
|
|
33
33
|
**If validation fails**: Stop immediately and output error message.
|
|
34
34
|
|
|
@@ -56,7 +56,7 @@ INSTRUCTIONS:
|
|
|
56
56
|
- Use available file-reading tool (e.g. `view_file`) to read content.
|
|
57
57
|
- **Fallback**: If tool is unavailable, ask user to paste content.
|
|
58
58
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
59
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
59
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
60
60
|
|
|
61
61
|
2. **Extract Task ID** (for file path input):
|
|
62
62
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -125,8 +125,8 @@ RULES:
|
|
|
125
125
|
## Usage Example
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
/
|
|
128
|
+
/ps.2-rev-design /prompt-suite/specs/FEAT-001/FEAT-001-design.md
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
## Next Steps
|
|
132
|
-
After review is done → run `/
|
|
132
|
+
After review is done → run `/ps.3-gen-code` to generate code
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Generate feature code from technical design (git patch format)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.3-gen-code
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Generate feature source code from technical design, output as git unified diff (patch).
|
|
@@ -14,7 +14,7 @@ Generate feature source code from technical design, output as git unified diff (
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-design.md`, `TASK-123.md`)
|
|
15
15
|
- Task-id is needed to name output patch file
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/projects/FEAT-001-design.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -22,20 +22,20 @@ Generate feature source code from technical design, output as git unified diff (
|
|
|
22
22
|
- `~/design.md` ❌ (no task-id)
|
|
23
23
|
- AI will read file and extract task-id from filename
|
|
24
24
|
|
|
25
|
-
**Rule File**: `
|
|
25
|
+
**Rule File**: `ps.3-gen-code.rule.md` from `/prompt-suite/rules/` (Coding standards)
|
|
26
26
|
|
|
27
27
|
**Task Mode (Optional, Default: NEW)**
|
|
28
28
|
- `NEW`: Generating code for a new feature.
|
|
29
29
|
- `UPDATE`: Updating or refactoring existing code.
|
|
30
30
|
|
|
31
31
|
**Coding Rule Files**:
|
|
32
|
-
- `
|
|
32
|
+
- `ps.3-gen-code.rule.md` (required). **MUST define project structure/roots.**
|
|
33
33
|
|
|
34
34
|
## Input Validation
|
|
35
35
|
|
|
36
36
|
- **Design file**: Required, must exist
|
|
37
37
|
- **File name**: Must match pattern `{task-id}-design.md`
|
|
38
|
-
- **Coding rules**: `
|
|
38
|
+
- **Coding rules**: `ps.3-gen-code.rule.md` is required
|
|
39
39
|
- **Task Mode**: Must be `NEW` or `UPDATE` (case-insensitive)
|
|
40
40
|
|
|
41
41
|
**If validation fails**: Stop immediately and output error message.
|
|
@@ -44,7 +44,7 @@ Generate feature source code from technical design, output as git unified diff (
|
|
|
44
44
|
|
|
45
45
|
**Git unified diff (patch)** - NOT markdown!
|
|
46
46
|
|
|
47
|
-
**Save to**: `/
|
|
47
|
+
**Save to**: `/prompt-suite/specs/{#task-id}/{#task-id}-feature.patch`
|
|
48
48
|
|
|
49
49
|
Format:
|
|
50
50
|
```diff
|
|
@@ -89,7 +89,7 @@ INSTRUCTIONS:
|
|
|
89
89
|
- The user will provide a file path.
|
|
90
90
|
- USE `view_file` tool to read its content.
|
|
91
91
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
92
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
92
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
93
93
|
|
|
94
94
|
3. **Extract Task ID** (for file path input):
|
|
95
95
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -103,7 +103,7 @@ INSTRUCTIONS:
|
|
|
103
103
|
- Identify existing patterns (API handlers, services, repos) in the files related to the design.
|
|
104
104
|
- Reuse existing abstractions.
|
|
105
105
|
|
|
106
|
-
INPUT 2: Coding rules (
|
|
106
|
+
INPUT 2: Coding rules (ps.3-gen-code.rule.md)
|
|
107
107
|
<<<
|
|
108
108
|
{paste coding rules}
|
|
109
109
|
>>>
|
|
@@ -148,8 +148,8 @@ RULES:
|
|
|
148
148
|
## Usage Example
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
|
-
/
|
|
151
|
+
/ps.3-gen-code /prompt-suite/specs/FEAT-001/FEAT-001-design.md
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
## Next Steps
|
|
155
|
-
After applying patch → run `/
|
|
155
|
+
After applying patch → run `/ps.3-rev-code` to review
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review generated code patch for quality and correctness
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.3-rev-code
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review generated code patch to check correctness, quality, and alignment with tech doc.
|
|
@@ -14,14 +14,14 @@ Review generated code patch to check correctness, quality, and alignment with te
|
|
|
14
14
|
- **At least one filename MUST contain task-id** (e.g., `FEAT-001-design.md`)
|
|
15
15
|
- Task-id is needed to name output files
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **Files can be located anywhere** (not limited to `/
|
|
17
|
+
- **Files can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/FEAT-001-design.md ~/feature.patch` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md /tmp/code.diff` ✅
|
|
21
21
|
- `./design.md ./patch.diff` ❌ (no task-id)
|
|
22
22
|
- AI will read both files and extract task-id from filenames
|
|
23
23
|
|
|
24
|
-
**Rule File**: `
|
|
24
|
+
**Rule File**: `ps.3-rev-code.rule.md` from `/prompt-suite/rules/` (Code review checklist)
|
|
25
25
|
|
|
26
26
|
**Task Mode (Optional, Default: NEW)**
|
|
27
27
|
- `NEW`: Reviewing new feature code.
|
|
@@ -31,7 +31,7 @@ Review generated code patch to check correctness, quality, and alignment with te
|
|
|
31
31
|
|
|
32
32
|
- **Design file**: Required, must exist
|
|
33
33
|
- **Generated patch**: Required, must be valid git diff format
|
|
34
|
-
- **Coding rules**: `
|
|
34
|
+
- **Coding rules**: `ps.3-rev-code.rule.md` is required
|
|
35
35
|
|
|
36
36
|
**If validation fails**: Stop immediately and output error message.
|
|
37
37
|
|
|
@@ -66,7 +66,7 @@ INSTRUCTIONS:
|
|
|
66
66
|
- The user will provide file paths.
|
|
67
67
|
- USE `view_file` tool to read them.
|
|
68
68
|
- IF inputs are NOT file paths, ask user to provide file paths.
|
|
69
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
69
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
70
70
|
|
|
71
71
|
2. **Extract Task ID** (for file path input):
|
|
72
72
|
- Extract task-id from filenames using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -143,8 +143,8 @@ RULES:
|
|
|
143
143
|
## Usage Example
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
/
|
|
146
|
+
/ps.3-rev-code /prompt-suite/specs/FEAT-001/FEAT-001-design.md /prompt-suite/specs/FEAT-001/FEAT-001-feature.patch
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
## Next Steps
|
|
150
|
-
After reviewing code → run `/
|
|
150
|
+
After reviewing code → run `/ps.4-gen-test-plan` to create test plan
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Create test plan from technical design (unit/integration/E2E)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.4-gen-test-plan
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Create test plan document from technical design and coding rules, covering unit/integration/E2E tests.
|
|
@@ -14,7 +14,7 @@ Create test plan document from technical design and coding rules, covering unit/
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-design.md`, `TASK-123.md`)
|
|
15
15
|
- Task-id is needed to name output test plan file
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/Documents/FEAT-001-design.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -26,8 +26,8 @@ Create test plan document from technical design and coding rules, covering unit/
|
|
|
26
26
|
- `NEW`: Test plan for new feature.
|
|
27
27
|
- `UPDATE`: Test plan for feature update (Focus on regression).
|
|
28
28
|
|
|
29
|
-
**Coding Rule Files** (from `/
|
|
30
|
-
- `
|
|
29
|
+
**Coding Rule Files** (from `/prompt-suite/rules/`):
|
|
30
|
+
- `ps.4-gen-test-plan.rule.md` (required) - Test guidelines. **MUST define specific test folder structure.**
|
|
31
31
|
|
|
32
32
|
**Language** (optional): Output language (default: `en`)
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ Create test plan document from technical design and coding rules, covering unit/
|
|
|
35
35
|
|
|
36
36
|
- **Design file**: Required, must exist
|
|
37
37
|
- **File name**: Must match pattern `{task-id}-design.md`
|
|
38
|
-
- **Coding rules**: `
|
|
38
|
+
- **Coding rules**: `ps.4-gen-test-plan.rule.md` is required
|
|
39
39
|
- **Language**: If specified, must be one of: `en`, `vi`, `ja`, `ko`
|
|
40
40
|
|
|
41
41
|
**If validation fails**: Stop immediately and output error message.
|
|
@@ -43,9 +43,9 @@ Create test plan document from technical design and coding rules, covering unit/
|
|
|
43
43
|
## Output Format
|
|
44
44
|
File markdown: `{#task-id}-test.md`
|
|
45
45
|
|
|
46
|
-
**Folder Structure**: Save in `/
|
|
46
|
+
**Folder Structure**: Save in `/prompt-suite/specs/{#task-id}/`
|
|
47
47
|
```
|
|
48
|
-
/
|
|
48
|
+
/prompt-suite/specs/{#task-id}/{#task-id}-test.md
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
## Template
|
|
@@ -120,7 +120,7 @@ INSTRUCTIONS:
|
|
|
120
120
|
- The user will provide a file path.
|
|
121
121
|
- USE `view_file` tool to read its content.
|
|
122
122
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
123
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
123
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
124
124
|
|
|
125
125
|
2. **Extract Task ID** (for file path input):
|
|
126
126
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -164,8 +164,8 @@ RULES:
|
|
|
164
164
|
## Usage Example
|
|
165
165
|
|
|
166
166
|
```bash
|
|
167
|
-
/
|
|
167
|
+
/ps.4-gen-test-plan /prompt-suite/specs/FEAT-001/FEAT-001-design.md
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
## Next Steps
|
|
171
|
-
After test plan is ready → run `/
|
|
171
|
+
After test plan is ready → run `/ps.4-rev-test-plan` to review
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review test plan for coverage and edge cases
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.4-rev-test-plan
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review test plan to check coverage, traceability to tech doc, and missing edge cases.
|
|
@@ -14,20 +14,20 @@ Review test plan to check coverage, traceability to tech doc, and missing edge c
|
|
|
14
14
|
- **At least one filename MUST contain task-id** (e.g., `FEAT-001-design.md`)
|
|
15
15
|
- Task-id is needed to name output files
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **Files can be located anywhere** (not limited to `/
|
|
17
|
+
- **Files can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/FEAT-001-design.md ~/FEAT-001-test.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md /tmp/tests.md` ✅
|
|
21
21
|
- `./design.md ./tests.md` ❌ (no task-id)
|
|
22
22
|
- AI will read both files and extract task-id from filenames
|
|
23
23
|
|
|
24
|
-
**Rule File**: `
|
|
24
|
+
**Rule File**: `ps.4-rev-test-plan.rule.md` from `/prompt-suite/rules/` (Test plan review checklist)
|
|
25
25
|
|
|
26
26
|
## Input Validation
|
|
27
27
|
|
|
28
28
|
- **Design file**: Required, must exist
|
|
29
29
|
- **Test plan file**: Required, must exist
|
|
30
|
-
- **Coding rules**: `
|
|
30
|
+
- **Coding rules**: `ps.4-rev-test-plan.rule.md` is required
|
|
31
31
|
|
|
32
32
|
**If validation fails**: Stop immediately and output error message.
|
|
33
33
|
|
|
@@ -60,7 +60,7 @@ INSTRUCTIONS:
|
|
|
60
60
|
- The user will provide file paths.
|
|
61
61
|
- USE `view_file` tool to read them.
|
|
62
62
|
- IF inputs are NOT file paths, ask user to provide file paths.
|
|
63
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
63
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
64
64
|
|
|
65
65
|
2. **Extract Task ID** (for file path input):
|
|
66
66
|
- Extract task-id from filenames using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -117,8 +117,8 @@ RULES:
|
|
|
117
117
|
## Usage Example
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
/
|
|
120
|
+
/ps.4-rev-test-plan /prompt-suite/specs/FEAT-001/FEAT-001-design.md /prompt-suite/specs/FEAT-001/FEAT-001-test.md
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
## Next Steps
|
|
124
|
-
After review is done → run `/
|
|
124
|
+
After review is done → run `/ps.5-gen-test-code` to generate test code
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Generate test code from test plan (git patch format)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.5-gen-test-code
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Generate test code from test plan, output as git unified diff (patch).
|
|
@@ -14,7 +14,7 @@ Generate test code from test plan, output as git unified diff (patch).
|
|
|
14
14
|
- **Filename MUST contain task-id** (e.g., `FEAT-001-test.md`, `TASK-123.md`)
|
|
15
15
|
- Task-id is needed to name output test code patch
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **File can be located anywhere** (not limited to `/
|
|
17
|
+
- **File can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/Documents/FEAT-001-test.md` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md` ✅
|
|
@@ -27,13 +27,13 @@ Generate test code from test plan, output as git unified diff (patch).
|
|
|
27
27
|
- `UPDATE`: Updating tests for modified code.
|
|
28
28
|
- AI will extract task-id from filename
|
|
29
29
|
|
|
30
|
-
**Rule File**: `
|
|
30
|
+
**Rule File**: `ps.5-gen-test-code.rule.md` from `/prompt-suite/rules/` (Test code writing standards)
|
|
31
31
|
|
|
32
32
|
## Input Validation
|
|
33
33
|
|
|
34
34
|
- **Test plan file**: Required, must exist
|
|
35
35
|
- **File name**: Must match pattern `{task-id}-test.md`
|
|
36
|
-
- **Coding rules**: `
|
|
36
|
+
- **Coding rules**: `ps.5-gen-test-code.rule.md` is required
|
|
37
37
|
|
|
38
38
|
**If validation fails**: Stop immediately and output error message.
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@ Generate test code from test plan, output as git unified diff (patch).
|
|
|
41
41
|
|
|
42
42
|
**Git unified diff (patch)** - NOT markdown!
|
|
43
43
|
|
|
44
|
-
**Save to**: `/
|
|
44
|
+
**Save to**: `/prompt-suite/specs/{#task-id}/{#task-id}-test.patch`
|
|
45
45
|
|
|
46
46
|
## Prompt
|
|
47
47
|
|
|
@@ -60,7 +60,7 @@ INSTRUCTIONS:
|
|
|
60
60
|
- The user will provide a file path.
|
|
61
61
|
- USE `view_file` tool to read its content.
|
|
62
62
|
- IF input is NOT a file path, ask user to provide a file path.
|
|
63
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
63
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
64
64
|
|
|
65
65
|
2. **Extract Task ID** (for file path input):
|
|
66
66
|
- Extract task-id from filename using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -74,7 +74,7 @@ INSTRUCTIONS:
|
|
|
74
74
|
- **IF Mode is NEW**:
|
|
75
75
|
- Focus on coverage for the new feature.
|
|
76
76
|
|
|
77
|
-
INPUT 2: Test coding rules (
|
|
77
|
+
INPUT 2: Test coding rules (ps.5-gen-test-code.rule.md)
|
|
78
78
|
<<<
|
|
79
79
|
{paste test coding rules}
|
|
80
80
|
>>>
|
|
@@ -107,8 +107,8 @@ RULES:
|
|
|
107
107
|
## Usage Example
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
/
|
|
110
|
+
/ps.5-gen-test-code /prompt-suite/specs/FEAT-001/FEAT-001-test.md
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
## Next Steps
|
|
114
|
-
After applying patch → run `/
|
|
114
|
+
After applying patch → run `/ps.5-rev-test-code` to review
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Review test code patch for reliability and correctness
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.5-rev-test-code
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Review test code patch to check correctness, reliability, and alignment with test plan.
|
|
@@ -14,20 +14,20 @@ Review test code patch to check correctness, reliability, and alignment with tes
|
|
|
14
14
|
- **At least one filename MUST contain task-id** (e.g., `FEAT-001-test.md`)
|
|
15
15
|
- Task-id is needed to name output files
|
|
16
16
|
- Can be anywhere in filename: `FEAT-001`, `TASK-123`, `BUG-456`
|
|
17
|
-
- **Files can be located anywhere** (not limited to `/
|
|
17
|
+
- **Files can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/FEAT-001-test.md ~/test.patch` ✅
|
|
20
20
|
- `/tmp/TASK-123-spec.md /tmp/test-code.diff` ✅
|
|
21
21
|
- `./tests.md ./patch.diff` ❌ (no task-id)
|
|
22
22
|
- AI will read both files and extract task-id from filenames
|
|
23
23
|
|
|
24
|
-
**Rule File**: `
|
|
24
|
+
**Rule File**: `ps.5-rev-test-code.rule.md` from `/prompt-suite/rules/` (Test code review checklist)
|
|
25
25
|
|
|
26
26
|
## Input Validation
|
|
27
27
|
|
|
28
28
|
- **Test plan file**: Required, must exist
|
|
29
29
|
- **Generated test patch**: Required, must be valid git diff format
|
|
30
|
-
- **Coding rules**: `
|
|
30
|
+
- **Coding rules**: `ps.5-rev-test-code.rule.md` is required
|
|
31
31
|
|
|
32
32
|
**If validation fails**: Stop immediately and output error message.
|
|
33
33
|
|
|
@@ -59,7 +59,7 @@ INSTRUCTIONS:
|
|
|
59
59
|
- The user will provide file paths.
|
|
60
60
|
- USE `view_file` tool to read them.
|
|
61
61
|
- IF inputs are NOT file paths, ask user to provide file paths.
|
|
62
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
62
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
63
63
|
|
|
64
64
|
2. **Extract Task ID** (for file path input):
|
|
65
65
|
- Extract task-id from filenames using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -124,8 +124,8 @@ RULES:
|
|
|
124
124
|
## Usage Example
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
|
-
/
|
|
127
|
+
/ps.5-rev-test-code /prompt-suite/specs/FEAT-001/FEAT-001-test.md /prompt-suite/specs/FEAT-001/FEAT-001-test.patch
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
## Next Steps
|
|
131
|
-
After reviewing test code → run `/
|
|
131
|
+
After reviewing test code → run `/ps.6-analyze` to validate entire flow
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description: Validate requirement → design → code → test flow, find inconsistencies
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /
|
|
5
|
+
# /ps.6-analyze
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
Validate the entire flow from requirement → tech design → code → test, detect inconsistencies and gaps.
|
|
@@ -14,7 +14,7 @@ Validate the entire flow from requirement → tech design → code → test, det
|
|
|
14
14
|
- **Task-id extraction**: AI will try to extract from filenames (optional)
|
|
15
15
|
- If found, will be used in analysis report
|
|
16
16
|
- If not found, analysis will proceed without task-id reference
|
|
17
|
-
- **Files can be located anywhere** (not limited to `/
|
|
17
|
+
- **Files can be located anywhere** (not limited to `/prompt-suite`)
|
|
18
18
|
- Examples:
|
|
19
19
|
- `~/FEAT-001-req.md ~/FEAT-001-design.md ~/FEAT-001-test.md` ✅ (with task-id)
|
|
20
20
|
- `/tmp/requirement.txt /tmp/spec.md /tmp/tests.md` ✅ (without task-id)
|
|
@@ -79,7 +79,7 @@ INSTRUCTIONS:
|
|
|
79
79
|
- The user will provide file paths.
|
|
80
80
|
- USE `view_file` tool to read them.
|
|
81
81
|
- IF inputs are NOT file paths, ask user to provide file paths.
|
|
82
|
-
- File paths can be anywhere in the filesystem, not limited to `/
|
|
82
|
+
- File paths can be anywhere in the filesystem, not limited to `/prompt-suite`.
|
|
83
83
|
|
|
84
84
|
2. **Extract Task ID** (optional, for file path input):
|
|
85
85
|
- Try to extract task-id from filenames using pattern: `[A-Z]+-[0-9]+`
|
|
@@ -161,7 +161,7 @@ OUTPUT:
|
|
|
161
161
|
|
|
162
162
|
```bash
|
|
163
163
|
# 1. Run with file paths (can be anywhere in filesystem)
|
|
164
|
-
/
|
|
164
|
+
/ps.6-analyze \
|
|
165
165
|
/path/to/FEAT-001-requirement.md \
|
|
166
166
|
/path/to/FEAT-001-design.md \
|
|
167
167
|
/path/to/FEAT-001-test.md
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
console.log("
|
|
3
|
+
console.log("Prompt Suite Prompts is a CLI tool. Please run 'npx prompt-suite init' or see README.md for usage.");
|
|
4
4
|
module.exports = {};
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ GREEN='\033[0;32m'
|
|
|
13
13
|
BLUE='\033[0;36m'
|
|
14
14
|
NC='\033[0m' # No Color
|
|
15
15
|
|
|
16
|
-
echo -e "${BLUE}Starting
|
|
16
|
+
echo -e "${BLUE}Starting Prompt Suite Chat Setup for Antigravity...${NC}"
|
|
17
17
|
|
|
18
18
|
# Check source directory
|
|
19
19
|
if [ ! -d "$WORKFLOWS_DIR" ]; then
|
|
@@ -13,7 +13,7 @@ GREEN='\033[0;32m'
|
|
|
13
13
|
BLUE='\033[0;36m'
|
|
14
14
|
NC='\033[0m' # No Color
|
|
15
15
|
|
|
16
|
-
echo -e "${BLUE}Starting
|
|
16
|
+
echo -e "${BLUE}Starting Prompt Suite Chat Setup for VSCode...${NC}"
|
|
17
17
|
|
|
18
18
|
# Check source directory
|
|
19
19
|
if [ ! -d "$WORKFLOWS_DIR" ]; then
|
package/{templates/gen-requirement-template.txt → specs/FEAT-000/gen-requirement-template.md}
RENAMED
|
@@ -18,9 +18,9 @@ Example (Update Feature):
|
|
|
18
18
|
Task ID: FEAT-002
|
|
19
19
|
Language: vi
|
|
20
20
|
Task Mode: UPDATE
|
|
21
|
-
Existing Logic/Code:
|
|
21
|
+
Existing Logic/Code:
|
|
22
22
|
function login(email, password) {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// checked password
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
Raw Request: Cập nhật hàm login để thêm logic kiểm tra captcha trước khi check password. Nếu sai captcha trả về lỗi 400.
|
package/raws/.gitkeep
DELETED
|
File without changes
|
package/raws/changename.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Yêu cầu thay đổi tên dự án và prefix
|
|
2
|
-
|
|
3
|
-
Thực hiện các thay đổi sau cho hệ thống prompt:
|
|
4
|
-
|
|
5
|
-
1. **Đổi tên dự án**: Cập nhật tên thư mục hoặc tên gói thành `devflow-prompts`.
|
|
6
|
-
2. **Đổi Prefix Prompt**: Cập nhật tiền tố (prefix) cho các lệnh prompt từ tên cũ sang `devflow`.
|
|
7
|
-
- Ví dụ: đổi thành `df.1-gen-requirement`, `df.2-gen-design`, v.v.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Step: all
|
|
2
|
-
Stack: Laravel (Backend) + Inertia & Vue.js (Frontend)
|
|
3
|
-
Architecture: Read this source code to understand the architecture
|
|
4
|
-
Coding Rules: Read this source code to understand the coding rules
|
|
5
|
-
Team: 5 developers, mid-level experience
|
|
6
|
-
Constraints: Must support 10k concurrent users
|
|
7
|
-
Language: en
|
|
File without changes
|