speccrew 0.7.60 → 0.7.62
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-system-designer.md +4 -1
- package/.speccrew/skills/speccrew-sd-backend/SKILL.md +3 -326
- package/.speccrew/skills/speccrew-sd-backend/workflow.agentflow.xml +330 -52
- package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +1 -290
- package/.speccrew/skills/speccrew-sd-frontend/workflow.agentflow.xml +235 -30
- package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +1 -288
- package/.speccrew/skills/speccrew-sd-mobile/workflow.agentflow.xml +324 -62
- package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +9 -1
- package/.speccrew/skills/speccrew-system-designer-orchestration/workflow.agentflow.xml +6 -1
- package/package.json +1 -1
|
@@ -133,6 +133,7 @@ This agent MUST execute tasks continuously without unnecessary interruptions.
|
|
|
133
133
|
| Phase 4 | WORKER-DISPATCH + HARD STOP | DESIGN-OVERVIEW.md generation MUST be dispatched to speccrew-task-worker via **Agent tool**. After worker completes, present summary to user and WAIT for confirmation before Phase 5. |
|
|
134
134
|
| Phase 5 | SKILL-ONLY | Platform design workers MUST use platform-specific design skills. Agent MUST NOT write design documents itself |
|
|
135
135
|
| Phase 5 | SKIP-CONFIRMATION | Batch dispatch MUST include `skip_confirmation: true` and `skip_index_generation: true` in worker context. Workers skip Checkpoint A and Step 5 in batch mode |
|
|
136
|
+
| Phase 5 | WORKER-SELF-UPDATE | Batch dispatch MUST include `dispatch_progress_file` and `update_progress_script` in worker context. Workers self-update task status in DISPATCH-PROGRESS.json upon completion (Step 7 of platform skills). Orchestrator's P5-B4-POST serves as fallback |
|
|
136
137
|
| Phase 5.5 | WORKER-DISPATCH-INDEX | After all workers complete, dispatch ONE worker per platform with `index_only: true` to generate INDEX.md. Orchestrator MUST NOT generate INDEX.md directly |
|
|
137
138
|
| Phase 6 | HARD STOP | User must confirm all designs before finalizing |
|
|
138
139
|
| ALL | ABORT ON FAILURE | If any skill invocation fails → STOP and report. Do NOT generate content manually as fallback |
|
|
@@ -776,6 +777,8 @@ Each worker receives:
|
|
|
776
777
|
- `techs_knowledge_paths`: Techs knowledge paths for this platform
|
|
777
778
|
- `framework_decisions`: Framework decisions from Phase 3
|
|
778
779
|
- `output_base_path`: Path to `03.system-design/` directory
|
|
780
|
+
- `dispatch_progress_file`: Path to DISPATCH-PROGRESS.json (enables Worker to self-update task status on completion)
|
|
781
|
+
- `update_progress_script`: Path to update-progress.js script
|
|
779
782
|
|
|
780
783
|
**Before dispatch**: Update each task status to `in_progress`:
|
|
781
784
|
```bash
|
|
@@ -796,7 +799,7 @@ All workers execute simultaneously to maximize efficiency.
|
|
|
796
799
|
> 1. **ONE Worker per Feature×Platform combination** — DO NOT group
|
|
797
800
|
> 2. Use **Agent tool** to create `speccrew-task-worker` for each task
|
|
798
801
|
> 3. Pass `skill_path`: `${ide_skills_dir}/${skill_name}/SKILL.md` (platform-specific skill)
|
|
799
|
-
> 4. Pass context: task_id, feature_id, feature_name, platform_id, feature_spec_path, api_contract_path, techs_knowledge_paths, framework_decisions, output_base_path, **skip_confirmation: true**, **skip_index_generation: true**
|
|
802
|
+
> 4. Pass context: task_id, feature_id, feature_name, platform_id, feature_spec_path, api_contract_path, techs_knowledge_paths, framework_decisions, output_base_path, **skip_confirmation: true**, **skip_index_generation: true**, **dispatch_progress_file**, **update_progress_script**
|
|
800
803
|
> 5. Dispatch ALL Workers in the same batch **SIMULTANEOUSLY** in a single turn
|
|
801
804
|
> 6. **Wait** for ALL Workers in the batch to complete before dispatching next batch
|
|
802
805
|
> 7. Update DISPATCH-PROGRESS.json after each Worker completes
|
|
@@ -6,335 +6,12 @@ tools: Read, Write, Glob, Grep
|
|
|
6
6
|
|
|
7
7
|
# Trigger Scenarios
|
|
8
8
|
|
|
9
|
+
- System Designer Agent dispatches this skill with platform context (platform_id, techs paths, Feature Spec paths)
|
|
9
10
|
- Feature Spec has been confirmed, user requests backend system design
|
|
10
|
-
-
|
|
11
|
-
- User asks "Design backend implementation" or "Create backend design for {platform}"
|
|
11
|
+
- User asks "Create backend design for this platform" or "Generate backend module design"
|
|
12
12
|
|
|
13
13
|
## AgentFlow Definition
|
|
14
14
|
|
|
15
15
|
<!-- @agentflow: workflow.agentflow.xml -->
|
|
16
16
|
|
|
17
|
-
> **REQUIRED**:
|
|
18
|
-
|
|
19
|
-
## Workflow
|
|
20
|
-
|
|
21
|
-
## Absolute Constraints
|
|
22
|
-
|
|
23
|
-
> **These rules apply to ALL steps. Violation = task failure.**
|
|
24
|
-
|
|
25
|
-
1. **FORBIDDEN: `create_file` for documents** — NEVER use `create_file` to write design documents or INDEX. Documents MUST be created by copying the template (Step 4.2a / Step 5.2a) then filling sections with `search_replace` (Step 4.2b / Step 5.2b). `create_file` produces truncated output on large files.
|
|
26
|
-
|
|
27
|
-
2. **FORBIDDEN: Full-file rewrite** — NEVER replace the entire document content in a single operation. Always use targeted `search_replace` on specific sections.
|
|
28
|
-
|
|
29
|
-
3. **MANDATORY: Template-first workflow** — Copy template MUST execute before fill sections. Skipping copy and writing content directly is FORBIDDEN.
|
|
30
|
-
|
|
31
|
-
## Step 1: Read Inputs
|
|
32
|
-
|
|
33
|
-
> **Conditional Execution**: If `index_only` = `true`, **skip Steps 1-4** and jump directly to Step 5 to generate INDEX.md.
|
|
34
|
-
|
|
35
|
-
**Input Parameters** (from agent context):
|
|
36
|
-
- `feature_id` (optional): Feature identifier, e.g., `F-CRM-01`. If provided, use new naming format.
|
|
37
|
-
- `feature_name`: Feature name, e.g., `customer-list`.
|
|
38
|
-
- `platform_id`: Target platform, e.g., `backend-spring`, `backend-nestjs`.
|
|
39
|
-
- `skip_confirmation` (optional, boolean): When `true`, skip Checkpoint A user confirmation (used in batch dispatch mode)
|
|
40
|
-
- `skip_index_generation` (optional, boolean): When `true`, skip Step 5 INDEX.md generation (INDEX.md will be generated by orchestrator after all workers complete)
|
|
41
|
-
- `index_only` (optional, boolean): When `true`, skip Steps 1-4 and ONLY execute Step 5 (INDEX.md generation). Used after all platform workers complete.
|
|
42
|
-
|
|
43
|
-
Read in order:
|
|
44
|
-
|
|
45
|
-
1. **Feature Spec document(s)**: `speccrew-workspace/iterations/{number}-{type}-{name}/02.feature-design/{feature-id}-{feature-name}-feature-spec.md`
|
|
46
|
-
2. **API Contract**: `speccrew-workspace/iterations/{number}-{type}-{name}/03.api-contract/{feature-id}-{feature-name}-api-contract.md`
|
|
47
|
-
3. **Backend techs knowledge** (paths from agent context):
|
|
48
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/tech-stack.md`
|
|
49
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/architecture.md`
|
|
50
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-design.md`
|
|
51
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-dev.md`
|
|
52
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-data.md` (critical for backend: ORM, data modeling, migration)
|
|
53
|
-
4. **Design template**: `speccrew-sd-backend/templates/SD-BACKEND-TEMPLATE.md`
|
|
54
|
-
5. **Index template**: `speccrew-sd-backend/templates/INDEX-TEMPLATE.md`
|
|
55
|
-
|
|
56
|
-
## Step 2: Analyze Existing Code Structure
|
|
57
|
-
|
|
58
|
-
Use Glob/Grep to understand current backend codebase:
|
|
59
|
-
|
|
60
|
-
| Analysis Target | Purpose |
|
|
61
|
-
|-----------------|---------|
|
|
62
|
-
| Controller/Router layer structure | Understand routing patterns and naming conventions |
|
|
63
|
-
| Service layer organization | Identify service boundaries and reuse opportunities |
|
|
64
|
-
| Repository/DAO layer patterns | Review data access patterns |
|
|
65
|
-
| Entity/Model definitions | Understand existing data models |
|
|
66
|
-
| Middleware stack | Identify cross-cutting concerns |
|
|
67
|
-
| Exception handling patterns | Review error handling approach |
|
|
68
|
-
| Database migration structure | Understand migration naming and structure |
|
|
69
|
-
| Naming conventions | Ensure consistency with existing code |
|
|
70
|
-
|
|
71
|
-
## Step 3: Extract Functions from Feature Spec
|
|
72
|
-
|
|
73
|
-
Parse Feature Spec to identify all backend-relevant functions.
|
|
74
|
-
|
|
75
|
-
> **Note**: With the new fine-grained Feature Spec format, each Feature Spec typically contains **3-8 functions** (previously 10-20). The extraction logic remains the same, but the scope is more focused.
|
|
76
|
-
|
|
77
|
-
For each function, extract:
|
|
78
|
-
|
|
79
|
-
| Aspect | Content |
|
|
80
|
-
|--------|---------|
|
|
81
|
-
| **API Interfaces** | From Feature Spec Section 2.N backend part |
|
|
82
|
-
| **Data Access Requirements** | What data needs to be read/written |
|
|
83
|
-
| **Business Logic Flow** | Core processing steps |
|
|
84
|
-
| **Cross-Module Dependencies** | Dependencies on other modules or services |
|
|
85
|
-
|
|
86
|
-
Cross-reference with API Contract for exact endpoint specifications.
|
|
87
|
-
|
|
88
|
-
Mark each function as:
|
|
89
|
-
|
|
90
|
-
| Marker | Meaning |
|
|
91
|
-
|--------|---------|
|
|
92
|
-
| `[EXISTING]` | Reuse current implementation, no changes needed |
|
|
93
|
-
| `[MODIFIED]` | Modify existing implementation |
|
|
94
|
-
| `[NEW]` | Create brand new implementation |
|
|
95
|
-
|
|
96
|
-
**Checkpoint A**:
|
|
97
|
-
- If `skip_confirmation` = `true`: Log the function list with markers and **proceed automatically** without waiting for user confirmation.
|
|
98
|
-
- If `skip_confirmation` is not set or `false`: Present function list with markers to user and **wait for explicit confirmation** before proceeding.
|
|
99
|
-
|
|
100
|
-
> ⚠️ **FORBIDDEN**: Worker MUST NOT self-decide to skip confirmation. Only the `skip_confirmation` parameter from dispatch context controls this behavior.
|
|
101
|
-
|
|
102
|
-
## Step 4: Generate Module Design Documents
|
|
103
|
-
|
|
104
|
-
For each function (or logical group = one controller/module):
|
|
105
|
-
|
|
106
|
-
### 4.1 Read Template
|
|
107
|
-
|
|
108
|
-
Read the SD-BACKEND-TEMPLATE.md to understand document structure.
|
|
109
|
-
|
|
110
|
-
### 4.2a Copy Template to Document Path
|
|
111
|
-
|
|
112
|
-
1. **Read the design template**: `templates/SD-BACKEND-TEMPLATE.md`
|
|
113
|
-
2. **Replace top-level placeholders** with known variables:
|
|
114
|
-
- Module name, feature name, platform ID, etc.
|
|
115
|
-
3. **Create the document file** using `create_file`:
|
|
116
|
-
- **Target path pattern**:
|
|
117
|
-
- With `feature_id`: `speccrew-workspace/iterations/{number}-{type}-{name}/03.system-design/{platform_id}/{feature-id}-{feature-name}-design.md`
|
|
118
|
-
- Example: `03.system-design/backend-spring/F-CRM-01-customer-list-design.md`
|
|
119
|
-
- Without `feature_id` (backward compatibility): `speccrew-workspace/iterations/{number}-{type}-{name}/03.system-design/{platform_id}/{module}-design.md`
|
|
120
|
-
- Content: Template with top-level placeholders replaced
|
|
121
|
-
4. **Verify**: Document should have complete section structure ready for filling
|
|
122
|
-
|
|
123
|
-
### 4.2b Fill Each Section Using search_replace
|
|
124
|
-
|
|
125
|
-
Fill each section with technology-specific implementation details.
|
|
126
|
-
|
|
127
|
-
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
128
|
-
> - **FORBIDDEN: `create_file` to rewrite the entire document** — it destroys template structure
|
|
129
|
-
> - **MUST use `search_replace` to fill each section individually**
|
|
130
|
-
> - **All section titles and numbering MUST be preserved**
|
|
131
|
-
> - If a section has no applicable content, keep the section title and replace placeholder with "N/A"
|
|
132
|
-
|
|
133
|
-
| Section | Content Source |
|
|
134
|
-
|---------|----------------|
|
|
135
|
-
| **Module Structure** | Use actual framework layering from techs knowledge |
|
|
136
|
-
| **Interface Pseudo-code** | Use actual framework decorators/annotations |
|
|
137
|
-
| **Database Design** | Use actual ORM entity definitions from conventions-data.md |
|
|
138
|
-
| **Transaction Boundaries** | Use actual framework transaction mechanism |
|
|
139
|
-
| **Exception Handling** | Use actual exception classes and error codes |
|
|
140
|
-
|
|
141
|
-
**How to Reference Techs Knowledge for Pseudo-code:**
|
|
142
|
-
|
|
143
|
-
1. **Read relevant techs knowledge file for the platform**:
|
|
144
|
-
- Core syntax: `tech-stack.md` for framework version and key libraries
|
|
145
|
-
- ORM patterns: `conventions-data.md` for entity definitions and transaction management
|
|
146
|
-
- Design patterns: `conventions-design.md` for layer structure and naming conventions
|
|
147
|
-
2. **Extract framework-specific syntax patterns**:
|
|
148
|
-
- Controller annotations/decorators
|
|
149
|
-
- Service injection patterns
|
|
150
|
-
- Repository/DAO method signatures
|
|
151
|
-
- Transaction management annotations
|
|
152
|
-
3. **Apply patterns in pseudo-code**:
|
|
153
|
-
- Use exact annotation/decorator syntax from techs knowledge
|
|
154
|
-
- Follow naming conventions from conventions-design.md
|
|
155
|
-
- Apply ORM patterns from conventions-data.md
|
|
156
|
-
|
|
157
|
-
**Pseudo-code Requirements:**
|
|
158
|
-
- MUST use actual framework syntax from techs knowledge
|
|
159
|
-
- Spring Boot: `@RestController`, `@PostMapping`, `@Valid`, `@Transactional`, etc.
|
|
160
|
-
- NestJS: `@Controller`, `@Post`, `@Body`, `@UseGuards`, etc.
|
|
161
|
-
- Go: `gin.Context`, `echo.Context`, GORM annotations, etc.
|
|
162
|
-
|
|
163
|
-
### 4.3 Verify Output
|
|
164
|
-
|
|
165
|
-
Verify the completed design document:
|
|
166
|
-
- All sections filled with actual content (no remaining placeholders)
|
|
167
|
-
- Mermaid diagrams render correctly
|
|
168
|
-
- Pseudo-code uses actual framework syntax from techs knowledge
|
|
169
|
-
|
|
170
|
-
## Step 5: Generate Platform INDEX.md
|
|
171
|
-
|
|
172
|
-
> **Conditional Execution**:
|
|
173
|
-
> - If `skip_index_generation` = `true`, **skip this entire Step 5**.
|
|
174
|
-
> - If `index_only` = `true`, this step is the ONLY step to execute (Steps 1-4 are skipped).
|
|
175
|
-
|
|
176
|
-
After all module designs are complete:
|
|
177
|
-
|
|
178
|
-
### 5.1 Read Index Template
|
|
179
|
-
|
|
180
|
-
Read INDEX-TEMPLATE.md to understand platform-level document structure.
|
|
181
|
-
|
|
182
|
-
### 5.2a Copy Index Template to Document Path
|
|
183
|
-
|
|
184
|
-
1. **Read the index template**: `templates/INDEX-TEMPLATE.md`
|
|
185
|
-
2. **Replace top-level placeholders** (platform name, feature name, etc.)
|
|
186
|
-
3. **Create the document file** using `create_file`:
|
|
187
|
-
- Target path: `speccrew-workspace/iterations/{number}-{type}-{name}/03.system-design/{platform_id}/INDEX.md`
|
|
188
|
-
- Content: Template with top-level placeholders replaced
|
|
189
|
-
|
|
190
|
-
### 5.2b Fill Index Sections Using search_replace
|
|
191
|
-
|
|
192
|
-
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
193
|
-
> - **FORBIDDEN: `create_file` to rewrite the entire document** — it destroys template structure
|
|
194
|
-
> - **MUST use `search_replace` to fill each section individually**
|
|
195
|
-
> - **All section titles and numbering MUST be preserved**
|
|
196
|
-
|
|
197
|
-
| Section | Content |
|
|
198
|
-
|---------|---------|
|
|
199
|
-
| **Tech Stack Summary** | Extract from techs knowledge |
|
|
200
|
-
| **Shared Design Decisions** | Middleware stack, data source config, base service classes, common utilities |
|
|
201
|
-
| **Module List Table** | Links to each module design document. Use `feature_id` as identifier if available (e.g., `F-CRM-01`), otherwise use module name. Example: `\| F-CRM-01 \| Customer List \| F-CRM-01-customer-list-design.md \| NEW \|` |
|
|
202
|
-
| **Cross-Module Interaction Notes** | Shared services, event-driven patterns, dependencies |
|
|
203
|
-
| **Database Schema Overview** | New tables, modified tables, entity relationships |
|
|
204
|
-
|
|
205
|
-
### 5.3 Verify Output
|
|
206
|
-
|
|
207
|
-
Verify the completed INDEX.md:
|
|
208
|
-
- All sections filled with actual content (no remaining placeholders)
|
|
209
|
-
- All module design documents are correctly linked
|
|
210
|
-
- Database schema overview is complete
|
|
211
|
-
|
|
212
|
-
## Step 6: Present Summary
|
|
213
|
-
|
|
214
|
-
Present to user:
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
Backend System Design Summary for: {feature-name}
|
|
218
|
-
Platform: {platform_id}
|
|
219
|
-
|
|
220
|
-
Module Designs: {count}
|
|
221
|
-
├── [NEW] {count} modules
|
|
222
|
-
├── [MODIFIED] {count} modules
|
|
223
|
-
└── [EXISTING] {count} modules (no design needed)
|
|
224
|
-
|
|
225
|
-
Database Changes:
|
|
226
|
-
├── New Tables: {count}
|
|
227
|
-
├── Modified Tables: {count}
|
|
228
|
-
└── Migration Files: {count}
|
|
229
|
-
|
|
230
|
-
Key Design Decisions:
|
|
231
|
-
- {decision 1}
|
|
232
|
-
- {decision 2}
|
|
233
|
-
- {decision 3}
|
|
234
|
-
|
|
235
|
-
Files Generated:
|
|
236
|
-
- {list all file paths}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
## Step 7: Task Completion Report
|
|
240
|
-
|
|
241
|
-
After completing all steps, output a structured completion report for the System Designer Agent to parse and update DISPATCH-PROGRESS.json:
|
|
242
|
-
|
|
243
|
-
### On Success
|
|
244
|
-
|
|
245
|
-
```
|
|
246
|
-
## Task Completion Report
|
|
247
|
-
- **Status**: SUCCESS
|
|
248
|
-
- **Task ID**: {task_id from context}
|
|
249
|
-
- **Platform**: {platform_id}
|
|
250
|
-
- **Feature ID**: {feature_id}
|
|
251
|
-
- **Feature**: {feature_name}
|
|
252
|
-
- **Output Files**:
|
|
253
|
-
- speccrew-workspace/iterations/{iter}/03.system-design/{platform_id}/INDEX.md
|
|
254
|
-
- speccrew-workspace/iterations/{iter}/03.system-design/{platform_id}/{feature-id}-{feature-name}-design.md (or {module}-design.md if no feature_id)
|
|
255
|
-
- **Summary**: Backend system design completed for {feature_name} on {platform_id} with {count} module designs
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### On Failure
|
|
259
|
-
|
|
260
|
-
```
|
|
261
|
-
## Task Completion Report
|
|
262
|
-
- **Status**: FAILED
|
|
263
|
-
- **Task ID**: {task_id from context}
|
|
264
|
-
- **Platform**: {platform_id}
|
|
265
|
-
- **Feature ID**: {feature_id}
|
|
266
|
-
- **Feature**: {feature_name}
|
|
267
|
-
- **Output Files**: []
|
|
268
|
-
- **Error**: {description of what went wrong}
|
|
269
|
-
- **Error Category**: DEPENDENCY_MISSING | VALIDATION_ERROR | BLOCKED
|
|
270
|
-
- **Recovery Hint**: {suggestion for how to resolve or retry}
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
**Error Categories:**
|
|
274
|
-
- `DEPENDENCY_MISSING`: Required input file or knowledge document not found
|
|
275
|
-
- `VALIDATION_ERROR`: Input validation failed (e.g., invalid Feature Spec format)
|
|
276
|
-
- `BLOCKED`: Blocked by external dependency or prerequisite not met
|
|
277
|
-
|
|
278
|
-
## OUTPUT EFFICIENCY RULES
|
|
279
|
-
|
|
280
|
-
When executing this skill:
|
|
281
|
-
|
|
282
|
-
1. **Direct-to-File Output**: All design content (architecture diagrams, API mappings, component specifications, data models) MUST be written directly to the output file
|
|
283
|
-
2. **Minimal Conversation Output**: Only output:
|
|
284
|
-
- Block execution announcements (1 line each): `"[Block XX] Designing..."`
|
|
285
|
-
- Error messages requiring attention
|
|
286
|
-
- Task Completion Report (final summary)
|
|
287
|
-
3. **FORBIDDEN in conversation**:
|
|
288
|
-
- ❌ Full document sections or drafts
|
|
289
|
-
- ❌ Mermaid diagrams displayed in chat
|
|
290
|
-
- ❌ API endpoint listings
|
|
291
|
-
- ❌ Data model tables
|
|
292
|
-
- ❌ Architecture descriptions longer than 2 lines
|
|
293
|
-
4. **Rationale**: Workers run in batch mode. Displaying design content in conversation wastes context window and provides no value since content goes to file anyway.
|
|
294
|
-
|
|
295
|
-
# Key Rules
|
|
296
|
-
|
|
297
|
-
| Rule | Description |
|
|
298
|
-
|------|-------------|
|
|
299
|
-
| **Actual Framework Syntax** | All pseudo-code MUST use actual framework/library syntax from techs knowledge |
|
|
300
|
-
| **API Contract is READ-ONLY** | Do NOT modify API Contract, stop and report if issues found |
|
|
301
|
-
| **Migration Strategy Required** | Database design must include migration strategy, not just final schema |
|
|
302
|
-
| **Explicit Transaction Boundaries** | Transaction boundaries must be explicitly marked |
|
|
303
|
-
| **Exception Code Mapping** | Exception handling must map to API Contract error codes |
|
|
304
|
-
| **Follow Techs Conventions** | Naming, directory structure, patterns from techs knowledge |
|
|
305
|
-
| **FORBIDDEN: TODO/FIXME Placeholders** | Design documents MUST contain complete implementation logic. Do NOT use TODO, FIXME, HACK, or any placeholder comments. Every method, validation rule, and business logic MUST be fully specified with actual pseudocode. |
|
|
306
|
-
| **API Route Consistency** | All API routes in the design document MUST exactly match the routes defined in the API Contract document. Before writing any route, READ the API Contract and copy routes verbatim. Do NOT invent or modify routes. |
|
|
307
|
-
| **Cross-Feature Dependency Marking** | When referencing functionality from another Feature (e.g., conflict detection from F-APPT-002), MUST explicitly mark it as `[DEPENDENCY: F-XXX-NNN]` and define a degradation strategy for when that Feature is not yet implemented. |
|
|
308
|
-
|
|
309
|
-
# Mermaid Diagram Requirements
|
|
310
|
-
|
|
311
|
-
When generating Mermaid diagrams, follow compatibility guidelines:
|
|
312
|
-
|
|
313
|
-
- Use only basic node definitions: `A[text content]`
|
|
314
|
-
- No HTML tags (e.g., `<br/>`)
|
|
315
|
-
- No nested subgraphs
|
|
316
|
-
- No `direction` keyword
|
|
317
|
-
- No `style` definitions
|
|
318
|
-
- No special characters in node text
|
|
319
|
-
- Use standard `graph TB/LR` or `flowchart TD/LR` or `erDiagram` syntax only
|
|
320
|
-
|
|
321
|
-
# Checklist
|
|
322
|
-
|
|
323
|
-
- [ ] All techs knowledge documents loaded before design
|
|
324
|
-
- [ ] Feature Spec and API Contract read and understood
|
|
325
|
-
- [ ] Existing codebase structure analyzed (Glob/Grep)
|
|
326
|
-
- [ ] Function extraction completed with [EXISTING]/[MODIFIED]/[NEW] markers
|
|
327
|
-
- [ ] Checkpoint A passed: function list confirmed (or skipped via skip_confirmation)
|
|
328
|
-
- [ ] Every API in API Contract has a corresponding implementation design
|
|
329
|
-
- [ ] Database entities cover all data requirements from Feature Spec
|
|
330
|
-
- [ ] Transaction boundaries defined for multi-step operations
|
|
331
|
-
- [ ] Exception types map to API Contract error codes
|
|
332
|
-
- [ ] Pseudo-code uses actual framework syntax (not generic)
|
|
333
|
-
- [ ] conventions-data.md ORM patterns followed
|
|
334
|
-
- [ ] Migration requirements documented
|
|
335
|
-
- [ ] INDEX.md generated with complete module list
|
|
336
|
-
- [ ] All files written to correct paths under 03.system-design/{platform_id}/
|
|
337
|
-
- [ ] All Mermaid diagrams follow compatibility guidelines
|
|
338
|
-
- [ ] **No TODO/FIXME placeholders** — all methods have complete pseudocode implementation
|
|
339
|
-
- [ ] **API routes match API Contract exactly** — verified route-by-route
|
|
340
|
-
- [ ] **Cross-Feature dependencies explicitly marked** — all `[DEPENDENCY: F-XXX-NNN]` tags present with degradation strategy
|
|
17
|
+
> **REQUIRED**: Read and execute the XML workflow above. The XML contains the complete workflow definition including all steps, rules, conditions, and checklist.
|