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.
@@ -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 Fill Report Content
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
- **Results Overview**:
193
- - Counts and percentages for all result types
194
- - Visual pass/fail indication
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
- **Results by Test Dimension**:
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
- **Failed Test Details**:
201
- - Table of all failed tests
202
- - Links to corresponding bug reports
201
+ Fill each section with test execution data.
203
202
 
204
- **Coverage Status**:
205
- - Requirement-to-test-case mapping
206
- - Status per requirement
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
- **Environment Information**:
209
- - OS, runtime, framework versions
210
- - Key dependencies
208
+ **Section Filling Guide:**
211
209
 
212
- **Recommendations**:
213
- - Priority fixes needed
214
- - Suggested next steps
215
-
216
- ### 6.3 Write Report
217
-
218
- Output path: `{output_dir}/{feature}-test-report.md`
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 Create Individual Bug Reports
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. **Write Individual File**:
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {