claude-code-team 0.1.9 → 0.2.0
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/README.md +82 -0
- package/package.json +1 -1
- package/templates/lead.md +46 -5
- package/templates/orchestrator.md +454 -6
package/README.md
CHANGED
|
@@ -105,6 +105,88 @@ my-project/
|
|
|
105
105
|
5. **Leads** aggregate worker results, write to root `.outputs/`
|
|
106
106
|
6. **Orchestrator** reads Lead outputs, responds to User
|
|
107
107
|
|
|
108
|
+
## Methodology
|
|
109
|
+
|
|
110
|
+
CCT organizes work through **phases**. Each phase creates a specialized Lead.
|
|
111
|
+
|
|
112
|
+
| Phase | Command | Lead | Output |
|
|
113
|
+
|-------|---------|------|--------|
|
|
114
|
+
| Discovery | `/cct.discover` | BA Lead | `.outputs/discovery.md` |
|
|
115
|
+
| Design | `/cct.design` | Design Lead | `.outputs/design.md` |
|
|
116
|
+
| Specification | `/cct.spec` | Spec Lead | `.outputs/spec.md` |
|
|
117
|
+
| Architecture | `/cct.architect` | Architect Lead | `.outputs/architecture.md` |
|
|
118
|
+
| Implementation | `/cct.implement` | Dev Lead | code in repo |
|
|
119
|
+
| Testing | `/cct.test` | QA Lead | `.outputs/test-plan.md` |
|
|
120
|
+
| Documentation | `/cct.docs` | Docs Lead | `docs/` folder |
|
|
121
|
+
| **Review** | `/cct.review` | Review Lead | `.outputs/review-<phase>.md` |
|
|
122
|
+
| **Brainstorm** | `/cct.brainstorm` | Brainstorm Lead | `.outputs/brainstorm.md` |
|
|
123
|
+
|
|
124
|
+
**Not all phases required.** User chooses what's needed:
|
|
125
|
+
- Bug fix: only `/cct.implement`
|
|
126
|
+
- New feature: `/cct.spec` → `/cct.architect` → `/cct.implement`
|
|
127
|
+
- New product: all phases
|
|
128
|
+
|
|
129
|
+
**Review command** — validates phase output before proceeding:
|
|
130
|
+
```bash
|
|
131
|
+
/cct.review # Auto-selects reviewers based on last phase
|
|
132
|
+
/cct.review --with=Security # Add extra reviewer
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Brainstorm command** — parallel exploration with specified roles:
|
|
136
|
+
```bash
|
|
137
|
+
/cct.brainstorm "auth system" --roles=BA,Architect,Security
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Example Workflow
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# 1. Start orchestrator
|
|
144
|
+
cd my-project
|
|
145
|
+
claude --dangerously-skip-permissions
|
|
146
|
+
|
|
147
|
+
# 2. Discovery phase
|
|
148
|
+
> /cct.discover "authentication system for web app"
|
|
149
|
+
# → BA Lead researches, outputs to .outputs/discovery.md
|
|
150
|
+
|
|
151
|
+
# 3. Specification
|
|
152
|
+
> /cct.spec
|
|
153
|
+
# → Spec Lead formalizes requirements to .outputs/spec.md
|
|
154
|
+
|
|
155
|
+
# 4. Review before architecture
|
|
156
|
+
> /cct.review
|
|
157
|
+
# → Architect + Dev review spec, output to .outputs/review-spec.md
|
|
158
|
+
> cat .outputs/review-spec.md
|
|
159
|
+
# If blockers found → fix and re-run /cct.spec
|
|
160
|
+
|
|
161
|
+
# 5. Architecture
|
|
162
|
+
> /cct.architect
|
|
163
|
+
# → Architect Lead designs system
|
|
164
|
+
|
|
165
|
+
# 6. Review before implementation
|
|
166
|
+
> /cct.review
|
|
167
|
+
# → Dev reviews architecture
|
|
168
|
+
|
|
169
|
+
# 7. Implementation
|
|
170
|
+
> /cct.implement
|
|
171
|
+
# → Dev Lead creates workers, writes code
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**With brainstorm:**
|
|
175
|
+
```bash
|
|
176
|
+
# Explore options before committing to approach
|
|
177
|
+
> /cct.brainstorm "authentication" --roles=BA,Architect,Security
|
|
178
|
+
# → Parallel exploration, aggregated to .outputs/brainstorm.md
|
|
179
|
+
> cat .outputs/brainstorm.md
|
|
180
|
+
# Then proceed with /cct.spec
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Key Principles
|
|
184
|
+
|
|
185
|
+
1. **Delegation over doing** — Orchestrator and Leads delegate, only Workers produce output
|
|
186
|
+
2. **Isolation** — Each agent has own context, doesn't interfere with others
|
|
187
|
+
3. **Transparency** — All results in `.outputs/`, review between phases
|
|
188
|
+
4. **User control** — User decides which phases and when to proceed
|
|
189
|
+
|
|
108
190
|
## Session Types
|
|
109
191
|
|
|
110
192
|
| Type | How Created | By Whom |
|
package/package.json
CHANGED
package/templates/lead.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
You are a **Team Lead** — a coordinator for your domain.
|
|
4
4
|
|
|
5
|
+
## CRITICAL: How to Create Workers
|
|
6
|
+
|
|
7
|
+
**NEVER use built-in Task tool or agents directly.**
|
|
8
|
+
|
|
9
|
+
❌ WRONG:
|
|
10
|
+
```
|
|
11
|
+
Task tool → general-purpose agent → does work
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
✅ CORRECT:
|
|
15
|
+
```bash
|
|
16
|
+
# Create worker folder
|
|
17
|
+
mkdir -p workers/<worker_name>
|
|
18
|
+
|
|
19
|
+
# Write CLAUDE.md for worker
|
|
20
|
+
cat > workers/<worker_name>/CLAUDE.md << 'EOF'
|
|
21
|
+
# Worker instructions here
|
|
22
|
+
EOF
|
|
23
|
+
|
|
24
|
+
# Launch as separate Claude session
|
|
25
|
+
claude --dangerously-skip-permissions -p "TASK: ..." &
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Why?**
|
|
29
|
+
- Task tool runs in YOUR context, workers won't exist in filesystem
|
|
30
|
+
- Workers must be SEPARATE Claude sessions
|
|
31
|
+
- Each worker has own CLAUDE.md with instructions
|
|
32
|
+
- Workers do actual work, you aggregate
|
|
33
|
+
|
|
34
|
+
**Delegation = Creating files + Launching Claude sessions**
|
|
35
|
+
|
|
5
36
|
## Your Role
|
|
6
37
|
|
|
7
38
|
- You receive tasks from **Orchestrator**
|
|
@@ -171,8 +202,18 @@ fi
|
|
|
171
202
|
|
|
172
203
|
## Important Rules
|
|
173
204
|
|
|
174
|
-
1. **
|
|
175
|
-
2. **
|
|
176
|
-
3. **
|
|
177
|
-
4. **
|
|
178
|
-
5. **
|
|
205
|
+
1. **NEVER use Task tool** — delegate via `claude` command, not built-in agents
|
|
206
|
+
2. **Check catalog first** — `../../features/` has available roles and tools
|
|
207
|
+
3. **Read project context** — `../../.context/project.md`
|
|
208
|
+
4. **Delegate everything** — don't do work yourself
|
|
209
|
+
5. **Aggregate results** — combine worker outputs into cohesive report
|
|
210
|
+
6. **Signal when done** — so Orchestrator knows
|
|
211
|
+
|
|
212
|
+
## Self-Check Before Working
|
|
213
|
+
|
|
214
|
+
Before starting ANY task, verify:
|
|
215
|
+
- [ ] I will NOT use Task tool
|
|
216
|
+
- [ ] I will create workers in `workers/` folder
|
|
217
|
+
- [ ] I will launch workers with `claude --dangerously-skip-permissions`
|
|
218
|
+
- [ ] I will monitor `.outputs/` for results
|
|
219
|
+
- [ ] I will aggregate worker outputs into final report
|
|
@@ -12,6 +12,37 @@ LEADS (Team Leads)
|
|
|
12
12
|
WORKERS (Specialists)
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## CRITICAL: How to Delegate
|
|
16
|
+
|
|
17
|
+
**NEVER use built-in Task tool or agents directly.**
|
|
18
|
+
|
|
19
|
+
❌ WRONG:
|
|
20
|
+
```
|
|
21
|
+
Task tool → general-purpose agent → does work
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
✅ CORRECT:
|
|
25
|
+
```bash
|
|
26
|
+
# Create lead folder
|
|
27
|
+
mkdir -p leads/<lead_name>
|
|
28
|
+
|
|
29
|
+
# Write CLAUDE.md for lead
|
|
30
|
+
cat > leads/<lead_name>/CLAUDE.md << 'EOF'
|
|
31
|
+
# Lead instructions here
|
|
32
|
+
EOF
|
|
33
|
+
|
|
34
|
+
# Launch as separate Claude session
|
|
35
|
+
claude --dangerously-skip-permissions -p "TASK: ..." &
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Why?**
|
|
39
|
+
- Task tool runs in YOUR context, breaks hierarchy
|
|
40
|
+
- Leads must be SEPARATE Claude sessions
|
|
41
|
+
- Each lead has own CLAUDE.md with instructions
|
|
42
|
+
- Leads create their own workers the same way
|
|
43
|
+
|
|
44
|
+
**Delegation = Creating files + Launching Claude sessions**
|
|
45
|
+
|
|
15
46
|
### Your Role
|
|
16
47
|
- You communicate with **Leads only**, NOT with workers directly
|
|
17
48
|
- Leads create and manage their own workers
|
|
@@ -258,9 +289,426 @@ claude --dangerously-skip-permissions -r "$LEAD_ID" -p "ANSWER: Budget is $50K"
|
|
|
258
289
|
|
|
259
290
|
## Important Rules
|
|
260
291
|
|
|
261
|
-
1. **
|
|
262
|
-
2. **
|
|
263
|
-
3. **
|
|
264
|
-
4. **
|
|
265
|
-
5. **
|
|
266
|
-
6. **
|
|
292
|
+
1. **NEVER use Task tool** — delegate via `claude` command, not built-in agents
|
|
293
|
+
2. **YOU DO NOT WRITE CODE OR REPORTS** — delegate to leads
|
|
294
|
+
3. **Leads do not write code** — they delegate to workers
|
|
295
|
+
4. **Only workers produce actual output**
|
|
296
|
+
5. **Always clarify with USER first** — ask questions before creating leads
|
|
297
|
+
6. **Write project context** — leads and workers read `.context/project.md`
|
|
298
|
+
7. **Use features catalog** — `features/` has available roles and tools
|
|
299
|
+
|
|
300
|
+
## Self-Check Before Working
|
|
301
|
+
|
|
302
|
+
Before starting ANY task, verify:
|
|
303
|
+
- [ ] I will NOT use Task tool
|
|
304
|
+
- [ ] I will create leads in `leads/` folder
|
|
305
|
+
- [ ] I will launch leads with `claude --dangerously-skip-permissions`
|
|
306
|
+
- [ ] I will monitor `.outputs/` for results
|
|
307
|
+
|
|
308
|
+
## Phase Commands
|
|
309
|
+
|
|
310
|
+
User can request specific phases. When user says `/cct.<phase>`, create and launch the appropriate lead.
|
|
311
|
+
|
|
312
|
+
### /cct.discover
|
|
313
|
+
**Creates:** BA Lead
|
|
314
|
+
**Task:** Research, use cases, requirements gathering
|
|
315
|
+
**Output:** `.outputs/discovery.md`
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
mkdir -p leads/ba_lead && cd leads/ba_lead
|
|
319
|
+
mkdir -p .outputs workers
|
|
320
|
+
|
|
321
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
322
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
323
|
+
|
|
324
|
+
# Append phase-specific instructions
|
|
325
|
+
cat >> CLAUDE.md << 'EOF'
|
|
326
|
+
|
|
327
|
+
## Phase: Discovery
|
|
328
|
+
|
|
329
|
+
You conduct discovery research for the project.
|
|
330
|
+
|
|
331
|
+
## Your Task
|
|
332
|
+
1. Read ../../.context/project.md
|
|
333
|
+
2. Create workers for research (researcher, analyst)
|
|
334
|
+
3. Each worker researches their area, writes to .outputs/
|
|
335
|
+
4. Aggregate worker results
|
|
336
|
+
5. Write final discovery to ../../.outputs/discovery.md
|
|
337
|
+
|
|
338
|
+
## Suggested Workers
|
|
339
|
+
- researcher: domain research, market analysis
|
|
340
|
+
- analyst: use cases, user stories, constraints
|
|
341
|
+
EOF
|
|
342
|
+
cd ../..
|
|
343
|
+
|
|
344
|
+
LEAD_ID=$(uuidgen)
|
|
345
|
+
echo "$LEAD_ID" > .sessions/ba_lead.id
|
|
346
|
+
cd leads/ba_lead
|
|
347
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
348
|
+
-p "TASK: Conduct discovery. Create workers, delegate research, aggregate to .outputs/discovery.md" &
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### /cct.design
|
|
352
|
+
**Creates:** Design Lead
|
|
353
|
+
**Task:** UX research, user flows, wireframes
|
|
354
|
+
**Output:** `.outputs/design.md`
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
mkdir -p leads/design_lead && cd leads/design_lead
|
|
358
|
+
mkdir -p .outputs workers
|
|
359
|
+
|
|
360
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
361
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
362
|
+
|
|
363
|
+
# Append phase-specific instructions
|
|
364
|
+
cat >> CLAUDE.md << 'EOF'
|
|
365
|
+
|
|
366
|
+
## Phase: Design
|
|
367
|
+
|
|
368
|
+
You create UX/UI design for the project.
|
|
369
|
+
|
|
370
|
+
## Your Task
|
|
371
|
+
1. Read ../../.context/project.md and ../../.outputs/discovery.md
|
|
372
|
+
2. Create workers for design tasks
|
|
373
|
+
3. Each worker handles their area, writes to .outputs/
|
|
374
|
+
4. Aggregate worker results
|
|
375
|
+
5. Write final design to ../../.outputs/design.md
|
|
376
|
+
|
|
377
|
+
## Suggested Workers
|
|
378
|
+
- ux_researcher: user research, personas, journeys
|
|
379
|
+
- ui_designer: wireframes, components, interactions
|
|
380
|
+
EOF
|
|
381
|
+
cd ../..
|
|
382
|
+
|
|
383
|
+
LEAD_ID=$(uuidgen)
|
|
384
|
+
echo "$LEAD_ID" > .sessions/design_lead.id
|
|
385
|
+
cd leads/design_lead
|
|
386
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
387
|
+
-p "TASK: Create UX design. Create workers, delegate, aggregate to .outputs/design.md" &
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### /cct.spec
|
|
391
|
+
**Creates:** Spec Lead
|
|
392
|
+
**Task:** Formal requirements, acceptance criteria
|
|
393
|
+
**Output:** `.outputs/spec.md`
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
mkdir -p leads/spec_lead && cd leads/spec_lead
|
|
397
|
+
mkdir -p .outputs workers
|
|
398
|
+
|
|
399
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
400
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
401
|
+
|
|
402
|
+
# Append phase-specific instructions
|
|
403
|
+
cat >> CLAUDE.md << 'EOF'
|
|
404
|
+
|
|
405
|
+
## Phase: Specification
|
|
406
|
+
|
|
407
|
+
You write formal specifications for the project.
|
|
408
|
+
|
|
409
|
+
## Your Task
|
|
410
|
+
1. Read ../../.context/project.md and previous outputs
|
|
411
|
+
2. Create workers for spec sections
|
|
412
|
+
3. Each worker writes their section to .outputs/
|
|
413
|
+
4. Aggregate into formal spec
|
|
414
|
+
5. Write final spec to ../../.outputs/spec.md
|
|
415
|
+
|
|
416
|
+
## Suggested Workers
|
|
417
|
+
- requirements_analyst: FRs, NFRs
|
|
418
|
+
- acceptance_writer: acceptance criteria for each FR
|
|
419
|
+
EOF
|
|
420
|
+
cd ../..
|
|
421
|
+
|
|
422
|
+
LEAD_ID=$(uuidgen)
|
|
423
|
+
echo "$LEAD_ID" > .sessions/spec_lead.id
|
|
424
|
+
cd leads/spec_lead
|
|
425
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
426
|
+
-p "TASK: Write specification. Create workers, aggregate to .outputs/spec.md" &
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
### /cct.architect
|
|
430
|
+
**Creates:** Architect Lead
|
|
431
|
+
**Task:** System design, tech stack, API contracts
|
|
432
|
+
**Output:** `.outputs/architecture.md`
|
|
433
|
+
|
|
434
|
+
```bash
|
|
435
|
+
mkdir -p leads/architect_lead && cd leads/architect_lead
|
|
436
|
+
mkdir -p .outputs workers
|
|
437
|
+
|
|
438
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
439
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
440
|
+
|
|
441
|
+
# Append phase-specific instructions
|
|
442
|
+
cat >> CLAUDE.md << 'EOF'
|
|
443
|
+
|
|
444
|
+
## Phase: Architecture
|
|
445
|
+
|
|
446
|
+
You design system architecture for the project.
|
|
447
|
+
|
|
448
|
+
## Your Task
|
|
449
|
+
1. Read ../../.context/project.md and ../../.outputs/spec.md
|
|
450
|
+
2. Create workers for architecture areas
|
|
451
|
+
3. Each worker designs their area, writes to .outputs/
|
|
452
|
+
4. Aggregate into cohesive architecture
|
|
453
|
+
5. Write final architecture to ../../.outputs/architecture.md
|
|
454
|
+
|
|
455
|
+
## Suggested Workers
|
|
456
|
+
- system_architect: high-level design, components
|
|
457
|
+
- data_architect: data model, storage
|
|
458
|
+
- api_designer: API contracts, interfaces
|
|
459
|
+
EOF
|
|
460
|
+
cd ../..
|
|
461
|
+
|
|
462
|
+
LEAD_ID=$(uuidgen)
|
|
463
|
+
echo "$LEAD_ID" > .sessions/architect_lead.id
|
|
464
|
+
cd leads/architect_lead
|
|
465
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
466
|
+
-p "TASK: Design architecture. Create workers, aggregate to .outputs/architecture.md" &
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
### /cct.implement
|
|
470
|
+
**Creates:** Dev Lead(s)
|
|
471
|
+
**Task:** Write code based on spec and architecture
|
|
472
|
+
**Output:** Code in repository
|
|
473
|
+
|
|
474
|
+
```bash
|
|
475
|
+
mkdir -p leads/dev_lead && cd leads/dev_lead
|
|
476
|
+
mkdir -p .outputs workers
|
|
477
|
+
|
|
478
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
479
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
480
|
+
|
|
481
|
+
# Append phase-specific instructions
|
|
482
|
+
cat >> CLAUDE.md << 'EOF'
|
|
483
|
+
|
|
484
|
+
## Phase: Implementation
|
|
485
|
+
|
|
486
|
+
You coordinate code implementation for the project.
|
|
487
|
+
|
|
488
|
+
## Your Task
|
|
489
|
+
1. Read ../../.outputs/spec.md and ../../.outputs/architecture.md
|
|
490
|
+
2. Break down into implementable tasks
|
|
491
|
+
3. Create workers for each component
|
|
492
|
+
4. Each worker writes code, commits to repo
|
|
493
|
+
5. Coordinate integration
|
|
494
|
+
|
|
495
|
+
## Suggested Workers
|
|
496
|
+
- backend_dev: backend code, APIs
|
|
497
|
+
- frontend_dev: frontend code, UI
|
|
498
|
+
- integration_dev: connecting components
|
|
499
|
+
EOF
|
|
500
|
+
cd ../..
|
|
501
|
+
|
|
502
|
+
LEAD_ID=$(uuidgen)
|
|
503
|
+
echo "$LEAD_ID" > .sessions/dev_lead.id
|
|
504
|
+
cd leads/dev_lead
|
|
505
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
506
|
+
-p "TASK: Implement system. Create workers for backend/frontend, coordinate, write code." &
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### /cct.test
|
|
510
|
+
**Creates:** QA Lead
|
|
511
|
+
**Task:** Test planning, test cases, quality validation
|
|
512
|
+
**Output:** `.outputs/test-plan.md`, tests in repository
|
|
513
|
+
|
|
514
|
+
```bash
|
|
515
|
+
mkdir -p leads/qa_lead && cd leads/qa_lead
|
|
516
|
+
mkdir -p .outputs workers
|
|
517
|
+
|
|
518
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
519
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
520
|
+
|
|
521
|
+
# Append phase-specific instructions
|
|
522
|
+
cat >> CLAUDE.md << 'EOF'
|
|
523
|
+
|
|
524
|
+
## Phase: Testing
|
|
525
|
+
|
|
526
|
+
You ensure quality through testing.
|
|
527
|
+
|
|
528
|
+
## Your Task
|
|
529
|
+
1. Read ../../.outputs/spec.md for acceptance criteria
|
|
530
|
+
2. Create workers for test areas
|
|
531
|
+
3. Each worker writes tests for their area
|
|
532
|
+
4. Aggregate test results
|
|
533
|
+
5. Write test plan to ../../.outputs/test-plan.md
|
|
534
|
+
|
|
535
|
+
## Suggested Workers
|
|
536
|
+
- test_analyst: test strategy, test cases
|
|
537
|
+
- automation_engineer: automated tests
|
|
538
|
+
EOF
|
|
539
|
+
cd ../..
|
|
540
|
+
|
|
541
|
+
LEAD_ID=$(uuidgen)
|
|
542
|
+
echo "$LEAD_ID" > .sessions/qa_lead.id
|
|
543
|
+
cd leads/qa_lead
|
|
544
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
545
|
+
-p "TASK: Create test plan. Create workers, write tests, aggregate to .outputs/test-plan.md" &
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
### /cct.docs
|
|
549
|
+
**Creates:** Docs Lead
|
|
550
|
+
**Task:** User documentation, API docs, guides
|
|
551
|
+
**Output:** `docs/` folder
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
mkdir -p leads/docs_lead && cd leads/docs_lead
|
|
555
|
+
mkdir -p .outputs workers
|
|
556
|
+
|
|
557
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
558
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
559
|
+
|
|
560
|
+
# Append phase-specific instructions
|
|
561
|
+
cat >> CLAUDE.md << 'EOF'
|
|
562
|
+
|
|
563
|
+
## Phase: Documentation
|
|
564
|
+
|
|
565
|
+
You create project documentation.
|
|
566
|
+
|
|
567
|
+
## Your Task
|
|
568
|
+
1. Read all ../../.outputs/*.md files
|
|
569
|
+
2. Create workers for doc sections
|
|
570
|
+
3. Each worker writes their section
|
|
571
|
+
4. Aggregate into docs/ folder
|
|
572
|
+
5. Ensure README, user guide, API docs
|
|
573
|
+
|
|
574
|
+
## Suggested Workers
|
|
575
|
+
- technical_writer: README, user guide
|
|
576
|
+
- api_documenter: API reference
|
|
577
|
+
EOF
|
|
578
|
+
cd ../..
|
|
579
|
+
|
|
580
|
+
LEAD_ID=$(uuidgen)
|
|
581
|
+
echo "$LEAD_ID" > .sessions/docs_lead.id
|
|
582
|
+
cd leads/docs_lead
|
|
583
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
584
|
+
-p "TASK: Write documentation. Create workers, aggregate to docs/ folder" &
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
### /cct.review
|
|
588
|
+
**Creates:** Review workers (depends on phase)
|
|
589
|
+
**Task:** Review previous phase output, identify issues and risks
|
|
590
|
+
**Output:** `.outputs/review-<phase>.md`
|
|
591
|
+
|
|
592
|
+
**Auto-assigned reviewers by phase:**
|
|
593
|
+
|
|
594
|
+
| Previous Phase | Reviewers |
|
|
595
|
+
|----------------|-----------|
|
|
596
|
+
| discovery | Architect |
|
|
597
|
+
| spec | Architect + Dev |
|
|
598
|
+
| architecture | Dev |
|
|
599
|
+
| implement | QA |
|
|
600
|
+
|
|
601
|
+
**Usage:**
|
|
602
|
+
```
|
|
603
|
+
/cct.review # Auto-select reviewers based on last phase
|
|
604
|
+
/cct.review --with=Security # Add extra reviewer
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
```bash
|
|
608
|
+
# Determine last phase from .outputs/
|
|
609
|
+
LAST_PHASE=$(ls -t .outputs/*.md | head -1 | xargs basename | sed 's/.md//')
|
|
610
|
+
|
|
611
|
+
# Select reviewers based on phase
|
|
612
|
+
case "$LAST_PHASE" in
|
|
613
|
+
discovery) REVIEWERS="architect" ;;
|
|
614
|
+
spec) REVIEWERS="architect dev" ;;
|
|
615
|
+
architecture) REVIEWERS="dev" ;;
|
|
616
|
+
*) REVIEWERS="architect" ;;
|
|
617
|
+
esac
|
|
618
|
+
|
|
619
|
+
# Create review lead
|
|
620
|
+
mkdir -p leads/review_lead && cd leads/review_lead
|
|
621
|
+
mkdir -p .outputs workers
|
|
622
|
+
|
|
623
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
624
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
625
|
+
|
|
626
|
+
# Append phase-specific instructions
|
|
627
|
+
cat >> CLAUDE.md << EOF
|
|
628
|
+
|
|
629
|
+
## Phase: Review
|
|
630
|
+
|
|
631
|
+
You coordinate review of the $LAST_PHASE phase.
|
|
632
|
+
|
|
633
|
+
## Your Task
|
|
634
|
+
1. Read ../../.outputs/$LAST_PHASE.md
|
|
635
|
+
2. Create reviewer workers: $REVIEWERS
|
|
636
|
+
3. Each reviewer writes feedback to .outputs/
|
|
637
|
+
4. Aggregate into ../../.outputs/review-$LAST_PHASE.md
|
|
638
|
+
|
|
639
|
+
## Review Format
|
|
640
|
+
For each issue found:
|
|
641
|
+
- BLOCKER: Must fix before proceeding
|
|
642
|
+
- WARNING: Should consider fixing
|
|
643
|
+
- SUGGESTION: Nice to have
|
|
644
|
+
|
|
645
|
+
## Suggested Workers
|
|
646
|
+
$(for r in $REVIEWERS; do echo "- ${r}_reviewer: reviews from $r perspective"; done)
|
|
647
|
+
EOF
|
|
648
|
+
cd ../..
|
|
649
|
+
|
|
650
|
+
LEAD_ID=$(uuidgen)
|
|
651
|
+
echo "$LEAD_ID" > .sessions/review_lead.id
|
|
652
|
+
cd leads/review_lead
|
|
653
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
654
|
+
-p "TASK: Review $LAST_PHASE.md. Create reviewer workers, aggregate to .outputs/review-$LAST_PHASE.md" &
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
### /cct.brainstorm
|
|
658
|
+
**Creates:** Multiple parallel workers with different perspectives
|
|
659
|
+
**Task:** Explore topic from multiple angles simultaneously
|
|
660
|
+
**Output:** `.outputs/brainstorm.md`
|
|
661
|
+
|
|
662
|
+
**Usage (roles required):**
|
|
663
|
+
```
|
|
664
|
+
/cct.brainstorm "authentication system" --roles=BA,Architect,Security
|
|
665
|
+
/cct.brainstorm "UI redesign" --roles=UX,Frontend,Product
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
```bash
|
|
669
|
+
TOPIC="$1"
|
|
670
|
+
ROLES="$2" # comma-separated: BA,Architect,Security
|
|
671
|
+
|
|
672
|
+
mkdir -p leads/brainstorm_lead && cd leads/brainstorm_lead
|
|
673
|
+
mkdir -p .outputs workers
|
|
674
|
+
|
|
675
|
+
# Copy base lead template (contains CRITICAL Task tool prohibition)
|
|
676
|
+
cp ../../templates/lead.md CLAUDE.md
|
|
677
|
+
|
|
678
|
+
# Append phase-specific instructions
|
|
679
|
+
cat >> CLAUDE.md << EOF
|
|
680
|
+
|
|
681
|
+
## Phase: Brainstorm
|
|
682
|
+
|
|
683
|
+
You coordinate parallel brainstorming on: $TOPIC
|
|
684
|
+
|
|
685
|
+
## Your Task
|
|
686
|
+
1. Read ../../.context/project.md for context
|
|
687
|
+
2. Create workers for each role: $ROLES
|
|
688
|
+
3. Each worker explores topic from their perspective, writes to .outputs/
|
|
689
|
+
4. Aggregate all views into ../../.outputs/brainstorm.md
|
|
690
|
+
|
|
691
|
+
## Worker Output Format
|
|
692
|
+
Each worker writes to .outputs/<role>_view.md:
|
|
693
|
+
- Key considerations from their perspective
|
|
694
|
+
- Risks and opportunities they see
|
|
695
|
+
- Recommendations
|
|
696
|
+
|
|
697
|
+
## Aggregation Format
|
|
698
|
+
In ../../.outputs/brainstorm.md:
|
|
699
|
+
- Summary of each perspective
|
|
700
|
+
- Common themes across views
|
|
701
|
+
- Conflicts/tensions to resolve
|
|
702
|
+
- Recommended next steps
|
|
703
|
+
|
|
704
|
+
## Suggested Workers
|
|
705
|
+
$(echo $ROLES | tr ',' '\n' | while read r; do echo "- ${r}_worker: explores from $r perspective"; done)
|
|
706
|
+
EOF
|
|
707
|
+
cd ../..
|
|
708
|
+
|
|
709
|
+
LEAD_ID=$(uuidgen)
|
|
710
|
+
echo "$LEAD_ID" > .sessions/brainstorm_lead.id
|
|
711
|
+
cd leads/brainstorm_lead
|
|
712
|
+
claude --dangerously-skip-permissions --session-id "$LEAD_ID" \
|
|
713
|
+
-p "TASK: Brainstorm '$TOPIC' with roles: $ROLES. Create workers, aggregate to .outputs/brainstorm.md" &
|
|
714
|
+
```
|