claude-code-workflow 7.2.24 → 7.2.25
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/.ccw/workflows/cli-tools-usage.md +123 -521
- package/.claude/skills/brainstorm/SKILL.md +408 -408
- package/.claude/skills/review-cycle/SKILL.md +132 -132
- package/.claude/skills/spec-generator/SKILL.md +1 -1
- package/.claude/skills/team-designer/phases/02-scaffold-generation.md +1 -1
- package/.claude/skills/team-lifecycle-v4/SKILL.md +1 -1
- package/.claude/skills/team-review/SKILL.md +1 -1
- package/.claude/skills/team-ultra-analyze/SKILL.md +1 -1
- package/.claude/skills/workflow-multi-cli-plan/SKILL.md +1 -1
- package/.claude/skills/workflow-plan/SKILL.md +1 -1
- package/.claude/skills/workflow-test-fix/SKILL.md +1 -1
- package/.codex/skills/analyze-with-file/SKILL.md +966 -966
- package/.codex/skills/issue-discover/SKILL.md +361 -361
- package/.codex/skills/review-cycle/SKILL.md +1 -1
- package/.codex/skills/roadmap-with-file/SKILL.md +901 -901
- package/.codex/skills/spec-generator/SKILL.md +425 -425
- package/.codex/skills/spec-setup/SKILL.md +669 -669
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +1 -1
- package/.codex/skills/workflow-test-fix-cycle/SKILL.md +402 -402
- package/package.json +1 -1
- package/.claude/skills/team-iterdev/SKILL.md +0 -127
- package/.claude/skills/team-iterdev/roles/architect/role.md +0 -65
- package/.claude/skills/team-iterdev/roles/coordinator/commands/analyze.md +0 -62
- package/.claude/skills/team-iterdev/roles/coordinator/commands/dispatch.md +0 -234
- package/.claude/skills/team-iterdev/roles/coordinator/commands/monitor.md +0 -182
- package/.claude/skills/team-iterdev/roles/coordinator/role.md +0 -153
- package/.claude/skills/team-iterdev/roles/developer/role.md +0 -74
- package/.claude/skills/team-iterdev/roles/reviewer/role.md +0 -66
- package/.claude/skills/team-iterdev/roles/tester/role.md +0 -88
- package/.claude/skills/team-iterdev/specs/pipelines.md +0 -94
- package/.claude/skills/team-iterdev/specs/team-config.json +0 -172
- package/.codex/skills/team-iterdev/SKILL.md +0 -219
- package/.codex/skills/team-iterdev/roles/architect/role.md +0 -65
- package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +0 -62
- package/.codex/skills/team-iterdev/roles/coordinator/commands/dispatch.md +0 -187
- package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +0 -227
- package/.codex/skills/team-iterdev/roles/coordinator/role.md +0 -193
- package/.codex/skills/team-iterdev/roles/developer/role.md +0 -74
- package/.codex/skills/team-iterdev/roles/reviewer/role.md +0 -66
- package/.codex/skills/team-iterdev/roles/tester/role.md +0 -88
- package/.codex/skills/team-iterdev/specs/pipelines.md +0 -94
- package/.codex/skills/team-iterdev/specs/team-config.json +0 -172
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: team-iterdev
|
|
3
|
-
description: Unified team skill for iterative development team. Pure router — all roles read this file. Beat model is coordinator-only in monitor.md. Generator-Critic loops (developer<->reviewer, max 3 rounds). Triggers on "team iterdev".
|
|
4
|
-
allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), assign_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*)
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Team IterDev
|
|
8
|
-
|
|
9
|
-
Iterative development team skill. Generator-Critic loops (developer<->reviewer, max 3 rounds), task ledger (task-ledger.json) for real-time progress, shared memory (cross-sprint learning), and dynamic pipeline selection for incremental delivery.
|
|
10
|
-
|
|
11
|
-
## Architecture
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
Skill(skill="team-iterdev", args="task description")
|
|
15
|
-
|
|
|
16
|
-
SKILL.md (this file) = Router
|
|
17
|
-
|
|
|
18
|
-
+--------------+--------------+
|
|
19
|
-
| |
|
|
20
|
-
no --role flag --role <name>
|
|
21
|
-
| |
|
|
22
|
-
Coordinator Worker
|
|
23
|
-
roles/coordinator/role.md roles/<name>/role.md
|
|
24
|
-
|
|
|
25
|
-
+-- analyze -> dispatch -> spawn workers -> STOP
|
|
26
|
-
|
|
|
27
|
-
+-------+-------+-------+
|
|
28
|
-
v v v v
|
|
29
|
-
[architect] [developer] [tester] [reviewer]
|
|
30
|
-
(team-worker agents, each loads roles/<role>/role.md)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Role Registry
|
|
34
|
-
|
|
35
|
-
| Role | Path | Prefix | Inner Loop |
|
|
36
|
-
|------|------|--------|------------|
|
|
37
|
-
| coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
|
|
38
|
-
| architect | [roles/architect/role.md](roles/architect/role.md) | DESIGN-* | false |
|
|
39
|
-
| developer | [roles/developer/role.md](roles/developer/role.md) | DEV-* | true |
|
|
40
|
-
| tester | [roles/tester/role.md](roles/tester/role.md) | VERIFY-* | false |
|
|
41
|
-
| reviewer | [roles/reviewer/role.md](roles/reviewer/role.md) | REVIEW-* | false |
|
|
42
|
-
|
|
43
|
-
## Role Router
|
|
44
|
-
|
|
45
|
-
Parse `$ARGUMENTS`:
|
|
46
|
-
- Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
|
|
47
|
-
- No `--role` → `roles/coordinator/role.md`, execute entry router
|
|
48
|
-
|
|
49
|
-
## Delegation Lock
|
|
50
|
-
|
|
51
|
-
**Coordinator is a PURE ORCHESTRATOR. It coordinates, it does NOT do.**
|
|
52
|
-
|
|
53
|
-
Before calling ANY tool, apply this check:
|
|
54
|
-
|
|
55
|
-
| Tool Call | Verdict | Reason |
|
|
56
|
-
|-----------|---------|--------|
|
|
57
|
-
| `spawn_agent`, `wait_agent`, `close_agent`, `send_message`, `assign_task` | ALLOWED | Orchestration |
|
|
58
|
-
| `list_agents` | ALLOWED | Agent health check |
|
|
59
|
-
| `request_user_input` | ALLOWED | User interaction |
|
|
60
|
-
| `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
|
|
61
|
-
| `Read/Write` on `.workflow/.team/` files | ALLOWED | Session state |
|
|
62
|
-
| `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
|
|
63
|
-
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
64
|
-
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
65
|
-
| `Bash("ccw cli ...")` | BLOCKED | Only workers call CLI |
|
|
66
|
-
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
67
|
-
|
|
68
|
-
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
69
|
-
|
|
70
|
-
**No exceptions for "simple" tasks.** Even a single-file read-and-report MUST go through spawn_agent.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Shared Constants
|
|
75
|
-
|
|
76
|
-
- **Session prefix**: `IDS`
|
|
77
|
-
- **Session path**: `.workflow/.team/IDS-<slug>-<date>/`
|
|
78
|
-
- **CLI tools**: `ccw cli --mode analysis` (read-only), `ccw cli --mode write` (modifications)
|
|
79
|
-
- **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
|
|
80
|
-
|
|
81
|
-
## Worker Spawn Template
|
|
82
|
-
|
|
83
|
-
Coordinator spawns workers using this template:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
spawn_agent({
|
|
87
|
-
agent_type: "team_worker",
|
|
88
|
-
task_name: "<task-id>",
|
|
89
|
-
fork_context: false,
|
|
90
|
-
items: [
|
|
91
|
-
{ type: "text", text: `## Role Assignment
|
|
92
|
-
role: <role>
|
|
93
|
-
role_spec: <skill_root>/roles/<role>/role.md
|
|
94
|
-
session: <session-folder>
|
|
95
|
-
session_id: <session-id>
|
|
96
|
-
requirement: <task-description>
|
|
97
|
-
inner_loop: <true|false>
|
|
98
|
-
|
|
99
|
-
Read role_spec file (<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.` },
|
|
100
|
-
|
|
101
|
-
{ type: "text", text: `## Task Context
|
|
102
|
-
task_id: <task-id>
|
|
103
|
-
title: <task-title>
|
|
104
|
-
description: <task-description>
|
|
105
|
-
pipeline_phase: <pipeline-phase>` },
|
|
106
|
-
|
|
107
|
-
{ type: "text", text: `## Upstream Context
|
|
108
|
-
<prev_context>` }
|
|
109
|
-
]
|
|
110
|
-
})
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target })` each worker.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### Model Selection Guide
|
|
117
|
-
|
|
118
|
-
Iterative development uses Generator-Critic loops. Developer and reviewer need high reasoning for code generation and review quality.
|
|
119
|
-
|
|
120
|
-
| Role | reasoning_effort | Rationale |
|
|
121
|
-
|------|-------------------|-----------|
|
|
122
|
-
| architect | high | Design decisions require careful tradeoff analysis |
|
|
123
|
-
| developer | high | Code generation needs precision, inner loop role |
|
|
124
|
-
| tester | medium | Test execution follows defined verification plan |
|
|
125
|
-
| reviewer | high | Critical review quality drives GC loop effectiveness |
|
|
126
|
-
|
|
127
|
-
## User Commands
|
|
128
|
-
|
|
129
|
-
| Command | Action |
|
|
130
|
-
|---------|--------|
|
|
131
|
-
| `check` / `status` | View execution status graph |
|
|
132
|
-
| `resume` / `continue` | Advance to next step |
|
|
133
|
-
|
|
134
|
-
## Session Directory
|
|
135
|
-
|
|
136
|
-
```
|
|
137
|
-
.workflow/.team/IDS-<slug>-<YYYY-MM-DD>/
|
|
138
|
-
├── .msg/
|
|
139
|
-
│ ├── messages.jsonl # Team message bus
|
|
140
|
-
│ └── meta.json # Session state
|
|
141
|
-
├── task-analysis.json # Coordinator analyze output
|
|
142
|
-
├── task-ledger.json # Real-time task progress ledger
|
|
143
|
-
├── wisdom/ # Cross-task knowledge accumulation
|
|
144
|
-
│ ├── learnings.md
|
|
145
|
-
│ ├── decisions.md
|
|
146
|
-
│ ├── conventions.md
|
|
147
|
-
│ └── issues.md
|
|
148
|
-
├── design/ # Architect output
|
|
149
|
-
│ ├── design-001.md
|
|
150
|
-
│ └── task-breakdown.json
|
|
151
|
-
├── code/ # Developer tracking
|
|
152
|
-
│ └── dev-log.md
|
|
153
|
-
├── verify/ # Tester output
|
|
154
|
-
│ └── verify-001.json
|
|
155
|
-
└── review/ # Reviewer output
|
|
156
|
-
└── review-001.md
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
## Specs Reference
|
|
160
|
-
|
|
161
|
-
- [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
|
|
162
|
-
|
|
163
|
-
## v4 Agent Coordination
|
|
164
|
-
|
|
165
|
-
### Message Semantics
|
|
166
|
-
|
|
167
|
-
| Intent | API | Example |
|
|
168
|
-
|--------|-----|---------|
|
|
169
|
-
| Queue supplementary info (don't interrupt) | `send_message` | Send design context to running developer |
|
|
170
|
-
| Assign GC iteration round | `assign_task` | Assign revision to developer after reviewer feedback |
|
|
171
|
-
| Check running agents | `list_agents` | Verify agent health during resume |
|
|
172
|
-
|
|
173
|
-
### Agent Health Check
|
|
174
|
-
|
|
175
|
-
Use `list_agents({})` in handleResume and handleComplete:
|
|
176
|
-
|
|
177
|
-
```
|
|
178
|
-
// Reconcile session state with actual running agents
|
|
179
|
-
const running = list_agents({})
|
|
180
|
-
// Compare with task-ledger.json active tasks
|
|
181
|
-
// Reset orphaned tasks (in_progress but agent gone) to pending
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Named Agent Targeting
|
|
185
|
-
|
|
186
|
-
Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
|
|
187
|
-
- `send_message({ target: "DEV-001", items: [...] })` -- send design context to developer
|
|
188
|
-
- `assign_task({ target: "DEV-001", items: [...] })` -- assign revision after reviewer feedback
|
|
189
|
-
- `close_agent({ target: "REVIEW-001" })` -- cleanup after GC loop completes
|
|
190
|
-
|
|
191
|
-
### Generator-Critic Loop via assign_task (Deep Interaction Pattern)
|
|
192
|
-
|
|
193
|
-
The developer-reviewer GC loop uses `assign_task` for iteration rounds:
|
|
194
|
-
```
|
|
195
|
-
// Round N: Reviewer found issues -> coordinator assigns revision to developer
|
|
196
|
-
assign_task({
|
|
197
|
-
target: "DEV-001",
|
|
198
|
-
items: [
|
|
199
|
-
{ type: "text", text: `## GC Revision Round ${N}
|
|
200
|
-
review_feedback: <reviewer findings from REVIEW-001>
|
|
201
|
-
iteration: ${N}/3
|
|
202
|
-
instruction: Address reviewer feedback. Focus on: <specific issues>.` }
|
|
203
|
-
]
|
|
204
|
-
})
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
After developer completes revision, coordinator spawns/assigns reviewer for next round. Max 3 rounds per GC cycle.
|
|
208
|
-
|
|
209
|
-
## Error Handling
|
|
210
|
-
|
|
211
|
-
| Scenario | Resolution |
|
|
212
|
-
|----------|------------|
|
|
213
|
-
| Unknown command | Error with available command list |
|
|
214
|
-
| Role not found | Error with role registry |
|
|
215
|
-
| GC loop exceeds 3 rounds | Accept with warning, record in shared memory |
|
|
216
|
-
| Sprint velocity drops below 50% | Coordinator alerts user, suggests scope reduction |
|
|
217
|
-
| Task ledger corrupted | Rebuild from TaskList state |
|
|
218
|
-
| Conflict detected | Update conflict_info, notify coordinator, create DEV-fix task |
|
|
219
|
-
| Pipeline deadlock | Check blockedBy chain, report blocking point |
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: architect
|
|
3
|
-
prefix: DESIGN
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types:
|
|
6
|
-
success: design_ready
|
|
7
|
-
revision: design_revision
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Architect
|
|
12
|
-
|
|
13
|
-
Technical design, task decomposition, and architecture decision records for iterative development.
|
|
14
|
-
|
|
15
|
-
## Phase 2: Context Loading + Codebase Exploration
|
|
16
|
-
|
|
17
|
-
| Input | Source | Required |
|
|
18
|
-
|-------|--------|----------|
|
|
19
|
-
| Task description | From task subject/description | Yes |
|
|
20
|
-
| Session path | Extracted from task description | Yes |
|
|
21
|
-
| .msg/meta.json | <session>/.msg/meta.json | No |
|
|
22
|
-
| Wisdom files | <session>/wisdom/ | No |
|
|
23
|
-
|
|
24
|
-
1. Extract session path and requirement from task description
|
|
25
|
-
2. Read .msg/meta.json for shared context (architecture_decisions, implementation_context)
|
|
26
|
-
3. Read wisdom files if available (learnings.md, decisions.md, conventions.md)
|
|
27
|
-
4. Explore codebase for existing patterns, module structure, dependencies:
|
|
28
|
-
- Use mcp__ace-tool__search_context for semantic discovery
|
|
29
|
-
- Identify similar implementations and integration points
|
|
30
|
-
|
|
31
|
-
## Phase 3: Technical Design + Task Decomposition
|
|
32
|
-
|
|
33
|
-
**Design strategy selection**:
|
|
34
|
-
|
|
35
|
-
| Condition | Strategy |
|
|
36
|
-
|-----------|----------|
|
|
37
|
-
| Single module change | Direct inline design |
|
|
38
|
-
| Cross-module change | Multi-component design with integration points |
|
|
39
|
-
| Large refactoring | Phased approach with milestones |
|
|
40
|
-
|
|
41
|
-
**Outputs**:
|
|
42
|
-
|
|
43
|
-
1. **Design Document** (`<session>/design/design-<num>.md`):
|
|
44
|
-
- Architecture decision: approach, rationale, alternatives
|
|
45
|
-
- Component design: responsibility, dependencies, files, complexity
|
|
46
|
-
- Task breakdown: files, estimated complexity, dependencies, acceptance criteria
|
|
47
|
-
- Integration points and risks with mitigations
|
|
48
|
-
|
|
49
|
-
2. **Task Breakdown JSON** (`<session>/design/task-breakdown.json`):
|
|
50
|
-
- Array of tasks with id, title, files, complexity, dependencies, acceptance_criteria
|
|
51
|
-
- Execution order for developer to follow
|
|
52
|
-
|
|
53
|
-
## Phase 4: Design Validation
|
|
54
|
-
|
|
55
|
-
| Check | Method | Pass Criteria |
|
|
56
|
-
|-------|--------|---------------|
|
|
57
|
-
| Components defined | Verify component list | At least 1 component |
|
|
58
|
-
| Task breakdown exists | Verify task list | At least 1 task |
|
|
59
|
-
| Dependencies mapped | All components have dependencies field | All present (can be empty) |
|
|
60
|
-
| Integration points | Verify integration section | Key integrations documented |
|
|
61
|
-
|
|
62
|
-
1. Run validation checks above
|
|
63
|
-
2. Write architecture_decisions entry to .msg/meta.json:
|
|
64
|
-
- design_id, approach, rationale, components, task_count
|
|
65
|
-
3. Write discoveries to wisdom/decisions.md and wisdom/conventions.md
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Analyze Task
|
|
2
|
-
|
|
3
|
-
Parse iterative development task -> detect capabilities -> assess pipeline complexity -> design roles.
|
|
4
|
-
|
|
5
|
-
**CONSTRAINT**: Text-level analysis only. NO source code reading, NO codebase exploration.
|
|
6
|
-
|
|
7
|
-
## Signal Detection
|
|
8
|
-
|
|
9
|
-
| Keywords | Capability | Role |
|
|
10
|
-
|----------|------------|------|
|
|
11
|
-
| design, architect, restructure, refactor plan | architect | architect |
|
|
12
|
-
| implement, build, code, fix, develop | developer | developer |
|
|
13
|
-
| test, verify, validate, coverage | tester | tester |
|
|
14
|
-
| review, audit, quality, check | reviewer | reviewer |
|
|
15
|
-
|
|
16
|
-
## Pipeline Selection
|
|
17
|
-
|
|
18
|
-
| Signal | Score |
|
|
19
|
-
|--------|-------|
|
|
20
|
-
| Changed files > 10 | +3 |
|
|
21
|
-
| Changed files 3-10 | +2 |
|
|
22
|
-
| Structural change (refactor, architect, restructure) | +3 |
|
|
23
|
-
| Cross-cutting (multiple, across, cross) | +2 |
|
|
24
|
-
| Simple fix (fix, bug, typo, patch) | -2 |
|
|
25
|
-
|
|
26
|
-
| Score | Pipeline |
|
|
27
|
-
|-------|----------|
|
|
28
|
-
| >= 5 | multi-sprint |
|
|
29
|
-
| 2-4 | sprint |
|
|
30
|
-
| 0-1 | patch |
|
|
31
|
-
|
|
32
|
-
## Dependency Graph
|
|
33
|
-
|
|
34
|
-
Natural ordering tiers:
|
|
35
|
-
- Tier 0: architect (design must come first)
|
|
36
|
-
- Tier 1: developer (implementation requires design)
|
|
37
|
-
- Tier 2: tester, reviewer (validation requires artifacts, can run parallel)
|
|
38
|
-
|
|
39
|
-
## Complexity Assessment
|
|
40
|
-
|
|
41
|
-
| Factor | Points |
|
|
42
|
-
|--------|--------|
|
|
43
|
-
| Cross-module changes | +2 |
|
|
44
|
-
| Serial depth > 3 | +1 |
|
|
45
|
-
| Multiple developers needed | +2 |
|
|
46
|
-
| GC loop likely needed | +1 |
|
|
47
|
-
|
|
48
|
-
## Output
|
|
49
|
-
|
|
50
|
-
Write <session>/task-analysis.json:
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"task_description": "<original>",
|
|
54
|
-
"pipeline_type": "<patch|sprint|multi-sprint>",
|
|
55
|
-
"capabilities": [{ "name": "<cap>", "role": "<role>", "keywords": ["..."] }],
|
|
56
|
-
"roles": [{ "name": "<role>", "prefix": "<PREFIX>", "inner_loop": false }],
|
|
57
|
-
"complexity": { "score": 0, "level": "Low|Medium|High" },
|
|
58
|
-
"needs_architecture": true,
|
|
59
|
-
"needs_testing": true,
|
|
60
|
-
"needs_review": true
|
|
61
|
-
}
|
|
62
|
-
```
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# Command: Dispatch
|
|
2
|
-
|
|
3
|
-
Create the iterative development task chain with correct dependencies and structured task descriptions.
|
|
4
|
-
|
|
5
|
-
## Phase 2: Context Loading
|
|
6
|
-
|
|
7
|
-
| Input | Source | Required |
|
|
8
|
-
|-------|--------|----------|
|
|
9
|
-
| User requirement | From coordinator Phase 1 | Yes |
|
|
10
|
-
| Session folder | From coordinator Phase 2 | Yes |
|
|
11
|
-
| Pipeline definition | From SKILL.md Pipeline Definitions | Yes |
|
|
12
|
-
| Pipeline mode | From tasks.json `pipeline_mode` | Yes |
|
|
13
|
-
|
|
14
|
-
1. Load user requirement and scope from tasks.json
|
|
15
|
-
2. Load pipeline stage definitions from SKILL.md Task Metadata Registry
|
|
16
|
-
3. Read `pipeline_mode` from tasks.json (patch / sprint / multi-sprint)
|
|
17
|
-
|
|
18
|
-
## Phase 3: Task Chain Creation
|
|
19
|
-
|
|
20
|
-
### Task Entry Template
|
|
21
|
-
|
|
22
|
-
Each task in tasks.json `tasks` object:
|
|
23
|
-
```json
|
|
24
|
-
{
|
|
25
|
-
"<TASK-ID>": {
|
|
26
|
-
"title": "<concise title>",
|
|
27
|
-
"description": "PURPOSE: <what this task achieves> | Success: <measurable completion criteria>\nTASK:\n - <step 1: specific action>\n - <step 2: specific action>\n - <step 3: specific action>\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: <artifact-1>, <artifact-2>\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: <deliverable path> + <quality criteria>\nCONSTRAINTS: <scope limits, focus areas>\n---\nInnerLoop: <true|false>",
|
|
28
|
-
"role": "<role-name>",
|
|
29
|
-
"prefix": "<PREFIX>",
|
|
30
|
-
"deps": ["<dependency-list>"],
|
|
31
|
-
"status": "pending",
|
|
32
|
-
"findings": "",
|
|
33
|
-
"error": ""
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Mode Router
|
|
39
|
-
|
|
40
|
-
| Mode | Action |
|
|
41
|
-
|------|--------|
|
|
42
|
-
| `patch` | Create DEV-001 + VERIFY-001 |
|
|
43
|
-
| `sprint` | Create DESIGN-001 + DEV-001 + VERIFY-001 + REVIEW-001 |
|
|
44
|
-
| `multi-sprint` | Create Sprint 1 chain, subsequent sprints created dynamically |
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
### Patch Pipeline
|
|
49
|
-
|
|
50
|
-
**DEV-001** (developer):
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"DEV-001": {
|
|
54
|
-
"title": "Implement fix",
|
|
55
|
-
"description": "PURPOSE: Implement fix | Success: Fix applied, syntax clean\nTASK:\n - Load target files and understand context\n - Apply fix changes\n - Validate syntax\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: Modified source files + <session>/code/dev-log.md | Syntax clean\nCONSTRAINTS: Minimal changes | Preserve existing behavior\n---\nInnerLoop: true",
|
|
56
|
-
"role": "developer",
|
|
57
|
-
"prefix": "DEV",
|
|
58
|
-
"deps": [],
|
|
59
|
-
"status": "pending",
|
|
60
|
-
"findings": "",
|
|
61
|
-
"error": ""
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**VERIFY-001** (tester):
|
|
67
|
-
```json
|
|
68
|
-
{
|
|
69
|
-
"VERIFY-001": {
|
|
70
|
-
"title": "Verify fix correctness",
|
|
71
|
-
"description": "PURPOSE: Verify fix correctness | Success: Tests pass, no regressions\nTASK:\n - Detect test framework\n - Run targeted tests for changed files\n - Run regression test suite\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: code/dev-log.md\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: <session>/verify/verify-001.json | Pass rate >= 95%\nCONSTRAINTS: Focus on changed files | Report any regressions\n---\nInnerLoop: false",
|
|
72
|
-
"role": "tester",
|
|
73
|
-
"prefix": "VERIFY",
|
|
74
|
-
"deps": ["DEV-001"],
|
|
75
|
-
"status": "pending",
|
|
76
|
-
"findings": "",
|
|
77
|
-
"error": ""
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
### Sprint Pipeline
|
|
85
|
-
|
|
86
|
-
**DESIGN-001** (architect):
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"DESIGN-001": {
|
|
90
|
-
"title": "Technical design and task breakdown",
|
|
91
|
-
"description": "PURPOSE: Technical design and task breakdown | Success: Design document + task breakdown ready\nTASK:\n - Explore codebase for patterns and dependencies\n - Create component design with integration points\n - Break down into implementable tasks with acceptance criteria\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: <session>/design/design-001.md + <session>/design/task-breakdown.json | Components defined, tasks actionable\nCONSTRAINTS: Focus on <task-scope> | Risk assessment required\n---\nInnerLoop: false",
|
|
92
|
-
"role": "architect",
|
|
93
|
-
"prefix": "DESIGN",
|
|
94
|
-
"deps": [],
|
|
95
|
-
"status": "pending",
|
|
96
|
-
"findings": "",
|
|
97
|
-
"error": ""
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**DEV-001** (developer):
|
|
103
|
-
```json
|
|
104
|
-
{
|
|
105
|
-
"DEV-001": {
|
|
106
|
-
"title": "Implement design",
|
|
107
|
-
"description": "PURPOSE: Implement design | Success: All design tasks implemented, syntax clean\nTASK:\n - Load design and task breakdown\n - Implement tasks in execution order\n - Validate syntax after changes\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: design/design-001.md, design/task-breakdown.json\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: Modified source files + <session>/code/dev-log.md | Syntax clean, all tasks done\nCONSTRAINTS: Follow design | Preserve existing behavior | Follow code conventions\n---\nInnerLoop: true",
|
|
108
|
-
"role": "developer",
|
|
109
|
-
"prefix": "DEV",
|
|
110
|
-
"deps": ["DESIGN-001"],
|
|
111
|
-
"status": "pending",
|
|
112
|
-
"findings": "",
|
|
113
|
-
"error": ""
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
**VERIFY-001** (tester, parallel with REVIEW-001):
|
|
119
|
-
```json
|
|
120
|
-
{
|
|
121
|
-
"VERIFY-001": {
|
|
122
|
-
"title": "Verify implementation",
|
|
123
|
-
"description": "PURPOSE: Verify implementation | Success: Tests pass, no regressions\nTASK:\n - Detect test framework\n - Run tests for changed files\n - Run regression test suite\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: code/dev-log.md\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: <session>/verify/verify-001.json | Pass rate >= 95%\nCONSTRAINTS: Focus on changed files | Report regressions\n---\nInnerLoop: false",
|
|
124
|
-
"role": "tester",
|
|
125
|
-
"prefix": "VERIFY",
|
|
126
|
-
"deps": ["DEV-001"],
|
|
127
|
-
"status": "pending",
|
|
128
|
-
"findings": "",
|
|
129
|
-
"error": ""
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**REVIEW-001** (reviewer, parallel with VERIFY-001):
|
|
135
|
-
```json
|
|
136
|
-
{
|
|
137
|
-
"REVIEW-001": {
|
|
138
|
-
"title": "Code review for correctness and quality",
|
|
139
|
-
"description": "PURPOSE: Code review for correctness and quality | Success: All dimensions reviewed, verdict issued\nTASK:\n - Load changed files and design document\n - Review across 4 dimensions: correctness, completeness, maintainability, security\n - Score quality (1-10) and issue verdict\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: design/design-001.md, code/dev-log.md\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: <session>/review/review-001.md | Per-dimension findings with severity\nCONSTRAINTS: Focus on implementation changes | Provide file:line references\n---\nInnerLoop: false",
|
|
140
|
-
"role": "reviewer",
|
|
141
|
-
"prefix": "REVIEW",
|
|
142
|
-
"deps": ["DEV-001"],
|
|
143
|
-
"status": "pending",
|
|
144
|
-
"findings": "",
|
|
145
|
-
"error": ""
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
### Multi-Sprint Pipeline
|
|
153
|
-
|
|
154
|
-
Sprint 1: DESIGN-001 -> DEV-001 -> DEV-002(incremental) -> VERIFY-001 -> DEV-fix -> REVIEW-001
|
|
155
|
-
|
|
156
|
-
Create Sprint 1 tasks using sprint templates above, plus:
|
|
157
|
-
|
|
158
|
-
**DEV-002** (developer, incremental):
|
|
159
|
-
```json
|
|
160
|
-
{
|
|
161
|
-
"DEV-002": {
|
|
162
|
-
"title": "Incremental implementation",
|
|
163
|
-
"description": "PURPOSE: Incremental implementation | Success: Remaining tasks implemented\nTASK:\n - Load remaining tasks from breakdown\n - Implement incrementally\n - Validate syntax\nCONTEXT:\n - Session: <session-folder>\n - Scope: <task-scope>\n - Upstream artifacts: design/task-breakdown.json, code/dev-log.md\n - Shared memory: <session>/.msg/meta.json\nEXPECTED: Modified source files + updated dev-log.md\nCONSTRAINTS: Incremental delivery | Follow existing patterns\n---\nInnerLoop: true",
|
|
164
|
-
"role": "developer",
|
|
165
|
-
"prefix": "DEV",
|
|
166
|
-
"deps": ["DEV-001"],
|
|
167
|
-
"status": "pending",
|
|
168
|
-
"findings": "",
|
|
169
|
-
"error": ""
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Subsequent sprints created dynamically after Sprint N completes.
|
|
175
|
-
|
|
176
|
-
## Phase 4: Validation
|
|
177
|
-
|
|
178
|
-
Verify task chain integrity:
|
|
179
|
-
|
|
180
|
-
| Check | Method | Expected |
|
|
181
|
-
|-------|--------|----------|
|
|
182
|
-
| Task count correct | tasks.json count | patch: 2, sprint: 4, multi: 5+ |
|
|
183
|
-
| Dependencies correct | Trace deps graph | Acyclic, correct ordering |
|
|
184
|
-
| No circular dependencies | Trace full graph | Acyclic |
|
|
185
|
-
| Structured descriptions | Each has PURPOSE/TASK/CONTEXT/EXPECTED | All present |
|
|
186
|
-
|
|
187
|
-
If validation fails, fix the specific task and re-validate.
|