speccrew 0.7.74 → 0.7.76
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-feature-designer.md +4 -647
- package/.speccrew/agents/speccrew-product-manager.md +5 -480
- package/.speccrew/agents/speccrew-system-deployer.md +6 -457
- package/.speccrew/agents/speccrew-system-developer.md +9 -913
- package/.speccrew/agents/speccrew-test-manager.md +403 -1112
- package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +6 -149
- package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -59
- package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -64
- package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -75
- package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -70
- package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -381
- package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -369
- package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -362
- package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -304
- package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -294
- package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -204
- package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -173
- package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -169
- package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -173
- package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -251
- package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -254
- package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -748
- package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +6 -105
- package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +6 -33
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +3 -138
- package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +3 -283
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +3 -1014
- package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +4 -343
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +4 -235
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +6 -72
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +3 -534
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +3 -432
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +4 -391
- package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -98
- package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -92
- package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +3 -181
- package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +3 -148
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +3 -330
- package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +6 -159
- package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +3 -142
- package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +3 -568
- package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +3 -180
- package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +3 -154
- package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +3 -176
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -135
- package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +4 -88
- package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +4 -178
- package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -102
- package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +5 -78
- package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +5 -85
- package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +4 -100
- package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +14 -106
- package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +7 -84
- package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +6 -66
- package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +4 -96
- package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +4 -131
- package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +4 -76
- package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +3 -281
- package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +6 -165
- package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +2 -35
- package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +6 -98
- package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +6 -94
- package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +6 -79
- package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -58
- package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -61
- package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +6 -94
- package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -102
- package/.speccrew/skills/speccrew-test-runner/SKILL.md +3 -121
- package/package.json +1 -1
|
@@ -10,388 +10,9 @@ tools: Bash, Edit, Write, Glob, Grep, Read
|
|
|
10
10
|
- User asks "Start backend development", "Implement backend code"
|
|
11
11
|
- System Developer Agent receives task to implement backend for a specific platform
|
|
12
12
|
|
|
13
|
-
# Input Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Required | Type | Description |
|
|
16
|
-
|-----------|----------|------|-------------|
|
|
17
|
-
| `design_doc_path` | Yes | string | Path to a single module design document (passed by upstream system-developer agent) |
|
|
18
|
-
| `platform_id` | Yes | string | Platform identifier (e.g., backend-spring, backend-nodejs) |
|
|
19
|
-
| `task_id` | Yes | string | Task identifier from dispatch context |
|
|
20
|
-
| `iteration_id` | No | string | Current iteration identifier for progress messages |
|
|
21
|
-
| `output_dir` | No | string | Output directory for task record (default: auto-derived from iteration path) |
|
|
22
|
-
|
|
23
13
|
## AgentFlow Definition
|
|
24
14
|
|
|
25
15
|
<!-- @agentflow: SKILL.xml -->
|
|
26
16
|
|
|
27
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Absolute Constraints
|
|
34
|
-
|
|
35
|
-
> **These rules apply to Task Record document generation. Violation = task failure.**
|
|
36
|
-
|
|
37
|
-
1. **FORBIDDEN: `create_file` for Task Record** — NEVER use `create_file` to write the Task Record document. It MUST be created by copying the template then filling sections with `search_replace`. `create_file` produces truncated output on large files.
|
|
38
|
-
|
|
39
|
-
2. **FORBIDDEN: Full-file rewrite** — NEVER replace the entire Task Record content in a single operation. Always use targeted `search_replace` on specific sections.
|
|
40
|
-
|
|
41
|
-
3. **MANDATORY: Template-first workflow** — Copy template MUST execute before fill sections. Skipping copy and writing content directly is FORBIDDEN.
|
|
42
|
-
|
|
43
|
-
4. **CLARIFICATION: Source code is NOT template-filled** — Actual source code files are written directly based on design blueprints. The template-fill workflow applies ONLY to the Task Record document.
|
|
44
|
-
|
|
45
|
-
## Step 1: Read Design Documents
|
|
46
|
-
|
|
47
|
-
Input: `design_doc_path` — Path to a single module design document (passed by upstream system-developer agent).
|
|
48
|
-
|
|
49
|
-
Read in order:
|
|
50
|
-
|
|
51
|
-
1. **Module Design Document**: The `design_doc_path` provided (single module's design)
|
|
52
|
-
2. **Platform INDEX**: `speccrew-workspace/iterations/{number}-{type}-{name}/03.system-design/{platform_id}/INDEX.md`
|
|
53
|
-
3. **API Contract**: `speccrew-workspace/iterations/{number}-{type}-{name}/03.api-contract/[feature-name]-api-contract.md`
|
|
54
|
-
4. **Techs Knowledge** (from agent context):
|
|
55
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/tech-stack.md`
|
|
56
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/architecture.md`
|
|
57
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-design.md`
|
|
58
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-dev.md`
|
|
59
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-data.md` (critical: ORM, data modeling, migration)
|
|
60
|
-
5. **Task Record Template**: `speccrew-dev-backend/templates/TASK-RECORD-TEMPLATE.md`
|
|
61
|
-
|
|
62
|
-
## Step 2: Create Task Record File
|
|
63
|
-
|
|
64
|
-
Before coding, create the task record using template-fill workflow:
|
|
65
|
-
|
|
66
|
-
### 2a Copy Template to Task Record Path
|
|
67
|
-
|
|
68
|
-
1. **Read the template file**: `templates/TASK-RECORD-TEMPLATE.md`
|
|
69
|
-
2. **Replace top-level placeholders** (module name, feature name, platform ID, iteration info)
|
|
70
|
-
3. **Create the document** using `create_file`:
|
|
71
|
-
- Target path: `speccrew-workspace/iterations/{number}-{type}-{name}/04.development/{platform_id}/[module]-task.md`
|
|
72
|
-
- Content: Template with top-level placeholders replaced
|
|
73
|
-
4. **Verify**: Document has complete section structure ready for filling
|
|
74
|
-
|
|
75
|
-
### 2b Fill Task Record Sections Using search_replace
|
|
76
|
-
|
|
77
|
-
Fill each section with design metadata extracted from input documents.
|
|
78
|
-
|
|
79
|
-
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
80
|
-
> - **FORBIDDEN: `create_file` to rewrite the entire document**
|
|
81
|
-
> - **MUST use `search_replace` to fill each section individually**
|
|
82
|
-
> - **All section titles MUST be preserved**
|
|
83
|
-
|
|
84
|
-
## Step 3: Extract Task List
|
|
85
|
-
|
|
86
|
-
Parse design documents to extract all implementation tasks.
|
|
87
|
-
|
|
88
|
-
### Backend Task Types
|
|
89
|
-
|
|
90
|
-
| Category | Description | Example Files |
|
|
91
|
-
|----------|-------------|---------------|
|
|
92
|
-
| Entity/Model | Data model definitions | `entity/`, `model/`, `domain/` |
|
|
93
|
-
| Repository/DAO | Data access layer | `repository/`, `dao/`, `mapper/` |
|
|
94
|
-
| Service | Business logic layer | `service/`, `manager/`, `handler/` |
|
|
95
|
-
| Controller/API | REST endpoints | `controller/`, `router/`, `api/` |
|
|
96
|
-
| Database Migration | Schema changes | `db/migration/`, `migrations/` |
|
|
97
|
-
| API Configuration | Route/middleware config | `config/`, `routes/` |
|
|
98
|
-
| Middleware/Interceptor | Cross-cutting concerns | `middleware/`, `interceptor/` |
|
|
99
|
-
|
|
100
|
-
### Task Checklist Table Format
|
|
101
|
-
|
|
102
|
-
| Task ID | Module | Description | Target Files | API Endpoint | DB Migration | Dependencies | Status |
|
|
103
|
-
|---------|--------|-------------|--------------|--------------|--------------|--------------|--------|
|
|
104
|
-
| BE-001 | User | Define User entity | `entity/User.java` | - | V001__create_user.sql | - | ⏳ Pending |
|
|
105
|
-
| BE-002 | User | Create UserRepository | `repository/UserRepository.java` | - | - | BE-001 | ⏳ Pending |
|
|
106
|
-
| BE-003 | Auth | Login endpoint | `controller/AuthController.java` | POST /auth/login | - | BE-002 | ⏳ Pending |
|
|
107
|
-
|
|
108
|
-
> Status: ⏳ Pending / 🔄 In Progress / ✅ Complete / 🚫 Blocked
|
|
109
|
-
|
|
110
|
-
**Proceed directly to implementation — no user confirmation required.**
|
|
111
|
-
|
|
112
|
-
## Step 4: Task-by-Task Implementation
|
|
113
|
-
|
|
114
|
-
Execute tasks in dependency order.
|
|
115
|
-
|
|
116
|
-
### Implementation Principles
|
|
117
|
-
|
|
118
|
-
- Follow design document file paths, naming, and structure exactly
|
|
119
|
-
- Use actual framework syntax from techs knowledge (not generic pseudo-code)
|
|
120
|
-
- Follow conventions-data.md for ORM patterns and migration naming
|
|
121
|
-
- Reuse existing code where possible (use Grep to search)
|
|
122
|
-
- Directly write code based on design blueprint (no template filling for source code)
|
|
123
|
-
|
|
124
|
-
### Per-Task Workflow
|
|
125
|
-
|
|
126
|
-
1. **Mark task as 🔄 In Progress**
|
|
127
|
-
2. **Implement the code** following design specification
|
|
128
|
-
3. **Run local checks** (Step 6)
|
|
129
|
-
4. **Update status to ✅ Complete** if checks pass
|
|
130
|
-
5. **Record deviations** if implementation differs from design
|
|
131
|
-
|
|
132
|
-
### When Design Issues Found
|
|
133
|
-
|
|
134
|
-
- Stop current task
|
|
135
|
-
- Describe issue clearly to user
|
|
136
|
-
- Wait for user decision: return to design phase OR proceed with documented deviation
|
|
137
|
-
|
|
138
|
-
## Step 5: Database Migration Verification
|
|
139
|
-
|
|
140
|
-
> This step applies ONLY when the task checklist contains Database Migration tasks.
|
|
141
|
-
> If no migration tasks exist, skip to Step 6.
|
|
142
|
-
|
|
143
|
-
### 5.1 Verify Migration Scripts
|
|
144
|
-
|
|
145
|
-
After all migration-related tasks in Step 4 are complete:
|
|
146
|
-
|
|
147
|
-
1. **Check script existence**: Verify all migration scripts listed in the design document's "Migration Requirements" table have been created at the specified paths
|
|
148
|
-
2. **Check naming convention**: Verify script names follow the pattern defined in conventions-data.md Migration Configuration
|
|
149
|
-
3. **Check script content**: Each script must contain valid SQL/DDL (or tool-specific syntax) that matches the Table Schema defined in the design document
|
|
150
|
-
|
|
151
|
-
### 5.2 Verify Migration Order
|
|
152
|
-
|
|
153
|
-
1. **Dependency check**: Migration scripts with table dependencies must be ordered correctly (e.g., referenced table created before foreign key table)
|
|
154
|
-
2. **Version sequence**: Migration version numbers must be sequential with no gaps
|
|
155
|
-
|
|
156
|
-
### 5.3 Report Migration Summary
|
|
157
|
-
|
|
158
|
-
Add to the task record:
|
|
159
|
-
|
|
160
|
-
| Script Name | Path | Type | Tables Affected | Status |
|
|
161
|
-
|-------------|------|------|----------------|--------|
|
|
162
|
-
| {name} | {path} | CREATE/ALTER | {tables} | Created/Verified |
|
|
163
|
-
|
|
164
|
-
## Step 6: Local Checks
|
|
165
|
-
|
|
166
|
-
After completing each task, run quality checks:
|
|
167
|
-
|
|
168
|
-
### Check Matrix
|
|
169
|
-
|
|
170
|
-
| Check | Command Example | When Required |
|
|
171
|
-
|-------|-----------------|---------------|
|
|
172
|
-
| **Compile** | `mvn compile` / `gradle build` / `go build` | After code changes |
|
|
173
|
-
| **Lint** | `mvn checkstyle:check` / `golangci-lint run` | After code changes |
|
|
174
|
-
| **Unit Tests** | `mvn test -Dtest=XxxTest` / `go test ./...` | When testable logic added |
|
|
175
|
-
| **API Smoke Test** | Start service, `curl http://localhost:8080/health` | After controller changes |
|
|
176
|
-
|
|
177
|
-
### Check Failure Handling
|
|
178
|
-
|
|
179
|
-
- Fix issues before marking task complete
|
|
180
|
-
- For complex issues, record in task file "Pending Issues" section
|
|
181
|
-
- Do NOT proceed to next task until current task passes checks
|
|
182
|
-
|
|
183
|
-
### Environment Diagnostics
|
|
184
|
-
|
|
185
|
-
When task is blocked (compile fail, test fail, env issue):
|
|
186
|
-
|
|
187
|
-
1. **Check logs**: `docker logs [container] --tail 100` or process output
|
|
188
|
-
2. **Verify services**: `docker ps` / `docker compose ps`
|
|
189
|
-
3. **Check environment**: `.env` variables, database connectivity
|
|
190
|
-
4. **Record diagnosis**: symptom → investigation steps → root cause → resolution
|
|
191
|
-
|
|
192
|
-
## Step 7: Record Deviations
|
|
193
|
-
|
|
194
|
-
If implementation differs from design, record in task file "Deviation Log" section:
|
|
195
|
-
|
|
196
|
-
```markdown
|
|
197
|
-
### Deviation Log
|
|
198
|
-
|
|
199
|
-
| Task ID | Design Spec | Actual Implementation | Reason |
|
|
200
|
-
|---------|-------------|----------------------|--------|
|
|
201
|
-
| BE-003 | Use JWT library A | Used JWT library B | Library A has security vulnerability |
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Step 8: Handle Technical Debt
|
|
205
|
-
|
|
206
|
-
If accepting suboptimal solutions, write to tech-debt directory:
|
|
207
|
-
|
|
208
|
-
**Path**: `speccrew-workspace/iterations/{number}-{type}-{name}/tech-debt/[module]-tech-debt.md`
|
|
209
|
-
|
|
210
|
-
Use the unified tech_debt document template defined in the workspace document templates configuration.
|
|
211
|
-
|
|
212
|
-
#### Helper Scripts Output
|
|
213
|
-
|
|
214
|
-
All temporary/helper scripts (validation, data init, environment setup, etc.) MUST be saved to:
|
|
215
|
-
```
|
|
216
|
-
iterations/{iter}/04.development/{platform_id}/scripts/
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
**Exception**: Application source scripts (migrations, seeds) go to the project source directory per conventions-data.md.
|
|
220
|
-
|
|
221
|
-
Include all generated scripts in the Task Record "Generated Scripts" section with path and purpose.
|
|
222
|
-
|
|
223
|
-
## Step 9: Completion Notification
|
|
224
|
-
|
|
225
|
-
When all tasks complete, update task record and notify user:
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
Backend Development Complete: {module-name}
|
|
229
|
-
Platform: {platform_id}
|
|
230
|
-
|
|
231
|
-
Tasks Completed: {X}
|
|
232
|
-
├── ✅ Complete: {count}
|
|
233
|
-
├── 🚫 Blocked: {count}
|
|
234
|
-
└── Deviations: {count}
|
|
235
|
-
|
|
236
|
-
API Endpoints:
|
|
237
|
-
├── Implemented: {count} endpoints
|
|
238
|
-
└── Status: See task record for details
|
|
239
|
-
|
|
240
|
-
Database Changes:
|
|
241
|
-
├── New Tables: {count}
|
|
242
|
-
├── Modified Tables: {count}
|
|
243
|
-
└── Migrations: {count}
|
|
244
|
-
|
|
245
|
-
Technical Debt: {count} items (see tech-debt/)
|
|
246
|
-
Task Record: speccrew-workspace/iterations/{number}-{type}-{name}/04.development/{platform_id}/[module]-task.md
|
|
247
|
-
|
|
248
|
-
Ready for testing phase.
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
## Task Completion Report
|
|
252
|
-
|
|
253
|
-
At the end of Step 9 (or if the skill fails at any point), output a structured Task Completion Report:
|
|
254
|
-
|
|
255
|
-
### Success Report
|
|
256
|
-
|
|
257
|
-
```
|
|
258
|
-
## Task Completion Report
|
|
259
|
-
- **Status**: SUCCESS
|
|
260
|
-
- **Task ID**: {task_id from dispatch context}
|
|
261
|
-
- **Platform**: {platform_id}
|
|
262
|
-
- **Module**: {module_name}
|
|
263
|
-
- **Output Files**:
|
|
264
|
-
- {file_path_1}
|
|
265
|
-
- {file_path_2}
|
|
266
|
-
- ...
|
|
267
|
-
- **Migration Scripts**: {count} scripts at {migration_dir}
|
|
268
|
-
- {script_1_name}: {type} ({tables})
|
|
269
|
-
- {script_2_name}: {type} ({tables})
|
|
270
|
-
- **Summary**: Backend module {module_name} implemented with {X} tasks completed
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
### Failure Report
|
|
274
|
-
|
|
275
|
-
If the skill fails at any step:
|
|
276
|
-
|
|
277
|
-
```
|
|
278
|
-
## Task Completion Report
|
|
279
|
-
- **Status**: FAILED
|
|
280
|
-
- **Task ID**: {task_id from dispatch context}
|
|
281
|
-
- **Platform**: {platform_id}
|
|
282
|
-
- **Module**: {module_name}
|
|
283
|
-
- **Output Files**: {list of partially generated files, or "None"}
|
|
284
|
-
- **Summary**: {one-line description of what was attempted}
|
|
285
|
-
- **Error**: {detailed error description}
|
|
286
|
-
- **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR | RUNTIME_ERROR | BLOCKED}
|
|
287
|
-
- **Partial Outputs**: {list of files that were generated before failure, or "None"}
|
|
288
|
-
- **Recovery Hint**: {suggestion for how to resolve and retry}
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
**Error Category Definitions**:
|
|
292
|
-
- `DEPENDENCY_MISSING`: Required runtime/dependency not available
|
|
293
|
-
- `BUILD_FAILURE`: Compilation error, maven/gradle build failure
|
|
294
|
-
- `VALIDATION_ERROR`: Checkstyle, test failure, or validation error
|
|
295
|
-
- `RUNTIME_ERROR`: Service startup failure, runtime exception
|
|
296
|
-
- `BLOCKED`: Blocked by external dependency or unresolved design issue
|
|
297
|
-
|
|
298
|
-
## OUTPUT EFFICIENCY RULES
|
|
299
|
-
|
|
300
|
-
When executing this skill:
|
|
301
|
-
|
|
302
|
-
1. **Direct-to-File Output**: All implementation code, task records, and helper scripts MUST be written directly to output files
|
|
303
|
-
2. **Minimal Conversation Output**: Only output:
|
|
304
|
-
- Block execution announcements (1 line each): `"[Block XX] Implementing..."`
|
|
305
|
-
- Error messages requiring attention
|
|
306
|
-
- Task Completion Report (final summary)
|
|
307
|
-
3. **FORBIDDEN in conversation**:
|
|
308
|
-
- ❌ Full source code blocks or file contents
|
|
309
|
-
- ❌ Complete implementation listings
|
|
310
|
-
- ❌ Large configuration file dumps
|
|
311
|
-
- ❌ Architecture diagrams displayed in chat
|
|
312
|
-
- ❌ API endpoint listings longer than 3 lines
|
|
313
|
-
4. **Rationale**: Workers run in batch mode (up to 6 concurrent). Displaying code content in conversation wastes context window and provides no value since content goes to files anyway.
|
|
314
|
-
|
|
315
|
-
## ABORT CONDITIONS
|
|
316
|
-
|
|
317
|
-
When script execution or build/compile fails:
|
|
318
|
-
|
|
319
|
-
1. **STOP immediately** — Report: Task ID, error message, failed command
|
|
320
|
-
2. **FORBIDDEN responses on failure**:
|
|
321
|
-
- ❌ DO NOT provide A/B/C alternative options
|
|
322
|
-
- ❌ DO NOT suggest "skip this step and continue"
|
|
323
|
-
- ❌ DO NOT run ad-hoc PowerShell/Bash commands as workaround
|
|
324
|
-
- ❌ DO NOT create temporary scripts to work around the issue
|
|
325
|
-
3. **ONLY correct response**: Report the failure in Task Completion Report with status FAILED and error details
|
|
326
|
-
|
|
327
|
-
## OUTPUT EFFICIENCY RULES
|
|
328
|
-
|
|
329
|
-
When executing this skill:
|
|
330
|
-
|
|
331
|
-
1. **Direct-to-File Output**: All implementation code, task records, and helper scripts MUST be written directly to output files
|
|
332
|
-
2. **Minimal Conversation Output**: Only output:
|
|
333
|
-
- Block execution announcements (1 line each): `"[Block XX] Implementing..."`
|
|
334
|
-
- Error messages requiring attention
|
|
335
|
-
- Task Completion Report (final summary)
|
|
336
|
-
3. **FORBIDDEN in conversation**:
|
|
337
|
-
- ❌ Full source code blocks or file contents
|
|
338
|
-
- ❌ Complete implementation listings
|
|
339
|
-
- ❌ Large configuration file dumps
|
|
340
|
-
- ❌ Architecture diagrams displayed in chat
|
|
341
|
-
- ❌ API endpoint listings longer than 3 lines
|
|
342
|
-
4. **Rationale**: Workers run in batch mode (up to 6 concurrent). Displaying code content in conversation wastes context window and provides no value since content goes to files anyway.
|
|
343
|
-
|
|
344
|
-
## ABORT CONDITIONS
|
|
345
|
-
|
|
346
|
-
When script execution or build/compile fails:
|
|
347
|
-
|
|
348
|
-
1. **STOP immediately** — Report: Task ID, error message, failed command
|
|
349
|
-
2. **FORBIDDEN responses on failure**:
|
|
350
|
-
- ❌ DO NOT provide A/B/C alternative options
|
|
351
|
-
- ❌ DO NOT suggest "skip this step and continue"
|
|
352
|
-
- ❌ DO NOT run ad-hoc PowerShell/Bash commands as workaround
|
|
353
|
-
- ❌ DO NOT create temporary scripts to work around the issue
|
|
354
|
-
3. **ONLY correct response**: Report the failure in Task Completion Report with status FAILED and error details
|
|
355
|
-
|
|
356
|
-
# Key Rules
|
|
357
|
-
|
|
358
|
-
| Rule | Description |
|
|
359
|
-
|------|-------------|
|
|
360
|
-
| **Blueprint-Driven** | Implement directly from system design, no template filling for source code |
|
|
361
|
-
| **Actual Framework Syntax** | Use real framework annotations/syntax from techs knowledge |
|
|
362
|
-
| **API Contract is READ-ONLY** | Do NOT modify API Contract; report issues if found |
|
|
363
|
-
| **Task List Required** | Must extract and record task list before implementation |
|
|
364
|
-
| **Per-Task Quality Gates** | Each task must pass local checks before proceeding |
|
|
365
|
-
| **Deviation Recording** | ALL deviations from design must be documented |
|
|
366
|
-
| **Tech Debt Tracking** | Suboptimal solutions written to tech-debt/ directory |
|
|
367
|
-
|
|
368
|
-
# Reference Guides
|
|
369
|
-
|
|
370
|
-
## Mermaid Diagram Requirements
|
|
371
|
-
|
|
372
|
-
When generating Mermaid diagrams, follow compatibility guidelines:
|
|
373
|
-
|
|
374
|
-
- Use only basic node definitions: `A[text content]`
|
|
375
|
-
- No HTML tags (e.g., `<br/>`)
|
|
376
|
-
- No nested subgraphs
|
|
377
|
-
- No `direction` keyword
|
|
378
|
-
- No `style` definitions
|
|
379
|
-
- No special characters in node text
|
|
380
|
-
- Use standard `graph TB/LR` or `flowchart TD/LR` or `erDiagram` syntax only
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
# Checklist
|
|
385
|
-
|
|
386
|
-
- [ ] All design documents and techs knowledge loaded before implementation
|
|
387
|
-
- [ ] Task record file created with complete checklist
|
|
388
|
-
- [ ] Task list extracted and recorded in task file
|
|
389
|
-
- [ ] Each task marked in progress before coding
|
|
390
|
-
- [ ] Local checks run after each task (compile/lint/test/smoke)
|
|
391
|
-
- [ ] Code follows conventions-data.md ORM patterns
|
|
392
|
-
- [ ] Database migrations follow naming conventions
|
|
393
|
-
- [ ] API endpoints match API Contract specifications
|
|
394
|
-
- [ ] All deviations recorded in task file
|
|
395
|
-
- [ ] Technical debt written to tech-debt/ directory (if any)
|
|
396
|
-
- [ ] Task record status updated to complete
|
|
397
|
-
- [ ] All Mermaid diagrams follow compatibility guidelines
|
|
17
|
+
> **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
|
|
18
|
+
> Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
|