claude-code-workflow 7.2.3 → 7.2.4
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/.claude/agents/team-worker.md +2 -2
- package/.claude/skills/team-arch-opt/SKILL.md +1 -1
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-arch-opt/specs/team-config.json +1 -1
- package/.claude/skills/team-brainstorm/SKILL.md +2 -2
- package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-designer/SKILL.md +2 -2
- package/.claude/skills/team-designer/phases/03-content-generation.md +2 -2
- package/.claude/skills/team-edict/SKILL.md +1 -1
- package/.claude/skills/team-edict/role-specs/xingbu.md +1 -1
- package/.claude/skills/team-edict/roles/coordinator/role.md +4 -4
- package/.claude/skills/team-frontend/SKILL.md +1 -1
- package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-frontend-debug/SKILL.md +1 -1
- package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +11 -11
- package/.claude/skills/team-issue/SKILL.md +2 -2
- package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-iterdev/SKILL.md +1 -1
- package/.claude/skills/team-iterdev/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-lifecycle-v4/SKILL.md +2 -2
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +2 -2
- package/.claude/skills/team-perf-opt/SKILL.md +1 -1
- package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-perf-opt/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-perf-opt/specs/team-config.json +1 -1
- package/.claude/skills/team-planex/SKILL.md +1 -1
- package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-quality-assurance/SKILL.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +3 -3
- package/.claude/skills/team-review/SKILL.md +1 -1
- package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +4 -4
- package/.claude/skills/team-roadmap-dev/SKILL.md +1 -1
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +4 -4
- package/.claude/skills/team-roadmap-dev/specs/pipelines.md +3 -3
- package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
- package/.claude/skills/team-tech-debt/SKILL.md +1 -1
- package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-testing/SKILL.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +7 -7
- package/.claude/skills/team-uidesign/SKILL.md +1 -1
- package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-ultra-analyze/SKILL.md +1 -1
- package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +5 -5
- package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-ux-improve/SKILL.md +1 -1
- package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +1 -1
- package/.claude/skills/team-ux-improve/roles/coordinator/role.md +2 -2
- package/.claude/skills/team-ux-improve/specs/pipelines.md +1 -1
- package/.claude/skills/team-ux-improve/specs/team-config.json +1 -1
- package/.codex/skills/team-arch-opt/SKILL.md +38 -0
- package/.codex/skills/team-arch-opt/instructions/agent-instruction.md +114 -114
- package/.codex/skills/team-brainstorm/SKILL.md +725 -687
- package/.codex/skills/team-coordinate/SKILL.md +38 -0
- package/.codex/skills/team-designer/SKILL.md +691 -653
- package/.codex/skills/team-designer/schemas/tasks-schema.md +180 -180
- package/.codex/skills/team-edict/SKILL.md +781 -742
- package/.codex/skills/team-edict/agents/aggregator.md +246 -246
- package/.codex/skills/team-edict/agents/qa-verifier.md +274 -274
- package/.codex/skills/team-edict/agents/shangshu-dispatcher.md +247 -247
- package/.codex/skills/team-edict/agents/zhongshu-planner.md +198 -198
- package/.codex/skills/team-edict/instructions/agent-instruction.md +177 -177
- package/.codex/skills/team-executor/SKILL.md +38 -0
- package/.codex/skills/team-frontend/SKILL.md +38 -0
- package/.codex/skills/team-frontend-debug/SKILL.md +38 -0
- package/.codex/skills/team-issue/SKILL.md +740 -702
- package/.codex/skills/team-iterdev/SKILL.md +826 -788
- package/.codex/skills/team-lifecycle/SKILL.md +38 -0
- package/.codex/skills/team-lifecycle/agents/analyst.md +6 -6
- package/.codex/skills/team-lifecycle/agents/discuss-agent.md +1 -1
- package/.codex/skills/team-lifecycle/agents/explore-agent.md +3 -3
- package/.codex/skills/team-lifecycle/agents/writer.md +3 -3
- package/.codex/skills/team-lifecycle/phases/01-requirement-clarification.md +1 -1
- package/.codex/skills/team-lifecycle/phases/02-team-initialization.md +1 -1
- package/.codex/skills/team-lifecycle/phases/03-task-chain-creation.md +1 -1
- package/.codex/skills/team-lifecycle/phases/04-pipeline-coordination.md +1 -1
- package/.codex/skills/team-lifecycle/phases/05-completion-report.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +775 -737
- package/.codex/skills/team-perf-opt/SKILL.md +38 -0
- package/.codex/skills/team-perf-opt/instructions/agent-instruction.md +122 -122
- package/.codex/skills/team-planex/SKILL.md +38 -0
- package/.codex/skills/team-planex-v2/SKILL.md +39 -1
- package/.codex/skills/team-quality-assurance/SKILL.md +38 -0
- package/.codex/skills/team-review/SKILL.md +38 -0
- package/.codex/skills/team-roadmap-dev/SKILL.md +38 -0
- package/.codex/skills/team-tech-debt/SKILL.md +38 -0
- package/.codex/skills/team-testing/SKILL.md +38 -0
- package/.codex/skills/team-uidesign/SKILL.md +38 -0
- package/.codex/skills/team-ultra-analyze/SKILL.md +787 -749
- package/.codex/skills/team-ux-improve/SKILL.md +38 -0
- package/ccw/dist/tools/smart-search.d.ts +23 -0
- package/ccw/dist/tools/smart-search.d.ts.map +1 -1
- package/ccw/dist/tools/smart-search.js +41 -10
- package/ccw/dist/tools/smart-search.js.map +1 -1
- package/codex-lens/src/codexlens/config.py +32 -0
- package/codex-lens/src/codexlens/storage/index_tree.py +101 -33
- package/package.json +1 -1
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
# Team Skill Designer -- CSV Schema
|
|
2
|
-
|
|
3
|
-
## Master CSV: tasks.csv
|
|
4
|
-
|
|
5
|
-
### Column Definitions
|
|
6
|
-
|
|
7
|
-
#### Input Columns (Set by Decomposer)
|
|
8
|
-
|
|
9
|
-
| Column | Type | Required | Description | Example |
|
|
10
|
-
|--------|------|----------|-------------|---------|
|
|
11
|
-
| `id` | string | Yes | Unique task identifier | `"SCAFFOLD-001"` |
|
|
12
|
-
| `title` | string | Yes | Short task title | `"Create directory structure"` |
|
|
13
|
-
| `description` | string | Yes | Detailed generation instructions (self-contained) | `"Create roles/, specs/, templates/ directories..."` |
|
|
14
|
-
| `role` | string | Yes | Generator role name | `"scaffolder"` |
|
|
15
|
-
| `file_target` | string | Yes | Target file/directory path relative to skill root | `"roles/coordinator/role.md"` |
|
|
16
|
-
| `gen_type` | enum | Yes | `directory`, `router`, `role-bundle`, `role-inline`, `spec`, `template`, `validation` | `"role-inline"` |
|
|
17
|
-
| `deps` | string | No | Semicolon-separated dependency task IDs | `"SCAFFOLD-001;SPEC-001"` |
|
|
18
|
-
| `context_from` | string | No | Semicolon-separated task IDs for context | `"SPEC-001"` |
|
|
19
|
-
| `exec_mode` | enum | Yes | Execution mechanism: `csv-wave` or `interactive` | `"csv-wave"` |
|
|
20
|
-
|
|
21
|
-
#### Computed Columns (Set by Wave Engine)
|
|
22
|
-
|
|
23
|
-
| Column | Type | Description | Example |
|
|
24
|
-
|--------|------|-------------|---------|
|
|
25
|
-
| `wave` | integer | Wave number (1-based, from topological sort) | `2` |
|
|
26
|
-
| `prev_context` | string | Aggregated findings from context_from tasks (per-wave CSV only) | `"[SCAFFOLD-001] Created directory structure at .codex/skills/..."` |
|
|
27
|
-
|
|
28
|
-
#### Output Columns (Set by Agent)
|
|
29
|
-
|
|
30
|
-
| Column | Type | Description | Example |
|
|
31
|
-
|--------|------|-------------|---------|
|
|
32
|
-
| `status` | enum | `pending` -> `completed` / `failed` / `skipped` | `"completed"` |
|
|
33
|
-
| `findings` | string | Key discoveries (max 500 chars) | `"Generated coordinator with 3 commands: analyze, dispatch, monitor"` |
|
|
34
|
-
| `files_produced` | string | Semicolon-separated paths of produced files | `"roles/coordinator/role.md;roles/coordinator/commands/analyze.md"` |
|
|
35
|
-
| `error` | string | Error message if failed | `""` |
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
### exec_mode Values
|
|
40
|
-
|
|
41
|
-
| Value | Mechanism | Description |
|
|
42
|
-
|-------|-----------|-------------|
|
|
43
|
-
| `csv-wave` | `spawn_agents_on_csv` | One-shot batch execution within wave |
|
|
44
|
-
| `interactive` | `spawn_agent`/`wait`/`send_input`/`close_agent` | Multi-round individual execution |
|
|
45
|
-
|
|
46
|
-
Interactive tasks appear in master CSV for dependency tracking but are NOT included in wave-{N}.csv files.
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
### Generator Roles
|
|
51
|
-
|
|
52
|
-
| Role | gen_type Values | Description |
|
|
53
|
-
|------|-----------------|-------------|
|
|
54
|
-
| `scaffolder` | `directory` | Creates directory structures |
|
|
55
|
-
| `router-writer` | `router` | Generates SKILL.md orchestrator files |
|
|
56
|
-
| `role-writer` | `role-bundle`, `role-inline` | Generates role.md files (+ optional commands/) |
|
|
57
|
-
| `spec-writer` | `spec` | Generates specs/*.md files |
|
|
58
|
-
| `template-writer` | `template` | Generates templates/*.md files |
|
|
59
|
-
| `validator` | `validation` | Validates generated skill package |
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
### gen_type Values
|
|
64
|
-
|
|
65
|
-
| gen_type | Target | Description |
|
|
66
|
-
|----------|--------|-------------|
|
|
67
|
-
| `directory` | Directory path | Create directory structure with subdirectories |
|
|
68
|
-
| `router` | SKILL.md | Generate main orchestrator SKILL.md with frontmatter, role registry, router |
|
|
69
|
-
| `role-bundle` | Directory path | Generate role.md + commands/ folder with multiple command files |
|
|
70
|
-
| `role-inline` | Single .md file | Generate single role.md with inline Phase 2-4 logic |
|
|
71
|
-
| `spec` | Single .md file | Generate spec file (pipelines, quality-gates, etc.) |
|
|
72
|
-
| `template` | Single .md file | Generate document template file |
|
|
73
|
-
| `validation` | Report | Validate complete skill package structure and references |
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
### Example Data
|
|
78
|
-
|
|
79
|
-
```csv
|
|
80
|
-
id,title,description,role,file_target,gen_type,deps,context_from,exec_mode,wave,status,findings,files_produced,error
|
|
81
|
-
"SCAFFOLD-001","Create directory structure","Create complete directory structure for team-code-review skill:\n-
|
|
82
|
-
"ROUTER-001","Generate SKILL.md","Generate
|
|
83
|
-
"SPEC-001","Generate pipelines spec","Generate specs/pipelines.md with:\n- Pipeline definitions from teamConfig\n- Task registry with PREFIX-NNN format\n- Conditional routing rules\n- Dynamic specialist injection\nRoles: analyst(ANALYSIS-*), reviewer(REVIEW-*)","spec-writer","specs/pipelines.md","spec","SCAFFOLD-001","SCAFFOLD-001","csv-wave","2","pending","","",""
|
|
84
|
-
"ROLE-001","Generate coordinator","Generate roles/coordinator/role.md with entry router and commands/analyze.md, commands/dispatch.md, commands/monitor.md. Coordinator orchestrates the analysis pipeline","role-writer","roles/coordinator/","role-bundle","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
85
|
-
"ROLE-002","Generate analyst role","Generate roles/analyst/role.md with Phase 2 (context loading), Phase 3 (analysis execution), Phase 4 (output). Prefix: ANALYSIS, inner_loop: false","role-writer","roles/analyst/role.md","role-inline","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
86
|
-
"ROLE-003","Generate reviewer role","Generate roles/reviewer/role.md with Phase 2 (load artifacts), Phase 3 (review execution), Phase 4 (report). Prefix: REVIEW, inner_loop: false","role-writer","roles/reviewer/role.md","role-inline","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
### Column Lifecycle
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
Decomposer (Phase 1) Wave Engine (Phase 2) Agent (Execution)
|
|
95
|
-
--------------------- -------------------- -----------------
|
|
96
|
-
id ----------> id ----------> id
|
|
97
|
-
title ----------> title ----------> (reads)
|
|
98
|
-
description ----------> description ----------> (reads)
|
|
99
|
-
role ----------> role ----------> (reads)
|
|
100
|
-
file_target ----------> file_target ----------> (reads)
|
|
101
|
-
gen_type ----------> gen_type ----------> (reads)
|
|
102
|
-
deps ----------> deps ----------> (reads)
|
|
103
|
-
context_from----------> context_from----------> (reads)
|
|
104
|
-
exec_mode ----------> exec_mode ----------> (reads)
|
|
105
|
-
wave ----------> (reads)
|
|
106
|
-
prev_context ----------> (reads)
|
|
107
|
-
status
|
|
108
|
-
findings
|
|
109
|
-
files_produced
|
|
110
|
-
error
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Output Schema (JSON)
|
|
116
|
-
|
|
117
|
-
Agent output via `report_agent_job_result` (csv-wave tasks):
|
|
118
|
-
|
|
119
|
-
```json
|
|
120
|
-
{
|
|
121
|
-
"id": "ROLE-001",
|
|
122
|
-
"status": "completed",
|
|
123
|
-
"findings": "Generated coordinator role with entry router, 3 commands (analyze, dispatch, monitor), beat model in monitor.md only",
|
|
124
|
-
"files_produced": "roles/coordinator/role.md;roles/coordinator/commands/analyze.md;roles/coordinator/commands/dispatch.md;roles/coordinator/commands/monitor.md",
|
|
125
|
-
"error": ""
|
|
126
|
-
}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Interactive tasks output via structured text or JSON written to `interactive/{id}-result.json`.
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Discovery Types
|
|
134
|
-
|
|
135
|
-
| Type | Dedup Key | Data Schema | Description |
|
|
136
|
-
|------|-----------|-------------|-------------|
|
|
137
|
-
| `dir_created` | `data.path` | `{path, description}` | Directory structure created |
|
|
138
|
-
| `file_generated` | `data.file` | `{file, gen_type, sections}` | File generated with sections |
|
|
139
|
-
| `pattern_found` | `data.pattern_name` | `{pattern_name, description}` | Design pattern from golden sample |
|
|
140
|
-
| `config_decision` | `data.decision` | `{decision, rationale, impact}` | Config decision made |
|
|
141
|
-
| `validation_result` | `data.check` | `{check, passed, message}` | Validation check result |
|
|
142
|
-
| `reference_found` | `data.source+data.target` | `{source, target, type}` | Cross-reference between files |
|
|
143
|
-
|
|
144
|
-
### Discovery NDJSON Format
|
|
145
|
-
|
|
146
|
-
```jsonl
|
|
147
|
-
{"ts":"2026-03-08T10:00:00Z","worker":"SCAFFOLD-001","type":"dir_created","data":{"path":"
|
|
148
|
-
{"ts":"2026-03-08T10:05:00Z","worker":"ROLE-001","type":"file_generated","data":{"file":"roles/coordinator/role.md","gen_type":"role-bundle","sections":["entry-router","phase-0","phase-1","phase-2","phase-3"]}}
|
|
149
|
-
{"ts":"2026-03-08T10:10:00Z","worker":"SPEC-001","type":"config_decision","data":{"decision":"full-lifecycle pipeline","rationale":"Both analyst and reviewer roles present","impact":"4-tier dependency graph"}}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
> Both csv-wave and interactive agents read/write the same discoveries.ndjson file.
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## Cross-Mechanism Context Flow
|
|
157
|
-
|
|
158
|
-
| Source | Target | Mechanism |
|
|
159
|
-
|--------|--------|-----------|
|
|
160
|
-
| CSV task findings | Interactive task | Injected via spawn message or send_input |
|
|
161
|
-
| Interactive task result | CSV task prev_context | Read from interactive/{id}-result.json |
|
|
162
|
-
| Any agent discovery | Any agent | Shared via discoveries.ndjson |
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## Validation Rules
|
|
167
|
-
|
|
168
|
-
| Rule | Check | Error |
|
|
169
|
-
|------|-------|-------|
|
|
170
|
-
| Unique IDs | No duplicate `id` values | "Duplicate task ID: {id}" |
|
|
171
|
-
| Valid deps | All dep IDs exist in tasks | "Unknown dependency: {dep_id}" |
|
|
172
|
-
| No self-deps | Task cannot depend on itself | "Self-dependency: {id}" |
|
|
173
|
-
| No circular deps | Topological sort completes | "Circular dependency detected involving: {ids}" |
|
|
174
|
-
| context_from valid | All context IDs exist and in earlier waves | "Invalid context_from: {id}" |
|
|
175
|
-
| exec_mode valid | Value is `csv-wave` or `interactive` | "Invalid exec_mode: {value}" |
|
|
176
|
-
| Description non-empty | Every task has description | "Empty description for task: {id}" |
|
|
177
|
-
| Status enum | status in {pending, completed, failed, skipped} | "Invalid status: {status}" |
|
|
178
|
-
| gen_type valid | Value in {directory, router, role-bundle, role-inline, spec, template, validation} | "Invalid gen_type: {value}" |
|
|
179
|
-
| file_target valid | Path is relative and uses forward slashes | "Invalid file_target: {path}" |
|
|
180
|
-
| Cross-mechanism deps | Interactive to CSV deps resolve correctly | "Cross-mechanism dependency unresolvable: {id}" |
|
|
1
|
+
# Team Skill Designer -- CSV Schema
|
|
2
|
+
|
|
3
|
+
## Master CSV: tasks.csv
|
|
4
|
+
|
|
5
|
+
### Column Definitions
|
|
6
|
+
|
|
7
|
+
#### Input Columns (Set by Decomposer)
|
|
8
|
+
|
|
9
|
+
| Column | Type | Required | Description | Example |
|
|
10
|
+
|--------|------|----------|-------------|---------|
|
|
11
|
+
| `id` | string | Yes | Unique task identifier | `"SCAFFOLD-001"` |
|
|
12
|
+
| `title` | string | Yes | Short task title | `"Create directory structure"` |
|
|
13
|
+
| `description` | string | Yes | Detailed generation instructions (self-contained) | `"Create roles/, specs/, templates/ directories..."` |
|
|
14
|
+
| `role` | string | Yes | Generator role name | `"scaffolder"` |
|
|
15
|
+
| `file_target` | string | Yes | Target file/directory path relative to skill root | `"roles/coordinator/role.md"` |
|
|
16
|
+
| `gen_type` | enum | Yes | `directory`, `router`, `role-bundle`, `role-inline`, `spec`, `template`, `validation` | `"role-inline"` |
|
|
17
|
+
| `deps` | string | No | Semicolon-separated dependency task IDs | `"SCAFFOLD-001;SPEC-001"` |
|
|
18
|
+
| `context_from` | string | No | Semicolon-separated task IDs for context | `"SPEC-001"` |
|
|
19
|
+
| `exec_mode` | enum | Yes | Execution mechanism: `csv-wave` or `interactive` | `"csv-wave"` |
|
|
20
|
+
|
|
21
|
+
#### Computed Columns (Set by Wave Engine)
|
|
22
|
+
|
|
23
|
+
| Column | Type | Description | Example |
|
|
24
|
+
|--------|------|-------------|---------|
|
|
25
|
+
| `wave` | integer | Wave number (1-based, from topological sort) | `2` |
|
|
26
|
+
| `prev_context` | string | Aggregated findings from context_from tasks (per-wave CSV only) | `"[SCAFFOLD-001] Created directory structure at .codex/skills/..."` |
|
|
27
|
+
|
|
28
|
+
#### Output Columns (Set by Agent)
|
|
29
|
+
|
|
30
|
+
| Column | Type | Description | Example |
|
|
31
|
+
|--------|------|-------------|---------|
|
|
32
|
+
| `status` | enum | `pending` -> `completed` / `failed` / `skipped` | `"completed"` |
|
|
33
|
+
| `findings` | string | Key discoveries (max 500 chars) | `"Generated coordinator with 3 commands: analyze, dispatch, monitor"` |
|
|
34
|
+
| `files_produced` | string | Semicolon-separated paths of produced files | `"roles/coordinator/role.md;roles/coordinator/commands/analyze.md"` |
|
|
35
|
+
| `error` | string | Error message if failed | `""` |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### exec_mode Values
|
|
40
|
+
|
|
41
|
+
| Value | Mechanism | Description |
|
|
42
|
+
|-------|-----------|-------------|
|
|
43
|
+
| `csv-wave` | `spawn_agents_on_csv` | One-shot batch execution within wave |
|
|
44
|
+
| `interactive` | `spawn_agent`/`wait`/`send_input`/`close_agent` | Multi-round individual execution |
|
|
45
|
+
|
|
46
|
+
Interactive tasks appear in master CSV for dependency tracking but are NOT included in wave-{N}.csv files.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Generator Roles
|
|
51
|
+
|
|
52
|
+
| Role | gen_type Values | Description |
|
|
53
|
+
|------|-----------------|-------------|
|
|
54
|
+
| `scaffolder` | `directory` | Creates directory structures |
|
|
55
|
+
| `router-writer` | `router` | Generates SKILL.md orchestrator files |
|
|
56
|
+
| `role-writer` | `role-bundle`, `role-inline` | Generates role.md files (+ optional commands/) |
|
|
57
|
+
| `spec-writer` | `spec` | Generates specs/*.md files |
|
|
58
|
+
| `template-writer` | `template` | Generates templates/*.md files |
|
|
59
|
+
| `validator` | `validation` | Validates generated skill package |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### gen_type Values
|
|
64
|
+
|
|
65
|
+
| gen_type | Target | Description |
|
|
66
|
+
|----------|--------|-------------|
|
|
67
|
+
| `directory` | Directory path | Create directory structure with subdirectories |
|
|
68
|
+
| `router` | SKILL.md | Generate main orchestrator SKILL.md with frontmatter, role registry, router |
|
|
69
|
+
| `role-bundle` | Directory path | Generate role.md + commands/ folder with multiple command files |
|
|
70
|
+
| `role-inline` | Single .md file | Generate single role.md with inline Phase 2-4 logic |
|
|
71
|
+
| `spec` | Single .md file | Generate spec file (pipelines, quality-gates, etc.) |
|
|
72
|
+
| `template` | Single .md file | Generate document template file |
|
|
73
|
+
| `validation` | Report | Validate complete skill package structure and references |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
### Example Data
|
|
78
|
+
|
|
79
|
+
```csv
|
|
80
|
+
id,title,description,role,file_target,gen_type,deps,context_from,exec_mode,wave,status,findings,files_produced,error
|
|
81
|
+
"SCAFFOLD-001","Create directory structure","Create complete directory structure for team-code-review skill:\n- ~ or <project>/.codex/skills/team-code-review/\n- roles/coordinator/ + commands/\n- roles/analyst/\n- roles/reviewer/\n- specs/\n- templates/","scaffolder","skill-dir","directory","","","csv-wave","1","pending","","",""
|
|
82
|
+
"ROUTER-001","Generate SKILL.md","Generate ~ or <project>/.codex/skills/team-code-review/SKILL.md with:\n- Frontmatter (name, description, allowed-tools)\n- Architecture diagram\n- Role registry table\n- CSV schema reference\n- Session structure\n- Wave execution engine\nUse teamConfig.json for role list and pipeline definitions","router-writer","SKILL.md","router","SCAFFOLD-001","SCAFFOLD-001","csv-wave","2","pending","","",""
|
|
83
|
+
"SPEC-001","Generate pipelines spec","Generate specs/pipelines.md with:\n- Pipeline definitions from teamConfig\n- Task registry with PREFIX-NNN format\n- Conditional routing rules\n- Dynamic specialist injection\nRoles: analyst(ANALYSIS-*), reviewer(REVIEW-*)","spec-writer","specs/pipelines.md","spec","SCAFFOLD-001","SCAFFOLD-001","csv-wave","2","pending","","",""
|
|
84
|
+
"ROLE-001","Generate coordinator","Generate roles/coordinator/role.md with entry router and commands/analyze.md, commands/dispatch.md, commands/monitor.md. Coordinator orchestrates the analysis pipeline","role-writer","roles/coordinator/","role-bundle","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
85
|
+
"ROLE-002","Generate analyst role","Generate roles/analyst/role.md with Phase 2 (context loading), Phase 3 (analysis execution), Phase 4 (output). Prefix: ANALYSIS, inner_loop: false","role-writer","roles/analyst/role.md","role-inline","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
86
|
+
"ROLE-003","Generate reviewer role","Generate roles/reviewer/role.md with Phase 2 (load artifacts), Phase 3 (review execution), Phase 4 (report). Prefix: REVIEW, inner_loop: false","role-writer","roles/reviewer/role.md","role-inline","SCAFFOLD-001;SPEC-001","SPEC-001","csv-wave","3","pending","","",""
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
### Column Lifecycle
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
Decomposer (Phase 1) Wave Engine (Phase 2) Agent (Execution)
|
|
95
|
+
--------------------- -------------------- -----------------
|
|
96
|
+
id ----------> id ----------> id
|
|
97
|
+
title ----------> title ----------> (reads)
|
|
98
|
+
description ----------> description ----------> (reads)
|
|
99
|
+
role ----------> role ----------> (reads)
|
|
100
|
+
file_target ----------> file_target ----------> (reads)
|
|
101
|
+
gen_type ----------> gen_type ----------> (reads)
|
|
102
|
+
deps ----------> deps ----------> (reads)
|
|
103
|
+
context_from----------> context_from----------> (reads)
|
|
104
|
+
exec_mode ----------> exec_mode ----------> (reads)
|
|
105
|
+
wave ----------> (reads)
|
|
106
|
+
prev_context ----------> (reads)
|
|
107
|
+
status
|
|
108
|
+
findings
|
|
109
|
+
files_produced
|
|
110
|
+
error
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Output Schema (JSON)
|
|
116
|
+
|
|
117
|
+
Agent output via `report_agent_job_result` (csv-wave tasks):
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"id": "ROLE-001",
|
|
122
|
+
"status": "completed",
|
|
123
|
+
"findings": "Generated coordinator role with entry router, 3 commands (analyze, dispatch, monitor), beat model in monitor.md only",
|
|
124
|
+
"files_produced": "roles/coordinator/role.md;roles/coordinator/commands/analyze.md;roles/coordinator/commands/dispatch.md;roles/coordinator/commands/monitor.md",
|
|
125
|
+
"error": ""
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Interactive tasks output via structured text or JSON written to `interactive/{id}-result.json`.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Discovery Types
|
|
134
|
+
|
|
135
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
136
|
+
|------|-----------|-------------|-------------|
|
|
137
|
+
| `dir_created` | `data.path` | `{path, description}` | Directory structure created |
|
|
138
|
+
| `file_generated` | `data.file` | `{file, gen_type, sections}` | File generated with sections |
|
|
139
|
+
| `pattern_found` | `data.pattern_name` | `{pattern_name, description}` | Design pattern from golden sample |
|
|
140
|
+
| `config_decision` | `data.decision` | `{decision, rationale, impact}` | Config decision made |
|
|
141
|
+
| `validation_result` | `data.check` | `{check, passed, message}` | Validation check result |
|
|
142
|
+
| `reference_found` | `data.source+data.target` | `{source, target, type}` | Cross-reference between files |
|
|
143
|
+
|
|
144
|
+
### Discovery NDJSON Format
|
|
145
|
+
|
|
146
|
+
```jsonl
|
|
147
|
+
{"ts":"2026-03-08T10:00:00Z","worker":"SCAFFOLD-001","type":"dir_created","data":{"path":"~ or <project>/.codex/skills/team-code-review/roles/","description":"Created roles directory with coordinator, analyst, reviewer subdirs"}}
|
|
148
|
+
{"ts":"2026-03-08T10:05:00Z","worker":"ROLE-001","type":"file_generated","data":{"file":"roles/coordinator/role.md","gen_type":"role-bundle","sections":["entry-router","phase-0","phase-1","phase-2","phase-3"]}}
|
|
149
|
+
{"ts":"2026-03-08T10:10:00Z","worker":"SPEC-001","type":"config_decision","data":{"decision":"full-lifecycle pipeline","rationale":"Both analyst and reviewer roles present","impact":"4-tier dependency graph"}}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
> Both csv-wave and interactive agents read/write the same discoveries.ndjson file.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Cross-Mechanism Context Flow
|
|
157
|
+
|
|
158
|
+
| Source | Target | Mechanism |
|
|
159
|
+
|--------|--------|-----------|
|
|
160
|
+
| CSV task findings | Interactive task | Injected via spawn message or send_input |
|
|
161
|
+
| Interactive task result | CSV task prev_context | Read from interactive/{id}-result.json |
|
|
162
|
+
| Any agent discovery | Any agent | Shared via discoveries.ndjson |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Validation Rules
|
|
167
|
+
|
|
168
|
+
| Rule | Check | Error |
|
|
169
|
+
|------|-------|-------|
|
|
170
|
+
| Unique IDs | No duplicate `id` values | "Duplicate task ID: {id}" |
|
|
171
|
+
| Valid deps | All dep IDs exist in tasks | "Unknown dependency: {dep_id}" |
|
|
172
|
+
| No self-deps | Task cannot depend on itself | "Self-dependency: {id}" |
|
|
173
|
+
| No circular deps | Topological sort completes | "Circular dependency detected involving: {ids}" |
|
|
174
|
+
| context_from valid | All context IDs exist and in earlier waves | "Invalid context_from: {id}" |
|
|
175
|
+
| exec_mode valid | Value is `csv-wave` or `interactive` | "Invalid exec_mode: {value}" |
|
|
176
|
+
| Description non-empty | Every task has description | "Empty description for task: {id}" |
|
|
177
|
+
| Status enum | status in {pending, completed, failed, skipped} | "Invalid status: {status}" |
|
|
178
|
+
| gen_type valid | Value in {directory, router, role-bundle, role-inline, spec, template, validation} | "Invalid gen_type: {value}" |
|
|
179
|
+
| file_target valid | Path is relative and uses forward slashes | "Invalid file_target: {path}" |
|
|
180
|
+
| Cross-mechanism deps | Interactive to CSV deps resolve correctly | "Cross-mechanism dependency unresolvable: {id}" |
|