cc-mirror 1.1.2 → 1.1.5
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/dist/cc-mirror.mjs +294 -233
- package/dist/skills/orchestration/SKILL.md +619 -0
- package/dist/skills/{multi-agent-orchestrator → orchestration}/references/tools.md +143 -58
- package/dist/tui.mjs +533 -401
- package/package.json +1 -1
- package/dist/skills/multi-agent-orchestrator/SKILL.md +0 -391
- package/dist/skills/multi-agent-orchestrator/references/code-review.md +0 -266
- package/dist/skills/multi-agent-orchestrator/references/data-analysis.md +0 -315
- package/dist/skills/multi-agent-orchestrator/references/devops.md +0 -309
- package/dist/skills/multi-agent-orchestrator/references/documentation.md +0 -310
- package/dist/skills/multi-agent-orchestrator/references/project-management.md +0 -345
- package/dist/skills/multi-agent-orchestrator/references/research.md +0 -285
- package/dist/skills/multi-agent-orchestrator/references/software-development.md +0 -242
- package/dist/skills/multi-agent-orchestrator/references/testing.md +0 -282
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/code-review.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/data-analysis.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/devops.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/documentation.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/project-management.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/research.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/software-development.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/testing.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/examples.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/guide.md +0 -0
- /package/dist/skills/{multi-agent-orchestrator → orchestration}/references/patterns.md +0 -0
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
# Documentation Orchestration Patterns
|
|
2
|
-
|
|
3
|
-
## Table of Contents
|
|
4
|
-
1. [API Documentation](#api-documentation)
|
|
5
|
-
2. [Code Documentation](#code-documentation)
|
|
6
|
-
3. [README Generation](#readme-generation)
|
|
7
|
-
4. [Architecture Documentation](#architecture-documentation)
|
|
8
|
-
5. [User Guides](#user-guides)
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## API Documentation
|
|
13
|
-
|
|
14
|
-
### Pattern: Endpoint Discovery and Documentation
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
User Request: "Document all REST API endpoints"
|
|
18
|
-
|
|
19
|
-
Phase 1: EXPLORE
|
|
20
|
-
└─ Explore agent: Find all route definitions
|
|
21
|
-
|
|
22
|
-
Phase 2: FAN-OUT (Parallel documentation by domain)
|
|
23
|
-
├─ Agent A: Document auth endpoints
|
|
24
|
-
├─ Agent B: Document user endpoints
|
|
25
|
-
├─ Agent C: Document product endpoints
|
|
26
|
-
└─ Agent D: Document order endpoints
|
|
27
|
-
|
|
28
|
-
Phase 3: REDUCE
|
|
29
|
-
└─ General-purpose agent: Compile into unified OpenAPI/Swagger spec
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Pattern: Request/Response Documentation
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
Phase 1: EXPLORE
|
|
36
|
-
└─ Explore agent: Find endpoint handlers and schemas
|
|
37
|
-
|
|
38
|
-
Phase 2: FAN-OUT (Per endpoint group)
|
|
39
|
-
├─ Agent A: Document request schemas, validation
|
|
40
|
-
├─ Agent B: Document response schemas, status codes
|
|
41
|
-
└─ Agent C: Document error responses
|
|
42
|
-
|
|
43
|
-
Phase 3: PIPELINE
|
|
44
|
-
└─ General-purpose agent: Generate examples, test payloads
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Pattern: Interactive Documentation
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
Phase 1: PIPELINE (Foundation)
|
|
51
|
-
├─ Explore agent: Extract all endpoints with types
|
|
52
|
-
└─ General-purpose agent: Generate OpenAPI spec
|
|
53
|
-
|
|
54
|
-
Phase 2: FAN-OUT (Enhancement)
|
|
55
|
-
├─ Agent A: Add example requests
|
|
56
|
-
├─ Agent B: Add example responses
|
|
57
|
-
└─ Agent C: Add authentication examples
|
|
58
|
-
|
|
59
|
-
Phase 3: PIPELINE
|
|
60
|
-
└─ General-purpose agent: Setup Swagger UI / Redoc
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## Code Documentation
|
|
66
|
-
|
|
67
|
-
### Pattern: Batch JSDoc/Docstring Generation
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
User Request: "Add documentation to the utils module"
|
|
71
|
-
|
|
72
|
-
Phase 1: EXPLORE
|
|
73
|
-
└─ Explore agent: Find all undocumented functions
|
|
74
|
-
|
|
75
|
-
Phase 2: MAP (Parallel documentation)
|
|
76
|
-
├─ Agent A: Document file1.ts functions
|
|
77
|
-
├─ Agent B: Document file2.ts functions
|
|
78
|
-
└─ Agent C: Document file3.ts functions
|
|
79
|
-
|
|
80
|
-
Phase 3: PIPELINE
|
|
81
|
-
└─ General-purpose agent: Verify consistency, generate type docs
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### Pattern: Complexity-Driven Documentation
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
Phase 1: EXPLORE
|
|
88
|
-
└─ Explore agent: Find complex functions (high cyclomatic complexity)
|
|
89
|
-
|
|
90
|
-
Phase 2: FAN-OUT (Prioritized)
|
|
91
|
-
├─ Agent A: Document most complex function
|
|
92
|
-
├─ Agent B: Document second most complex
|
|
93
|
-
└─ Agent C: Document third most complex
|
|
94
|
-
|
|
95
|
-
Each agent:
|
|
96
|
-
- Explain algorithm/logic
|
|
97
|
-
- Document edge cases
|
|
98
|
-
- Add usage examples
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Pattern: Module Overview Generation
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
Phase 1: EXPLORE
|
|
105
|
-
└─ Explore agent: Map module structure, exports, dependencies
|
|
106
|
-
|
|
107
|
-
Phase 2: PIPELINE
|
|
108
|
-
├─ General-purpose agent: Write module overview
|
|
109
|
-
├─ General-purpose agent: Document public API
|
|
110
|
-
└─ General-purpose agent: Add usage examples
|
|
111
|
-
|
|
112
|
-
Phase 3: FAN-OUT (Internal docs)
|
|
113
|
-
├─ Agent A: Document internal utilities
|
|
114
|
-
└─ Agent B: Document configuration options
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## README Generation
|
|
120
|
-
|
|
121
|
-
### Pattern: Comprehensive README
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
User Request: "Create a README for this project"
|
|
125
|
-
|
|
126
|
-
Phase 1: FAN-OUT (Parallel information gathering)
|
|
127
|
-
├─ Explore agent: Project structure and technologies
|
|
128
|
-
├─ Explore agent: Build and run scripts (package.json, Makefile)
|
|
129
|
-
├─ Explore agent: Environment variables and config
|
|
130
|
-
├─ Explore agent: Test setup and commands
|
|
131
|
-
└─ Explore agent: Existing docs and comments
|
|
132
|
-
|
|
133
|
-
Phase 2: REDUCE
|
|
134
|
-
└─ General-purpose agent: Synthesize into structured README
|
|
135
|
-
|
|
136
|
-
Sections:
|
|
137
|
-
- Overview and purpose
|
|
138
|
-
- Quick start
|
|
139
|
-
- Installation
|
|
140
|
-
- Configuration
|
|
141
|
-
- Usage examples
|
|
142
|
-
- Development setup
|
|
143
|
-
- Testing
|
|
144
|
-
- Contributing
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Pattern: README Update
|
|
148
|
-
|
|
149
|
-
```
|
|
150
|
-
Phase 1: FAN-OUT
|
|
151
|
-
├─ Explore agent: Current README content
|
|
152
|
-
├─ Explore agent: Recent changes to codebase
|
|
153
|
-
└─ Explore agent: New dependencies or features
|
|
154
|
-
|
|
155
|
-
Phase 2: PIPELINE
|
|
156
|
-
└─ General-purpose agent: Update README sections, maintain style
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## Architecture Documentation
|
|
162
|
-
|
|
163
|
-
### Pattern: C4 Model Documentation
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
User Request: "Document the system architecture"
|
|
167
|
-
|
|
168
|
-
Phase 1: FAN-OUT (Parallel level documentation)
|
|
169
|
-
├─ Agent A: Context diagram (system + external actors)
|
|
170
|
-
├─ Agent B: Container diagram (applications, data stores)
|
|
171
|
-
├─ Agent C: Component diagram (internal components)
|
|
172
|
-
└─ Agent D: Code diagram (critical classes/modules)
|
|
173
|
-
|
|
174
|
-
Phase 2: REDUCE
|
|
175
|
-
└─ General-purpose agent: Compile into architecture doc with diagrams
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Pattern: Decision Record Generation
|
|
179
|
-
|
|
180
|
-
```
|
|
181
|
-
Phase 1: EXPLORE
|
|
182
|
-
└─ Explore agent: Find architectural patterns in code
|
|
183
|
-
|
|
184
|
-
Phase 2: FAN-OUT
|
|
185
|
-
├─ Agent A: Document decision 1 (why this database?)
|
|
186
|
-
├─ Agent B: Document decision 2 (why this framework?)
|
|
187
|
-
└─ Agent C: Document decision 3 (why this structure?)
|
|
188
|
-
|
|
189
|
-
Each ADR includes:
|
|
190
|
-
- Context
|
|
191
|
-
- Decision
|
|
192
|
-
- Consequences
|
|
193
|
-
- Alternatives considered
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Pattern: Data Flow Documentation
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
Phase 1: EXPLORE
|
|
200
|
-
└─ Explore agent: Trace data through system
|
|
201
|
-
|
|
202
|
-
Phase 2: PIPELINE
|
|
203
|
-
├─ General-purpose agent: Document ingress points
|
|
204
|
-
├─ General-purpose agent: Document transformations
|
|
205
|
-
├─ General-purpose agent: Document storage
|
|
206
|
-
└─ General-purpose agent: Document egress points
|
|
207
|
-
|
|
208
|
-
Phase 3: REDUCE
|
|
209
|
-
└─ General-purpose agent: Create data flow diagram
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## User Guides
|
|
215
|
-
|
|
216
|
-
### Pattern: Feature-Based Guides
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
User Request: "Write user documentation for the dashboard"
|
|
220
|
-
|
|
221
|
-
Phase 1: EXPLORE
|
|
222
|
-
└─ Explore agent: Map dashboard features and capabilities
|
|
223
|
-
|
|
224
|
-
Phase 2: FAN-OUT (Parallel feature guides)
|
|
225
|
-
├─ Agent A: Guide for feature 1 (with screenshots)
|
|
226
|
-
├─ Agent B: Guide for feature 2
|
|
227
|
-
├─ Agent C: Guide for feature 3
|
|
228
|
-
└─ Agent D: Troubleshooting guide
|
|
229
|
-
|
|
230
|
-
Phase 3: REDUCE
|
|
231
|
-
└─ General-purpose agent: Compile into user manual with TOC
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
### Pattern: Tutorial Generation
|
|
235
|
-
|
|
236
|
-
```
|
|
237
|
-
Phase 1: EXPLORE
|
|
238
|
-
└─ Explore agent: Identify key user workflows
|
|
239
|
-
|
|
240
|
-
Phase 2: PIPELINE (Sequential tutorials)
|
|
241
|
-
├─ General-purpose agent: Getting started tutorial
|
|
242
|
-
├─ General-purpose agent: Basic usage tutorial
|
|
243
|
-
├─ General-purpose agent: Advanced usage tutorial
|
|
244
|
-
└─ General-purpose agent: Best practices guide
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Pattern: FAQ Generation
|
|
248
|
-
|
|
249
|
-
```
|
|
250
|
-
Phase 1: FAN-OUT
|
|
251
|
-
├─ Explore agent: Common patterns in issues/tickets
|
|
252
|
-
├─ Explore agent: Error messages and their causes
|
|
253
|
-
└─ Explore agent: Configuration gotchas
|
|
254
|
-
|
|
255
|
-
Phase 2: REDUCE
|
|
256
|
-
└─ General-purpose agent: Compile FAQ with clear answers
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
---
|
|
260
|
-
|
|
261
|
-
## Documentation Quality Patterns
|
|
262
|
-
|
|
263
|
-
### Pattern: Consistency Audit
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
Phase 1: FAN-OUT
|
|
267
|
-
├─ Agent A: Check terminology consistency
|
|
268
|
-
├─ Agent B: Check formatting consistency
|
|
269
|
-
├─ Agent C: Check example code validity
|
|
270
|
-
└─ Agent D: Check link validity
|
|
271
|
-
|
|
272
|
-
Phase 2: REDUCE
|
|
273
|
-
└─ General-purpose agent: Inconsistency report with fixes
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
### Pattern: Freshness Check
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
Phase 1: FAN-OUT
|
|
280
|
-
├─ Explore agent: Find outdated code examples
|
|
281
|
-
├─ Explore agent: Find references to removed features
|
|
282
|
-
└─ Explore agent: Find mismatched version numbers
|
|
283
|
-
|
|
284
|
-
Phase 2: PIPELINE
|
|
285
|
-
└─ General-purpose agent: Update stale documentation
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
---
|
|
289
|
-
|
|
290
|
-
## TodoWrite for Documentation
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
TodoWrite([
|
|
294
|
-
{content: "Audit existing documentation", status: "in_progress", activeForm: "Auditing documentation"},
|
|
295
|
-
{content: "Identify documentation gaps", status: "pending", activeForm: "Finding gaps"},
|
|
296
|
-
{content: "Generate missing documentation", status: "pending", activeForm: "Generating docs"},
|
|
297
|
-
{content: "Review for consistency", status: "pending", activeForm: "Reviewing consistency"},
|
|
298
|
-
{content: "Verify examples work", status: "pending", activeForm: "Verifying examples"}
|
|
299
|
-
])
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
## Output Formats
|
|
303
|
-
|
|
304
|
-
| Doc Type | Format | Tool |
|
|
305
|
-
|----------|--------|------|
|
|
306
|
-
| API docs | OpenAPI/Swagger | YAML/JSON |
|
|
307
|
-
| Code docs | JSDoc/docstrings | Inline |
|
|
308
|
-
| READMEs | Markdown | .md files |
|
|
309
|
-
| Architecture | Markdown + diagrams | Mermaid/PlantUML |
|
|
310
|
-
| User guides | Markdown/HTML | Static site generators |
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
# Project Management Orchestration Patterns
|
|
2
|
-
|
|
3
|
-
## Table of Contents
|
|
4
|
-
1. [Epic Breakdown](#epic-breakdown)
|
|
5
|
-
2. [Sprint Planning](#sprint-planning)
|
|
6
|
-
3. [Progress Tracking](#progress-tracking)
|
|
7
|
-
4. [Dependency Management](#dependency-management)
|
|
8
|
-
5. [Team Coordination](#team-coordination)
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Epic Breakdown
|
|
13
|
-
|
|
14
|
-
### Pattern: Hierarchical Decomposition
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
User Request: "Break down the authentication epic"
|
|
18
|
-
|
|
19
|
-
Phase 1: EXPLORE
|
|
20
|
-
└─ Explore agent: Understand requirements, existing system
|
|
21
|
-
|
|
22
|
-
Phase 2: PLAN
|
|
23
|
-
└─ Plan agent: Design high-level feature breakdown
|
|
24
|
-
|
|
25
|
-
Phase 3: FAN-OUT (Parallel story creation)
|
|
26
|
-
├─ Agent A: User stories for login/logout
|
|
27
|
-
├─ Agent B: User stories for registration
|
|
28
|
-
├─ Agent C: User stories for password management
|
|
29
|
-
├─ Agent D: User stories for session management
|
|
30
|
-
└─ Agent E: User stories for OAuth integration
|
|
31
|
-
|
|
32
|
-
Phase 4: REDUCE
|
|
33
|
-
└─ General-purpose agent: Organize into coherent backlog
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
**Task Management Implementation:**
|
|
37
|
-
```
|
|
38
|
-
# Create epic
|
|
39
|
-
TaskCreate(subject="Epic: User Authentication", description="Complete auth system")
|
|
40
|
-
|
|
41
|
-
# Create stories
|
|
42
|
-
TaskCreate(subject="Story: Login flow", description="...")
|
|
43
|
-
TaskCreate(subject="Story: Registration", description="...")
|
|
44
|
-
TaskCreate(subject="Story: Password reset", description="...")
|
|
45
|
-
|
|
46
|
-
# Set dependencies
|
|
47
|
-
TaskUpdate(taskId="3", addBlockedBy=["2"]) # Reset after registration
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Pattern: Vertical Slice Breakdown
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
Phase 1: EXPLORE
|
|
54
|
-
└─ Explore agent: Map feature touchpoints (UI, API, DB)
|
|
55
|
-
|
|
56
|
-
Phase 2: FAN-OUT (Slice by user value)
|
|
57
|
-
├─ Agent A: Define slice 1 (minimal viable feature)
|
|
58
|
-
├─ Agent B: Define slice 2 (enhanced feature)
|
|
59
|
-
└─ Agent C: Define slice 3 (complete feature)
|
|
60
|
-
|
|
61
|
-
Phase 3: PIPELINE
|
|
62
|
-
└─ General-purpose agent: Estimate, prioritize, sequence
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Pattern: Spike-First Breakdown
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
Phase 1: EXPLORE
|
|
69
|
-
└─ Explore agent: Identify unknowns and risks
|
|
70
|
-
|
|
71
|
-
Phase 2: FAN-OUT (Parallel spikes)
|
|
72
|
-
├─ Agent A: Technical spike - feasibility
|
|
73
|
-
├─ Agent B: Technical spike - performance
|
|
74
|
-
└─ Agent C: UX spike - user research
|
|
75
|
-
|
|
76
|
-
Phase 3: REDUCE
|
|
77
|
-
└─ General-purpose agent: Use spike findings to refine breakdown
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Sprint Planning
|
|
83
|
-
|
|
84
|
-
### Pattern: Capacity-Based Planning
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
User Request: "Plan the next sprint"
|
|
88
|
-
|
|
89
|
-
Phase 1: FAN-OUT (Gather context)
|
|
90
|
-
├─ Explore agent: Review backlog priority
|
|
91
|
-
├─ Explore agent: Check team capacity
|
|
92
|
-
├─ Explore agent: Review blockers and dependencies
|
|
93
|
-
└─ Explore agent: Check carryover from last sprint
|
|
94
|
-
|
|
95
|
-
Phase 2: REDUCE
|
|
96
|
-
└─ Plan agent: Propose sprint scope
|
|
97
|
-
|
|
98
|
-
Phase 3: FAN-OUT (Task breakdown)
|
|
99
|
-
├─ Agent A: Break down story 1 into tasks
|
|
100
|
-
├─ Agent B: Break down story 2 into tasks
|
|
101
|
-
└─ Agent C: Break down story 3 into tasks
|
|
102
|
-
|
|
103
|
-
Phase 4: PIPELINE
|
|
104
|
-
└─ General-purpose agent: Finalize sprint backlog
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Task Structure:**
|
|
108
|
-
```
|
|
109
|
-
# Sprint-level task
|
|
110
|
-
TaskCreate(subject="Sprint 14: Auth Implementation", description="...")
|
|
111
|
-
|
|
112
|
-
# Stories within sprint
|
|
113
|
-
TaskCreate(subject="Login API endpoint", description="...")
|
|
114
|
-
TaskCreate(subject="Login UI component", description="...")
|
|
115
|
-
TaskUpdate(taskId="2", addBlockedBy=["1"]) # UI needs API first
|
|
116
|
-
|
|
117
|
-
# Sub-tasks
|
|
118
|
-
TaskCreate(subject="Write login validation", description="...")
|
|
119
|
-
TaskCreate(subject="Add rate limiting", description="...")
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Pattern: Risk-Adjusted Planning
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
Phase 1: FAN-OUT
|
|
126
|
-
├─ Agent A: Identify technical risks
|
|
127
|
-
├─ Agent B: Identify dependency risks
|
|
128
|
-
└─ Agent C: Identify scope risks
|
|
129
|
-
|
|
130
|
-
Phase 2: REDUCE
|
|
131
|
-
└─ Plan agent: Adjust estimates with risk buffer
|
|
132
|
-
|
|
133
|
-
Phase 3: PIPELINE
|
|
134
|
-
└─ General-purpose agent: Create contingency tasks
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## Progress Tracking
|
|
140
|
-
|
|
141
|
-
### Pattern: Multi-Dimension Status
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
User Request: "What's the project status?"
|
|
145
|
-
|
|
146
|
-
Phase 1: FAN-OUT (Parallel status gathering)
|
|
147
|
-
├─ Agent A: Task completion status (from TaskList)
|
|
148
|
-
├─ Agent B: Blocker analysis
|
|
149
|
-
├─ Agent C: Timeline vs plan
|
|
150
|
-
├─ Agent D: Quality metrics
|
|
151
|
-
└─ Agent E: Risk status
|
|
152
|
-
|
|
153
|
-
Phase 2: REDUCE
|
|
154
|
-
└─ General-purpose agent: Executive status summary
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
**Using TaskList:**
|
|
158
|
-
```
|
|
159
|
-
# Get current state
|
|
160
|
-
TaskList() # Returns all tasks with status
|
|
161
|
-
|
|
162
|
-
# Update progress
|
|
163
|
-
TaskUpdate(taskId="5", addComment={
|
|
164
|
-
author: "agent-id",
|
|
165
|
-
content: "50% complete, blocked on API review"
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
# Mark complete
|
|
169
|
-
TaskUpdate(taskId="5", status="resolved")
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Pattern: Burndown Tracking
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
Phase 1: EXPLORE
|
|
176
|
-
└─ Explore agent: Calculate completed vs remaining work
|
|
177
|
-
|
|
178
|
-
Phase 2: PIPELINE
|
|
179
|
-
├─ General-purpose agent: Project completion trajectory
|
|
180
|
-
├─ General-purpose agent: Identify velocity trends
|
|
181
|
-
└─ General-purpose agent: Flag at-risk items
|
|
182
|
-
|
|
183
|
-
Phase 3: REDUCE
|
|
184
|
-
└─ General-purpose agent: Burndown report
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Pattern: Blocker Resolution
|
|
188
|
-
|
|
189
|
-
```
|
|
190
|
-
Phase 1: EXPLORE
|
|
191
|
-
└─ Explore agent: Identify all blocked tasks
|
|
192
|
-
|
|
193
|
-
Phase 2: FAN-OUT (Parallel resolution paths)
|
|
194
|
-
├─ Agent A: Investigate blocker 1
|
|
195
|
-
├─ Agent B: Investigate blocker 2
|
|
196
|
-
└─ Agent C: Investigate blocker 3
|
|
197
|
-
|
|
198
|
-
Phase 3: REDUCE
|
|
199
|
-
└─ General-purpose agent: Resolution plan, escalation needs
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
---
|
|
203
|
-
|
|
204
|
-
## Dependency Management
|
|
205
|
-
|
|
206
|
-
### Pattern: Dependency Graph Construction
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
User Request: "Map project dependencies"
|
|
210
|
-
|
|
211
|
-
Phase 1: EXPLORE
|
|
212
|
-
└─ Explore agent: List all tasks and their relationships
|
|
213
|
-
|
|
214
|
-
Phase 2: FAN-OUT
|
|
215
|
-
├─ Agent A: Map technical dependencies
|
|
216
|
-
├─ Agent B: Map team/resource dependencies
|
|
217
|
-
└─ Agent C: Map external dependencies
|
|
218
|
-
|
|
219
|
-
Phase 3: REDUCE
|
|
220
|
-
└─ General-purpose agent: Dependency graph, critical path
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Implementation:**
|
|
224
|
-
```
|
|
225
|
-
# Create dependency chain
|
|
226
|
-
TaskCreate(subject="Database schema", description="...")
|
|
227
|
-
TaskCreate(subject="API models", description="...")
|
|
228
|
-
TaskCreate(subject="API endpoints", description="...")
|
|
229
|
-
TaskCreate(subject="Frontend integration", description="...")
|
|
230
|
-
|
|
231
|
-
TaskUpdate(taskId="2", addBlockedBy=["1"])
|
|
232
|
-
TaskUpdate(taskId="3", addBlockedBy=["2"])
|
|
233
|
-
TaskUpdate(taskId="4", addBlockedBy=["3"])
|
|
234
|
-
|
|
235
|
-
# Cross-team dependency
|
|
236
|
-
TaskCreate(subject="External API access", description="Waiting on partner")
|
|
237
|
-
TaskUpdate(taskId="3", addBlockedBy=["5"]) # Blocked by external
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
### Pattern: Critical Path Analysis
|
|
241
|
-
|
|
242
|
-
```
|
|
243
|
-
Phase 1: EXPLORE
|
|
244
|
-
└─ Explore agent: Map all task dependencies
|
|
245
|
-
|
|
246
|
-
Phase 2: PIPELINE
|
|
247
|
-
├─ General-purpose agent: Calculate path lengths
|
|
248
|
-
├─ General-purpose agent: Identify critical path
|
|
249
|
-
└─ General-purpose agent: Find parallel opportunities
|
|
250
|
-
|
|
251
|
-
Phase 3: REDUCE
|
|
252
|
-
└─ General-purpose agent: Optimization recommendations
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### Pattern: Dependency Resolution
|
|
256
|
-
|
|
257
|
-
```
|
|
258
|
-
Phase 1: FAN-OUT
|
|
259
|
-
├─ Agent A: Identify circular dependencies
|
|
260
|
-
├─ Agent B: Identify unnecessary dependencies
|
|
261
|
-
└─ Agent C: Identify dependency bottlenecks
|
|
262
|
-
|
|
263
|
-
Phase 2: PIPELINE
|
|
264
|
-
└─ General-purpose agent: Restructure to unblock work
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
---
|
|
268
|
-
|
|
269
|
-
## Team Coordination
|
|
270
|
-
|
|
271
|
-
### Pattern: Work Distribution
|
|
272
|
-
|
|
273
|
-
```
|
|
274
|
-
User Request: "Assign work for this sprint"
|
|
275
|
-
|
|
276
|
-
Phase 1: FAN-OUT
|
|
277
|
-
├─ Explore agent: Analyze task requirements
|
|
278
|
-
├─ Explore agent: Review team skills/capacity
|
|
279
|
-
└─ Explore agent: Check current assignments
|
|
280
|
-
|
|
281
|
-
Phase 2: REDUCE
|
|
282
|
-
└─ Plan agent: Optimal assignment recommendations
|
|
283
|
-
|
|
284
|
-
Phase 3: FAN-OUT (Parallel task assignment)
|
|
285
|
-
├─ Agent A: Create task assignments for dev 1
|
|
286
|
-
├─ Agent B: Create task assignments for dev 2
|
|
287
|
-
└─ Agent C: Create task assignments for dev 3
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### Pattern: Handoff Coordination
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
Phase 1: EXPLORE
|
|
294
|
-
└─ Explore agent: Identify tasks requiring handoffs
|
|
295
|
-
|
|
296
|
-
Phase 2: PIPELINE
|
|
297
|
-
├─ General-purpose agent: Document handoff requirements
|
|
298
|
-
├─ General-purpose agent: Create handoff checklist
|
|
299
|
-
└─ General-purpose agent: Schedule coordination points
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Pattern: Multi-Team Sync
|
|
303
|
-
|
|
304
|
-
```
|
|
305
|
-
Phase 1: FAN-OUT
|
|
306
|
-
├─ Agent A: Gather Team A status
|
|
307
|
-
├─ Agent B: Gather Team B status
|
|
308
|
-
└─ Agent C: Identify cross-team dependencies
|
|
309
|
-
|
|
310
|
-
Phase 2: REDUCE
|
|
311
|
-
└─ General-purpose agent: Cross-team status, blockers, needs
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
---
|
|
315
|
-
|
|
316
|
-
## TodoWrite Integration
|
|
317
|
-
|
|
318
|
-
For session-based project tracking:
|
|
319
|
-
```
|
|
320
|
-
TodoWrite([
|
|
321
|
-
{content: "Review current backlog", status: "in_progress", activeForm: "Reviewing backlog"},
|
|
322
|
-
{content: "Identify priorities", status: "pending", activeForm: "Identifying priorities"},
|
|
323
|
-
{content: "Break down into tasks", status: "pending", activeForm: "Breaking down tasks"},
|
|
324
|
-
{content: "Set dependencies", status: "pending", activeForm: "Setting dependencies"},
|
|
325
|
-
{content: "Assign and communicate", status: "pending", activeForm: "Assigning work"}
|
|
326
|
-
])
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
## Task vs Todo Selection
|
|
330
|
-
|
|
331
|
-
| Scenario | Use TaskCreate | Use TodoWrite |
|
|
332
|
-
|----------|---------------|---------------|
|
|
333
|
-
| Multi-session project | Yes | No |
|
|
334
|
-
| Quick session work | No | Yes |
|
|
335
|
-
| Team visibility needed | Yes | No |
|
|
336
|
-
| Dependencies to track | Yes | Maybe |
|
|
337
|
-
| Persistent record | Yes | No |
|
|
338
|
-
|
|
339
|
-
## Best Practices
|
|
340
|
-
|
|
341
|
-
1. **Break down early** - Large tasks are hard to track
|
|
342
|
-
2. **Set dependencies explicitly** - Prevents blocked work
|
|
343
|
-
3. **Update status frequently** - Real-time visibility
|
|
344
|
-
4. **Comment on blockers** - Context for resolution
|
|
345
|
-
5. **Close completed tasks immediately** - Accurate progress
|