speccrew 0.1.9 → 0.1.10
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/.speccrew/skills/speccrew-dev-backend/SKILL.md +29 -3
- package/.speccrew/skills/speccrew-dev-desktop/SKILL.md +32 -4
- package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +32 -2
- package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +30 -2
- package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +38 -2
- package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +45 -9
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +32 -11
- package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +37 -2
- package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +35 -2
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +69 -4
- package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +43 -2
- package/.speccrew/skills/speccrew-project-diagnosis/SKILL.md +27 -2
- package/.speccrew/skills/speccrew-sd-backend/SKILL.md +52 -7
- package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +54 -9
- package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +54 -9
- package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +54 -9
- package/.speccrew/skills/speccrew-test-case-design/SKILL.md +31 -11
- package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +38 -5
- package/.speccrew/skills/speccrew-test-execute/SKILL.md +46 -36
- package/package.json +1 -1
|
@@ -12,6 +12,16 @@ tools: Read, Write, Glob, Grep, Terminal
|
|
|
12
12
|
|
|
13
13
|
# Workflow
|
|
14
14
|
|
|
15
|
+
## Absolute Constraints
|
|
16
|
+
|
|
17
|
+
> **These rules apply to ALL document generation steps. Violation = task failure.**
|
|
18
|
+
|
|
19
|
+
1. **FORBIDDEN: `create_file` for documents** — NEVER use `create_file` to write test reports or bug reports. Documents MUST be created by copying the template then filling sections with `search_replace`.
|
|
20
|
+
|
|
21
|
+
2. **FORBIDDEN: Full-file rewrite** — NEVER replace the entire document content in a single operation. Always use targeted `search_replace` on specific sections.
|
|
22
|
+
|
|
23
|
+
3. **MANDATORY: Template-first workflow** — Copy template MUST execute before filling sections.
|
|
24
|
+
|
|
15
25
|
## Step 1: Read Inputs
|
|
16
26
|
|
|
17
27
|
Read the following documents in order:
|
|
@@ -179,43 +189,33 @@ For each deviation, analyze:
|
|
|
179
189
|
|
|
180
190
|
Read template: `speccrew-test-execute/templates/TEST-REPORT-TEMPLATE.md`
|
|
181
191
|
|
|
182
|
-
### 6.2
|
|
183
|
-
|
|
184
|
-
Generate comprehensive test report including:
|
|
185
|
-
|
|
186
|
-
**Execution Summary**:
|
|
187
|
-
- Feature name and platform
|
|
188
|
-
- Test framework and version
|
|
189
|
-
- Execution date and duration
|
|
190
|
-
- Overall pass rate
|
|
192
|
+
### 6.2 Copy Template to Report Path
|
|
191
193
|
|
|
192
|
-
**
|
|
193
|
-
-
|
|
194
|
-
|
|
194
|
+
1. **Read template** from Step 6.1
|
|
195
|
+
2. **Replace top-level placeholders** (feature name, platform, execution date, etc.)
|
|
196
|
+
3. **Create the document** using `create_file` at: `{output_dir}/{feature}-test-report.md`
|
|
197
|
+
4. **Verify**: Document has complete section structure
|
|
195
198
|
|
|
196
|
-
|
|
197
|
-
- Breakdown by test type (happy path, boundary, exception, etc.)
|
|
198
|
-
- Pass rate per dimension
|
|
199
|
+
### 6.3 Fill Each Section Using search_replace
|
|
199
200
|
|
|
200
|
-
|
|
201
|
-
- Table of all failed tests
|
|
202
|
-
- Links to corresponding bug reports
|
|
201
|
+
Fill each section with test execution data.
|
|
203
202
|
|
|
204
|
-
**
|
|
205
|
-
-
|
|
206
|
-
-
|
|
203
|
+
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
204
|
+
> - **FORBIDDEN: `create_file` to rewrite the entire document**
|
|
205
|
+
> - **MUST use `search_replace` to fill each section individually**
|
|
206
|
+
> - **All section titles MUST be preserved**
|
|
207
207
|
|
|
208
|
-
**
|
|
209
|
-
- OS, runtime, framework versions
|
|
210
|
-
- Key dependencies
|
|
208
|
+
**Section Filling Guide:**
|
|
211
209
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
| Section | Content |
|
|
211
|
+
|---------|---------|
|
|
212
|
+
| **Execution Summary** | Feature name and platform, test framework and version, execution date and duration, overall pass rate |
|
|
213
|
+
| **Results Overview** | Counts and percentages for all result types, visual pass/fail indication |
|
|
214
|
+
| **Results by Test Dimension** | Breakdown by test type (happy path, boundary, exception, etc.), pass rate per dimension |
|
|
215
|
+
| **Failed Test Details** | Table of all failed tests, links to corresponding bug reports |
|
|
216
|
+
| **Coverage Status** | Requirement-to-test-case mapping, status per requirement |
|
|
217
|
+
| **Environment Information** | OS, runtime, framework versions, key dependencies |
|
|
218
|
+
| **Recommendations** | Priority fixes needed, suggested next steps |
|
|
219
219
|
|
|
220
220
|
## Step 7: Generate Bug Reports
|
|
221
221
|
|
|
@@ -223,9 +223,22 @@ Output path: `{output_dir}/{feature}-test-report.md`
|
|
|
223
223
|
|
|
224
224
|
Read template: `speccrew-test-execute/templates/BUG-REPORT-TEMPLATE.md`
|
|
225
225
|
|
|
226
|
-
### 7.2
|
|
226
|
+
### 7.2 Copy Template for Each Bug Report
|
|
227
227
|
|
|
228
228
|
For each FAIL type failure:
|
|
229
|
+
1. **Read template** from Step 7.1: `templates/BUG-REPORT-TEMPLATE.md`
|
|
230
|
+
2. **Replace top-level placeholders** (Bug ID, feature name, TC ID)
|
|
231
|
+
3. **Create document** using `create_file` at: `{output_dir}/bugs/{feature}-bug-{seq}.md`
|
|
232
|
+
|
|
233
|
+
### 7.3 Fill Each Bug Report Using search_replace
|
|
234
|
+
|
|
235
|
+
For each bug report created in 7.2, fill sections using `search_replace`:
|
|
236
|
+
|
|
237
|
+
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
238
|
+
> - **FORBIDDEN: `create_file` to rewrite the entire document**
|
|
239
|
+
> - **MUST use `search_replace` to fill each section individually**
|
|
240
|
+
|
|
241
|
+
**Section Filling Guide:**
|
|
229
242
|
|
|
230
243
|
1. **Assign Bug ID**: `BUG-{feature}-{seq}` (sequential numbering)
|
|
231
244
|
|
|
@@ -246,10 +259,7 @@ For each FAIL type failure:
|
|
|
246
259
|
- Relevant error log excerpt
|
|
247
260
|
- Suggested fix direction
|
|
248
261
|
|
|
249
|
-
4
|
|
250
|
-
Output path: `{output_dir}/bugs/{feature}-bug-{seq}.md`
|
|
251
|
-
|
|
252
|
-
### 7.3 Bug Report Quality Checklist
|
|
262
|
+
### 7.4 Bug Report Quality Checklist
|
|
253
263
|
|
|
254
264
|
Each bug report must include:
|
|
255
265
|
- [ ] Unique Bug ID
|