speccrew 0.6.22 → 0.6.23
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/agents/speccrew-product-manager.md +19 -0
- package/.speccrew/agents/speccrew-system-developer.md +1 -1
- package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +47 -0
- package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +46 -0
- package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +42 -0
- package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +57 -1
- package/package.json +1 -1
|
@@ -562,6 +562,24 @@ No knowledge base exists. A lightweight feature inventory scan is triggered to d
|
|
|
562
562
|
> **Path B Step 5: Update Features Status**
|
|
563
563
|
> After all analyze Workers complete, update each analyzed feature's `analyzed` field to `true` in the corresponding features-*.json file.
|
|
564
564
|
>
|
|
565
|
+
> **Path B Step 6: Generate System Overview**
|
|
566
|
+
> Dispatch a Worker to generate system-overview.md from all module-overview files:
|
|
567
|
+
>
|
|
568
|
+
> ```
|
|
569
|
+
> Use the Agent tool to invoke speccrew-task-worker:
|
|
570
|
+
> - agent: speccrew-task-worker
|
|
571
|
+
> - task: Execute speccrew-knowledge-system-summarize skill
|
|
572
|
+
> - context:
|
|
573
|
+
> skill: speccrew-knowledge-system-summarize
|
|
574
|
+
> modules_path: {workspace_path}/knowledges/bizs
|
|
575
|
+
> output_path: {workspace_path}/knowledges/bizs
|
|
576
|
+
> language: {language}
|
|
577
|
+
> ```
|
|
578
|
+
>
|
|
579
|
+
> This step aggregates all module-overview.md files into a single system-overview.md, which PM Agent uses as the primary knowledge context when processing new requirements.
|
|
580
|
+
>
|
|
581
|
+
> ⚠️ This step MUST complete before Phase 1 exits. system-overview.md is required for subsequent requirement analysis.
|
|
582
|
+
>
|
|
565
583
|
> Only after ALL Steps complete, proceed to Phase 2 (Requirement Clarification).
|
|
566
584
|
>
|
|
567
585
|
> 🛑 **Path B Completion Check**:
|
|
@@ -571,6 +589,7 @@ No knowledge base exists. A lightweight feature inventory scan is triggered to d
|
|
|
571
589
|
> - [ ] Step 3 completed: analyze Workers dispatched and completed for ALL pending features
|
|
572
590
|
> - [ ] Step 4 completed: module-summarize Workers completed for ALL matched modules
|
|
573
591
|
> - [ ] Step 5 completed: features-*.json updated with analyzed=true
|
|
592
|
+
> - [ ] Step 6 completed: system-overview.md generated
|
|
574
593
|
>
|
|
575
594
|
> If ANY step is incomplete, DO NOT proceed. Execute the missing steps first.
|
|
576
595
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: speccrew-system-developer
|
|
3
3
|
description: SpecCrew System Developer. Reads system design blueprints and coordinates cross-platform development task dispatch. Loads techs knowledge, verifies environment readiness, dispatches per-platform dev skills, performs integration checks, and delivers development completion reports. Supports web, mobile, desktop, and backend platforms.
|
|
4
|
-
tools: Read, Write, Glob, Grep, Bash
|
|
4
|
+
tools: Read, Write, Glob, Grep, Bash
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Quick Reference — Execution Flow
|
|
@@ -364,6 +364,45 @@ Log: "✅ Checkpoint B (feature_design_review) passed and recorded"
|
|
|
364
364
|
|
|
365
365
|
## Step 5: Determine Output Path & Copy Template
|
|
366
366
|
|
|
367
|
+
> **⚠️ CRITICAL: Two-Phase Strategy (Skeleton-First, Content-After)**
|
|
368
|
+
>
|
|
369
|
+
> Steps 5 and 6 MUST be executed in two phases to ensure consistent document structure.
|
|
370
|
+
|
|
371
|
+
### Phase A: Skeleton Construction (BEFORE any content filling)
|
|
372
|
+
|
|
373
|
+
1. Read FEATURE-SPEC-TEMPLATE.md to identify the complete section structure
|
|
374
|
+
2. Count the number of functions from `.feature-analysis.md` input
|
|
375
|
+
3. For Section 2 Function Details, replicate the template's Function block structure for EACH function:
|
|
376
|
+
- Copy the EXACT template structure (all 4 sub-sections) from FEATURE-SPEC-TEMPLATE.md
|
|
377
|
+
- Create `### 2.1 Function: {function_name}` through `### 2.N Function: {function_name}`
|
|
378
|
+
- Each function block MUST contain these 4 sub-section headers (copied from template):
|
|
379
|
+
```
|
|
380
|
+
#### 2.N.1 Frontend Prototype
|
|
381
|
+
[TO BE FILLED]
|
|
382
|
+
|
|
383
|
+
#### 2.N.2 Interaction Flow
|
|
384
|
+
[TO BE FILLED]
|
|
385
|
+
|
|
386
|
+
#### 2.N.3 Backend Interface
|
|
387
|
+
[TO BE FILLED]
|
|
388
|
+
|
|
389
|
+
#### 2.N.4 Data Definition
|
|
390
|
+
[TO BE FILLED]
|
|
391
|
+
```
|
|
392
|
+
4. Verify skeleton: confirm ALL functions have ALL 4 sub-section headers before proceeding
|
|
393
|
+
|
|
394
|
+
> ⚠️ DO NOT start filling content until the complete skeleton is verified.
|
|
395
|
+
|
|
396
|
+
### Phase B: Content Filling (AFTER skeleton is complete)
|
|
397
|
+
|
|
398
|
+
Fill each `[TO BE FILLED]` placeholder with actual content:
|
|
399
|
+
- **Frontend Prototype** → ASCII wireframes (Pattern A/B/C/M-A/M-B/M-C) + Interface Element Description table
|
|
400
|
+
- **Interaction Flow** → Mermaid `sequenceDiagram` + Interaction Rules table
|
|
401
|
+
- **Backend Interface** → Interface List table + Mermaid `flowchart TD` for Processing Logic + Data Access table
|
|
402
|
+
- **Data Definition** → Fields table + Data Source table
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
367
406
|
### 5.1 Determine Output Path
|
|
368
407
|
|
|
369
408
|
**Single Feature Mode** (when `feature_id` provided):
|
|
@@ -399,6 +438,13 @@ Log: "✅ Checkpoint B (feature_design_review) passed and recorded"
|
|
|
399
438
|
|
|
400
439
|
## Step 6: Fill Sections Using search_replace
|
|
401
440
|
|
|
441
|
+
> **⚠️ CRITICAL: Section 2 Function Details Skeleton Verification**
|
|
442
|
+
>
|
|
443
|
+
> Before proceeding with content filling, verify the two-phase strategy was correctly applied:
|
|
444
|
+
> 1. Confirm ALL functions in Section 2 have complete 4 sub-section skeletons (Frontend Prototype, Interaction Flow, Backend Interface, Data Definition)
|
|
445
|
+
> 2. Confirm no `[TO BE FILLED]` placeholders remain unfilled after content filling
|
|
446
|
+
> 3. Confirm each function follows the exact template structure from FEATURE-SPEC-TEMPLATE.md
|
|
447
|
+
|
|
402
448
|
### Section Mapping Table
|
|
403
449
|
|
|
404
450
|
| Template Section | Data Source |
|
|
@@ -504,6 +550,7 @@ Log: "✅ Feature Spec generation completed. Checkpoint feature_spec_review pass
|
|
|
504
550
|
- [ ] Output path determined
|
|
505
551
|
- [ ] Template copied using `create_file`
|
|
506
552
|
- [ ] All sections filled using `search_replace`
|
|
553
|
+
- [ ] **[CRITICAL]** Section 2 Function Details skeleton verified (all functions have 4 sub-sections)
|
|
507
554
|
- [ ] **[CRITICAL]** Interaction Flow uses Mermaid sequenceDiagram (NOT ASCII)
|
|
508
555
|
- [ ] **[CRITICAL]** Processing Logic uses Mermaid flowchart TD (NOT ASCII)
|
|
509
556
|
- [ ] All Mermaid diagrams follow mermaid-rule.md compliance rules
|
|
@@ -126,6 +126,52 @@ Collect all business rules from feature details:
|
|
|
126
126
|
|
|
127
127
|
### Step 5: Generate Complete MODULE-OVERVIEW.md
|
|
128
128
|
|
|
129
|
+
> **⚠️ CRITICAL: Two-Phase Strategy (Skeleton-First, Content-After)**
|
|
130
|
+
>
|
|
131
|
+
> This step MUST be executed in two phases to ensure consistent document structure.
|
|
132
|
+
|
|
133
|
+
### Phase A: Skeleton Construction (BEFORE any content filling)
|
|
134
|
+
|
|
135
|
+
1. Read MODULE-OVERVIEW-TEMPLATE.md to identify the complete section structure
|
|
136
|
+
2. Count data items from extracted information:
|
|
137
|
+
- Section 3: Count unique **Entities** (deduplicated by entity name)
|
|
138
|
+
- Section 4: Count unique **Dependencies** (internal + external)
|
|
139
|
+
- Section 5: Count unique **Core Business Flows**
|
|
140
|
+
- Section 6: Count unique **Business Rules**
|
|
141
|
+
3. For each section with repeating data items, create complete skeleton structure:
|
|
142
|
+
- **Section 3 (Entities)**: For each entity, create table row with ALL column placeholders:
|
|
143
|
+
```
|
|
144
|
+
| [Entity Name] | [TO BE FILLED] | [TO BE FILLED] | [TO BE FILLED] |
|
|
145
|
+
```
|
|
146
|
+
- **Section 4 (Dependencies)**: For each dependency, create table row with ALL column placeholders:
|
|
147
|
+
```
|
|
148
|
+
| [Direction] | [Target] | [Content] | [Method] |
|
|
149
|
+
```
|
|
150
|
+
- **Section 5 (Core Business Flows)**: For each flow, create flow item with placeholders:
|
|
151
|
+
```
|
|
152
|
+
**[Flow Name]**: [TO BE FILLED]
|
|
153
|
+
```
|
|
154
|
+
- **Section 6 (Business Rules)**: For each rule, create table row with ALL column placeholders:
|
|
155
|
+
```
|
|
156
|
+
| [Rule ID] | [Rule Name] | [Description] | [Related Features] |
|
|
157
|
+
```
|
|
158
|
+
4. Verify skeleton: confirm ALL data items have ALL required column/field placeholders before proceeding
|
|
159
|
+
|
|
160
|
+
> ⚠️ DO NOT start filling content until the complete skeleton is verified.
|
|
161
|
+
|
|
162
|
+
### Phase B: Content Filling (AFTER skeleton is complete)
|
|
163
|
+
|
|
164
|
+
Fill each `[TO BE FILLED]` placeholder with actual content:
|
|
165
|
+
- Entity Description → Business description of the entity
|
|
166
|
+
- Entity Key Attributes → Field names with types (deduplicated from all features)
|
|
167
|
+
- Entity Business Rules → Constraints and validation rules aggregated from features
|
|
168
|
+
- Dependency Content → What is provided/consumed
|
|
169
|
+
- Dependency Method → How the dependency is realized (API call, import, injection)
|
|
170
|
+
- Core Business Flow → Step sequence with actors and outcomes
|
|
171
|
+
- Business Rule Description → Rule logic and enforcement point
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
129
175
|
**⚠️ CRITICAL CONSTRAINTS (apply to this step):**
|
|
130
176
|
> 1. **FORBIDDEN: `create_file` for overview document** — If skeleton exists, use `search_replace`; if not, copy template first then fill with `search_replace`
|
|
131
177
|
> 2. **FORBIDDEN: Full-file rewrite** — Always use targeted `search_replace` on specific sections
|
|
@@ -208,6 +208,48 @@ Create flow-module mapping matrix:
|
|
|
208
208
|
|
|
209
209
|
### Step 7: Generate system-overview.md
|
|
210
210
|
|
|
211
|
+
> **⚠️ CRITICAL: Two-Phase Strategy (Skeleton-First, Content-After)**
|
|
212
|
+
>
|
|
213
|
+
> This step MUST be executed in two phases to ensure consistent document structure.
|
|
214
|
+
|
|
215
|
+
### Phase A: Skeleton Construction (BEFORE any content filling)
|
|
216
|
+
|
|
217
|
+
1. Read SYSTEM-OVERVIEW-TEMPLATE.md to identify the complete section structure
|
|
218
|
+
2. Count aggregated data items from discovered modules:
|
|
219
|
+
- Section 2: Count unique **Modules** (including platform_type annotation for duplicates)
|
|
220
|
+
- Section 3: Count unique **End-to-End Business Flows**
|
|
221
|
+
- Section 4: Count unique **External Integrations**
|
|
222
|
+
3. For each section with repeating data items, create complete skeleton structure:
|
|
223
|
+
- **Section 2 (Module Topology)**: For each module, create index table row with ALL column placeholders:
|
|
224
|
+
```
|
|
225
|
+
| [Module Name] | [Domain] | [Purpose] | [Entities] | [APIs] | [Detail Doc] |
|
|
226
|
+
```
|
|
227
|
+
- **Section 3 (Business Flows)**: For each flow, create mapping matrix row:
|
|
228
|
+
```
|
|
229
|
+
| [Flow Name] | [Module 1] | [Module 2] | ... | [Module N] |
|
|
230
|
+
```
|
|
231
|
+
- **Section 4 (External Integrations)**: For each integration, create table row:
|
|
232
|
+
```
|
|
233
|
+
| [System Name] | [Integration Type] | [Data Exchanged] | [Protocol] |
|
|
234
|
+
```
|
|
235
|
+
4. Verify skeleton: confirm ALL data items have ALL required column placeholders before proceeding
|
|
236
|
+
|
|
237
|
+
> ⚠️ DO NOT start filling content until the complete skeleton is verified.
|
|
238
|
+
|
|
239
|
+
### Phase B: Content Filling (AFTER skeleton is complete)
|
|
240
|
+
|
|
241
|
+
Fill each `[TO BE FILLED]` placeholder with actual content:
|
|
242
|
+
- Module Domain → Business domain classification from module overview
|
|
243
|
+
- Module Purpose → Business purpose extracted from module overview
|
|
244
|
+
- Module Entities → Entity count and key entity names
|
|
245
|
+
- Module APIs → API/Interface count from module overview
|
|
246
|
+
- Module Detail Doc → Relative link to module-overview.md
|
|
247
|
+
- Flow Module Mapping → ✓ for involved modules, - for not involved
|
|
248
|
+
- Integration Data Exchanged → Data structures and formats exchanged
|
|
249
|
+
- Integration Protocol → HTTP/REST, gRPC, WebSocket, etc.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
211
253
|
**⚠️ CRITICAL CONSTRAINTS (apply to Step 7a and 7b):**
|
|
212
254
|
> 1. **FORBIDDEN: `create_file` for documents** — Document MUST be created by copying template (Step 7a) then filling with `search_replace` (Step 7b)
|
|
213
255
|
> 2. **FORBIDDEN: Full-file rewrite** — Always use targeted `search_replace` on specific sections
|
|
@@ -179,7 +179,56 @@ ELSE:
|
|
|
179
179
|
| One list page with filters | Entire reporting subsystem |
|
|
180
180
|
| One form with validation | Multi-step wizard with 10+ steps |
|
|
181
181
|
|
|
182
|
-
### 4.2
|
|
182
|
+
### 4.2 Section 3.5 Feature Details — Two-Phase Strategy
|
|
183
|
+
|
|
184
|
+
> **⚠️ CRITICAL: Two-Phase Strategy (Skeleton-First, Content-After)**
|
|
185
|
+
>
|
|
186
|
+
> This step MUST be executed in two phases to ensure consistent document structure.
|
|
187
|
+
|
|
188
|
+
#### Phase A: Skeleton Construction (BEFORE any content filling)
|
|
189
|
+
|
|
190
|
+
1. Read PRD-TEMPLATE.md to identify the complete Feature Details structure
|
|
191
|
+
2. Count the number of features from `{module_features}` input
|
|
192
|
+
3. For Section 3.5 Feature Details, replicate the template's Feature block structure for EACH feature:
|
|
193
|
+
- Copy the EXACT template structure (all 6 sub-sections) from PRD-TEMPLATE.md
|
|
194
|
+
- Create `#### Feature 1: {feature_name}` through `#### Feature N: {feature_name}`
|
|
195
|
+
- Each feature block MUST contain these 6 sub-section headers (copied from template):
|
|
196
|
+
```
|
|
197
|
+
**Requirement Description:**
|
|
198
|
+
[TO BE FILLED]
|
|
199
|
+
|
|
200
|
+
**Interaction Flow:**
|
|
201
|
+
[TO BE FILLED]
|
|
202
|
+
|
|
203
|
+
**Boundary Conditions:**
|
|
204
|
+
[TO BE FILLED]
|
|
205
|
+
|
|
206
|
+
**Exception Scenarios:**
|
|
207
|
+
[TO BE FILLED]
|
|
208
|
+
|
|
209
|
+
**Operation Flow Diagram:**
|
|
210
|
+
[TO BE FILLED]
|
|
211
|
+
|
|
212
|
+
**Operation Steps Detail:**
|
|
213
|
+
[TO BE FILLED]
|
|
214
|
+
```
|
|
215
|
+
4. Verify skeleton: confirm ALL features have ALL 6 sub-section headers before proceeding
|
|
216
|
+
|
|
217
|
+
> ⚠️ DO NOT start filling content until the complete skeleton is verified.
|
|
218
|
+
|
|
219
|
+
#### Phase B: Content Filling (AFTER skeleton is complete)
|
|
220
|
+
|
|
221
|
+
Fill each `[TO BE FILLED]` placeholder with actual content:
|
|
222
|
+
- **Requirement Description** → Business requirements in business language
|
|
223
|
+
- **Interaction Flow** → User interaction steps (numbered list)
|
|
224
|
+
- **Boundary Conditions** → Table with Condition Type | Scenario | Handling Rule
|
|
225
|
+
- **Exception Scenarios** → Bullet list of exception handling
|
|
226
|
+
- **Operation Flow Diagram** → Mermaid `graph LR` diagram showing operation flow
|
|
227
|
+
- **Operation Steps Detail** → Table: Step | Action | Expected Outcome | Exception Handling
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
### 4.3 Marking Existing vs New Features
|
|
183
232
|
|
|
184
233
|
| Marker | Meaning |
|
|
185
234
|
|--------|---------|
|
|
@@ -189,6 +238,13 @@ ELSE:
|
|
|
189
238
|
|
|
190
239
|
## Step 5: Task Granularity Check
|
|
191
240
|
|
|
241
|
+
> **⚠️ CRITICAL: Section 3.5 Feature Details Skeleton Verification**
|
|
242
|
+
>
|
|
243
|
+
> Before proceeding, verify the two-phase strategy was correctly applied:
|
|
244
|
+
> 1. Confirm ALL features in Section 3.5 have complete 6 sub-section skeletons
|
|
245
|
+
> 2. Confirm no `[TO BE FILLED]` placeholders remain unfilled
|
|
246
|
+
> 3. Confirm each feature has: Requirement Description, Interaction Flow, Boundary Conditions, Exception Scenarios, Operation Flow Diagram, Operation Steps Detail
|
|
247
|
+
|
|
192
248
|
**After PRD completion, verify user story granularity:**
|
|
193
249
|
|
|
194
250
|
**Appropriate Granularity (completable in one iteration):**
|