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
|
@@ -14,372 +14,5 @@ tools: Read, Write, Glob, Grep, Bash
|
|
|
14
14
|
|
|
15
15
|
<!-- @agentflow: SKILL.xml -->
|
|
16
16
|
|
|
17
|
-
> **REQUIRED**: Before executing this workflow, read the XML workflow specification:
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Workflow
|
|
22
|
-
|
|
23
|
-
### Absolute Constraints
|
|
24
|
-
|
|
25
|
-
> **These rules apply to Task Record document generation. Violation = task failure.**
|
|
26
|
-
|
|
27
|
-
1. **FORBIDDEN: Full-file rewrite for Task Record** — After the Task Record is initially created in Step 3.1a, NEVER use `create_file` or full-content overwrite on it. All subsequent updates MUST use targeted `search_replace` on specific sections.
|
|
28
|
-
|
|
29
|
-
2. **FORBIDDEN: Full-file rewrite** — NEVER replace the entire Task Record content in a single operation. Always use targeted `search_replace` on specific sections.
|
|
30
|
-
|
|
31
|
-
3. **MANDATORY: Template-first workflow** — Copy template MUST execute before fill sections. Skipping copy and writing content directly is FORBIDDEN.
|
|
32
|
-
|
|
33
|
-
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.
|
|
34
|
-
|
|
35
|
-
## Step 1: Read Design Documents
|
|
36
|
-
|
|
37
|
-
**Input**: Single module design document path `design_doc_path` (provided by upstream system-developer agent).
|
|
38
|
-
|
|
39
|
-
Read in order:
|
|
40
|
-
|
|
41
|
-
1. **Module design document**: `design_doc_path` (single module design document)
|
|
42
|
-
2. **API Contract**: `speccrew-workspace/iterations/{number}-{type}-{name}/03.api-contract/[feature-name]-api-contract.md`
|
|
43
|
-
3. **Techs Knowledge** (paths from agent context):
|
|
44
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/tech-stack.md`
|
|
45
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/architecture.md`
|
|
46
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-design.md`
|
|
47
|
-
- `speccrew-workspace/knowledges/techs/{platform_id}/conventions-dev.md`
|
|
48
|
-
|
|
49
|
-
## Step 2: Analyze Existing Code Structure
|
|
50
|
-
|
|
51
|
-
Use Glob/Grep to understand current Electron codebase:
|
|
52
|
-
|
|
53
|
-
| Target | Glob Pattern | Purpose |
|
|
54
|
-
|--------|-------------|---------|
|
|
55
|
-
| Main process | `src/main/**/*.{ts,js}` | Understand main process structure |
|
|
56
|
-
| Renderer process | `src/renderer/**/*.{tsx,vue,html}` | Understand renderer structure |
|
|
57
|
-
| IPC definitions | `src/main/ipc/**/*` | Understand IPC channel patterns |
|
|
58
|
-
| Window management | `src/main/window/**/*` | Understand window patterns |
|
|
59
|
-
| Preload scripts | `src/preload/**/*` or `preload.{ts,js}` | Understand preload patterns |
|
|
60
|
-
| Native modules | `src/main/native/**/*` | Identify native dependencies |
|
|
61
|
-
| State management | `src/renderer/stores/**/*` | Understand store pattern |
|
|
62
|
-
| API layer | `src/renderer/apis/**/*` | Understand API encapsulation |
|
|
63
|
-
| Configuration files | `package.json`, `electron-builder.yml` | Build and config patterns |
|
|
64
|
-
|
|
65
|
-
Document findings for reference in later steps.
|
|
66
|
-
|
|
67
|
-
## Step 3: Extract Task List and Create Task Record
|
|
68
|
-
|
|
69
|
-
### 3.1 Create Task Record File Using Template-Fill Workflow
|
|
70
|
-
|
|
71
|
-
**Path**: `speccrew-workspace/iterations/{number}-{type}-{name}/04.development/{platform_id}/[feature-name]-task.md`
|
|
72
|
-
|
|
73
|
-
#### 3.1a Copy Template to Task Record Path
|
|
74
|
-
|
|
75
|
-
> Note: This is the ONLY step where `create_file` is allowed for the Task Record. All later updates in Step 4-6 MUST use `search_replace` on individual sections.
|
|
76
|
-
|
|
77
|
-
1. **Read the template file**: `templates/TASK-RECORD-TEMPLATE.md`
|
|
78
|
-
2. **Replace top-level placeholders** (feature name, platform ID, iteration info)
|
|
79
|
-
3. **Create the document** using `create_file`:
|
|
80
|
-
- Target path: `speccrew-workspace/iterations/{number}-{type}-{name}/04.development/{platform_id}/[feature-name]-task.md`
|
|
81
|
-
- Content: Template with top-level placeholders replaced
|
|
82
|
-
4. **Verify**: Document has complete section structure ready for filling
|
|
83
|
-
|
|
84
|
-
#### 3.1b Fill Task Record Sections Using search_replace
|
|
85
|
-
|
|
86
|
-
Fill each section with task checklist and design metadata extracted from input documents.
|
|
87
|
-
|
|
88
|
-
> ⚠️ **CRITICAL CONSTRAINTS:**
|
|
89
|
-
> - **FORBIDDEN: `create_file` to rewrite the entire document**
|
|
90
|
-
> - **MUST use `search_replace` to fill each section individually**
|
|
91
|
-
> - **All section titles MUST be preserved**
|
|
92
|
-
|
|
93
|
-
### 3.2 Electron-Specific Task Types
|
|
94
|
-
|
|
95
|
-
**Conditional Task Selection:**
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
IF task involves backend logic in main process THEN
|
|
99
|
-
→ Create Main Process Module task
|
|
100
|
-
IF task involves UI components in renderer THEN
|
|
101
|
-
→ Create Renderer Page/Component task
|
|
102
|
-
IF task involves process communication THEN
|
|
103
|
-
→ Create IPC Channel Handler task + Preload Script task
|
|
104
|
-
IF task involves native APIs THEN
|
|
105
|
-
→ Create Native Integration task
|
|
106
|
-
IF task involves menus or shortcuts THEN
|
|
107
|
-
→ Create Menu/Shortcut task
|
|
108
|
-
IF task involves auto-update THEN
|
|
109
|
-
→ Create Auto-Update task
|
|
110
|
-
IF task involves security configuration THEN
|
|
111
|
-
→ Create Security Hardening task
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
| Task Type | Description | Example |
|
|
115
|
-
|-----------|-------------|---------|
|
|
116
|
-
| Main Process Module | Backend logic running in main process | Window manager, IPC handlers, native integrations |
|
|
117
|
-
| Renderer Page/Component | UI components in renderer process | React/Vue components, pages, layouts |
|
|
118
|
-
| IPC Channel Handler | Communication bridge between processes | `ipcMain.handle`, `ipcRenderer.invoke` |
|
|
119
|
-
| Preload Script | Context bridge for secure renderer access | `contextBridge.exposeInMainWorld` |
|
|
120
|
-
| Window Management | Window creation, lifecycle, multi-window | `BrowserWindow`, window configuration |
|
|
121
|
-
| Native Integration | File system, system tray, notifications | Native API wrappers |
|
|
122
|
-
| Menu/Shortcut | Application menus, keyboard shortcuts | Menu templates, global shortcuts |
|
|
123
|
-
| Auto-Update | Update checking and installation | `electron-updater` |
|
|
124
|
-
| Security Hardening | Context isolation, CSP, permissions | Preload scripts, security configs |
|
|
125
|
-
|
|
126
|
-
### Task ID Prefix
|
|
127
|
-
|
|
128
|
-
Use `EL-` prefix for Electron tasks: `EL-001`, `EL-002`, etc.
|
|
129
|
-
|
|
130
|
-
### Task Checklist Table
|
|
131
|
-
|
|
132
|
-
| Task ID | Module | Description | Target Files | IPC Channel | Native Integration | Dependencies | Status |
|
|
133
|
-
|---------|--------|-------------|--------------|-------------|-------------------|--------------|--------|
|
|
134
|
-
| EL-001 | MainProcess | Create window manager | `src/main/window/manager.ts` | - | Window creation | - | Pending |
|
|
135
|
-
| EL-002 | IPC | Implement file operations handler | `src/main/ipc/file.ts` | `file:read`, `file:write` | File system | EL-001 | Pending |
|
|
136
|
-
| EL-003 | Renderer | Create main window UI | `src/renderer/pages/Main.tsx` | `file:*` | - | EL-002 | Pending |
|
|
137
|
-
|
|
138
|
-
**Status**: Pending / In Progress / Completed / Blocked
|
|
139
|
-
|
|
140
|
-
**Proceed directly to implementation — no user confirmation required.**
|
|
141
|
-
|
|
142
|
-
## Step 4: Implement Tasks
|
|
143
|
-
|
|
144
|
-
### 4.1 Implementation Order
|
|
145
|
-
|
|
146
|
-
Follow dependency order:
|
|
147
|
-
1. Main process infrastructure (window manager, IPC setup)
|
|
148
|
-
2. IPC channel handlers and preload scripts
|
|
149
|
-
3. Renderer process components
|
|
150
|
-
4. Native integrations
|
|
151
|
-
5. Security configurations
|
|
152
|
-
6. Auto-update mechanism
|
|
153
|
-
|
|
154
|
-
### 4.2 Coding Standards
|
|
155
|
-
|
|
156
|
-
- **Main Process**: Follow conventions-dev.md for Electron backend code
|
|
157
|
-
- **Renderer Process**: Follow frontend conventions (React/Vue/etc.)
|
|
158
|
-
- **IPC Channels**: Use exact channel names from design document
|
|
159
|
-
- **Types**: Use TypeScript types defined in design document
|
|
160
|
-
- **Security**: Never expose `nodeIntegration`, always use context isolation
|
|
161
|
-
|
|
162
|
-
### 4.3 Status Markers
|
|
163
|
-
|
|
164
|
-
Use markers from design document:
|
|
165
|
-
|
|
166
|
-
| Marker | Meaning | Action |
|
|
167
|
-
|--------|---------|--------|
|
|
168
|
-
| `[EXISTING]` | Reuse current code | Verify compatibility, no modification needed |
|
|
169
|
-
| `[MODIFIED]` | Enhance existing code | Implement changes carefully |
|
|
170
|
-
| `[NEW]` | Create brand new | Full implementation required |
|
|
171
|
-
|
|
172
|
-
## Step 5: Local Checks (Per Task)
|
|
173
|
-
|
|
174
|
-
After completing each task, run the following checks:
|
|
175
|
-
|
|
176
|
-
### 5.1 Build Verification
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
npm run build:dev
|
|
180
|
-
# or
|
|
181
|
-
npm run electron:dev
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 5.2 Lint Check
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
npm run lint
|
|
188
|
-
# or
|
|
189
|
-
npx eslint [modified-files]
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### 5.3 Type Check (TypeScript projects)
|
|
193
|
-
|
|
194
|
-
```bash
|
|
195
|
-
npx tsc --noEmit
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### 5.4 Security Audit
|
|
199
|
-
|
|
200
|
-
Perform security checks according to Security Audit Reference.
|
|
201
|
-
|
|
202
|
-
### 5.5 Unit Tests
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
npm test -- [related-test-pattern]
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### 5.6 Quick Verify
|
|
209
|
-
|
|
210
|
-
- Application window launches without crash
|
|
211
|
-
- No console errors in DevTools
|
|
212
|
-
- IPC channels respond correctly
|
|
213
|
-
- Native integrations work as expected
|
|
214
|
-
|
|
215
|
-
**If checks fail**: Fix issues before marking task complete. Record complex issues in task file.
|
|
216
|
-
|
|
217
|
-
## Step 6: Record Deviations
|
|
218
|
-
|
|
219
|
-
If implementation deviates from design document:
|
|
220
|
-
|
|
221
|
-
1. Stop and document the deviation
|
|
222
|
-
2. Explain reason for deviation
|
|
223
|
-
3. Get user confirmation or proceed with documented reason
|
|
224
|
-
|
|
225
|
-
**Record in task file**:
|
|
226
|
-
```markdown
|
|
227
|
-
### Deviation Log
|
|
228
|
-
- EL-002: Changed IPC payload structure from {original} to {new} because {reason}
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
## Step 7: Record Technical Debt
|
|
232
|
-
|
|
233
|
-
If technical debt is identified:
|
|
234
|
-
|
|
235
|
-
**Write to**: `speccrew-workspace/iterations/{number}-{type}-{name}/tech-debt/[feature-name]-tech-debt.md`
|
|
236
|
-
|
|
237
|
-
**Categories**:
|
|
238
|
-
- Security: Temporary security relaxations
|
|
239
|
-
- Performance: Known performance issues
|
|
240
|
-
- Refactoring: Code that needs cleanup
|
|
241
|
-
- Dependencies: Version constraints or workarounds
|
|
242
|
-
|
|
243
|
-
## Step 8: Complete Notification
|
|
244
|
-
|
|
245
|
-
After all tasks complete, present summary:
|
|
246
|
-
|
|
247
|
-
```
|
|
248
|
-
Electron Development Complete: {feature-name}
|
|
249
|
-
Platform: {platform_id}
|
|
250
|
-
Framework: Electron
|
|
251
|
-
|
|
252
|
-
Tasks Completed: {count}
|
|
253
|
-
├── Main Process: {count}
|
|
254
|
-
├── Renderer Process: {count}
|
|
255
|
-
├── IPC Channels: {count}
|
|
256
|
-
├── Native Integration: {count}
|
|
257
|
-
└── Security/Other: {count}
|
|
258
|
-
|
|
259
|
-
Deviations Recorded: {count}
|
|
260
|
-
Technical Debt Items: {count}
|
|
261
|
-
|
|
262
|
-
Task Record: speccrew-workspace/iterations/{number}-{type}-{name}/04.development/{platform_id}/[feature-name]-task.md
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
## Task Completion Report
|
|
266
|
-
|
|
267
|
-
At the end of Step 8 (or if the skill fails at any point), output a structured Task Completion Report:
|
|
268
|
-
|
|
269
|
-
### Success Report
|
|
270
|
-
|
|
271
|
-
```
|
|
272
|
-
## Task Completion Report
|
|
273
|
-
- **Status**: SUCCESS
|
|
274
|
-
- **Task ID**: {task_id from dispatch context}
|
|
275
|
-
- **Platform**: {platform_id}
|
|
276
|
-
- **Module**: {module_name}
|
|
277
|
-
- **Output Files**:
|
|
278
|
-
- {file_path_1}
|
|
279
|
-
- {file_path_2}
|
|
280
|
-
- ...
|
|
281
|
-
- **Summary**: Electron module {module_name} implemented with {X} tasks completed
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
### Failure Report
|
|
285
|
-
|
|
286
|
-
If the skill fails at any step:
|
|
287
|
-
|
|
288
|
-
```
|
|
289
|
-
## Task Completion Report
|
|
290
|
-
- **Status**: FAILED
|
|
291
|
-
- **Task ID**: {task_id from dispatch context}
|
|
292
|
-
- **Platform**: {platform_id}
|
|
293
|
-
- **Module**: {module_name}
|
|
294
|
-
- **Output Files**: {list of partially generated files, or "None"}
|
|
295
|
-
- **Summary**: {one-line description of what was attempted}
|
|
296
|
-
- **Error**: {detailed error description}
|
|
297
|
-
- **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR | RUNTIME_ERROR | BLOCKED}
|
|
298
|
-
- **Partial Outputs**: {list of files that were generated before failure, or "None"}
|
|
299
|
-
- **Recovery Hint**: {suggestion for how to resolve and retry}
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
**Error Category Definitions**:
|
|
303
|
-
- `DEPENDENCY_MISSING`: Required Node.js/npm dependency not available
|
|
304
|
-
- `BUILD_FAILURE`: Electron build error, native compilation failure
|
|
305
|
-
- `VALIDATION_ERROR`: ESLint, TypeScript type check, or test failure
|
|
306
|
-
- `RUNTIME_ERROR`: App crash on launch, runtime exception, IPC communication failure
|
|
307
|
-
- `BLOCKED`: Blocked by external dependency, native module issue, or unresolved design issue
|
|
308
|
-
|
|
309
|
-
---
|
|
310
|
-
|
|
311
|
-
# Reference Guides
|
|
312
|
-
|
|
313
|
-
## Security Audit Checklist
|
|
314
|
-
|
|
315
|
-
| Check | Method |
|
|
316
|
-
|-------|--------|
|
|
317
|
-
| Context Isolation | Verify `contextIsolation: true` in window config |
|
|
318
|
-
| nodeIntegration | Verify `nodeIntegration: false` |
|
|
319
|
-
| Preload Script | Verify all IPC goes through preload |
|
|
320
|
-
| CSP | Check Content Security Policy headers |
|
|
321
|
-
|
|
322
|
-
---
|
|
323
|
-
|
|
324
|
-
## OUTPUT EFFICIENCY RULES
|
|
325
|
-
|
|
326
|
-
When executing this skill:
|
|
327
|
-
|
|
328
|
-
1. **Direct-to-File Output**: All implementation code, task records, and helper scripts MUST be written directly to output files
|
|
329
|
-
2. **Minimal Conversation Output**: Only output:
|
|
330
|
-
- Block execution announcements (1 line each): `"[Block XX] Implementing..."`
|
|
331
|
-
- Error messages requiring attention
|
|
332
|
-
- Task Completion Report (final summary)
|
|
333
|
-
3. **FORBIDDEN in conversation**:
|
|
334
|
-
- ❌ Full source code blocks or file contents
|
|
335
|
-
- ❌ Complete implementation listings
|
|
336
|
-
- ❌ Large configuration file dumps
|
|
337
|
-
- ❌ Architecture diagrams displayed in chat
|
|
338
|
-
- ❌ API endpoint listings longer than 3 lines
|
|
339
|
-
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.
|
|
340
|
-
|
|
341
|
-
## ABORT CONDITIONS
|
|
342
|
-
|
|
343
|
-
When script execution or build/compile fails:
|
|
344
|
-
|
|
345
|
-
1. **STOP immediately** — Report: Task ID, error message, failed command
|
|
346
|
-
2. **FORBIDDEN responses on failure**:
|
|
347
|
-
- ❌ DO NOT provide A/B/C alternative options
|
|
348
|
-
- ❌ DO NOT suggest "skip this step and continue"
|
|
349
|
-
- ❌ DO NOT run ad-hoc PowerShell/Bash commands as workaround
|
|
350
|
-
- ❌ DO NOT create temporary scripts to work around the issue
|
|
351
|
-
3. **ONLY correct response**: Report the failure in Task Completion Report with status FAILED and error details
|
|
352
|
-
|
|
353
|
-
# Key Rules
|
|
354
|
-
|
|
355
|
-
| Rule | Description |
|
|
356
|
-
|------|-------------|
|
|
357
|
-
| **Design Document READ-ONLY** | Design documents are reference only - do not modify. Record deviations in task file. |
|
|
358
|
-
| **Actual Framework Syntax** | All code MUST use actual Electron API syntax |
|
|
359
|
-
| **Status Markers Required** | Use [EXISTING], [MODIFIED], [NEW] markers for all components, modules, and IPC handlers |
|
|
360
|
-
| **Follow Techs Conventions** | Naming, directory structure, patterns must follow techs knowledge |
|
|
361
|
-
| **Security First** | Never disable contextIsolation; never enable nodeIntegration in renderer |
|
|
362
|
-
| **IPC Through Preload** | All main-renderer communication must go through preload scripts |
|
|
363
|
-
| **Task Per File Group** | Each task should map to a logical file group or component |
|
|
364
|
-
| **Local Checks Mandatory** | Run lint, type check, and quick verify before marking task complete |
|
|
365
|
-
| **Tech Debt Recorded** | All technical debt must be written to iterations/{iter}/tech-debt/ |
|
|
366
|
-
|
|
367
|
-
# Checklist
|
|
368
|
-
|
|
369
|
-
- [ ] Design document loaded before implementation (single module design_doc_path)
|
|
370
|
-
- [ ] Existing code structure analyzed via Glob/Grep
|
|
371
|
-
- [ ] Task record created with complete checklist
|
|
372
|
-
- [ ] Task list extracted and recorded in task file
|
|
373
|
-
- [ ] All modules in the design document covered in task list
|
|
374
|
-
- [ ] All IPC channels from design implemented
|
|
375
|
-
- [ ] Context isolation enabled for all windows
|
|
376
|
-
- [ ] Preload scripts expose only necessary APIs
|
|
377
|
-
- [ ] Native integrations follow security best practices
|
|
378
|
-
- [ ] Build verification passes (dev mode)
|
|
379
|
-
- [ ] Lint check passes with no errors
|
|
380
|
-
- [ ] Type check passes (TypeScript projects)
|
|
381
|
-
- [ ] Unit tests pass for implemented modules
|
|
382
|
-
- [ ] Quick verify: App launches without crash
|
|
383
|
-
- [ ] All deviations recorded in task file
|
|
384
|
-
- [ ] Technical debt recorded in tech-debt/ directory
|
|
385
|
-
- [ ] Task record status updated to complete
|
|
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.
|