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,282 +0,0 @@
|
|
|
1
|
-
# Testing Orchestration Patterns
|
|
2
|
-
|
|
3
|
-
## Table of Contents
|
|
4
|
-
1. [Test Generation](#test-generation)
|
|
5
|
-
2. [Test Execution](#test-execution)
|
|
6
|
-
3. [Coverage Analysis](#coverage-analysis)
|
|
7
|
-
4. [Test Maintenance](#test-maintenance)
|
|
8
|
-
5. [E2E Testing](#e2e-testing)
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Test Generation
|
|
13
|
-
|
|
14
|
-
### Pattern: Coverage-Driven Generation
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
User Request: "Add tests for the UserService"
|
|
18
|
-
|
|
19
|
-
Phase 1: EXPLORE
|
|
20
|
-
└─ Explore agent: Understand UserService methods, dependencies
|
|
21
|
-
|
|
22
|
-
Phase 2: FAN-OUT (Parallel test writing)
|
|
23
|
-
├─ Agent A: Unit tests for method group 1
|
|
24
|
-
├─ Agent B: Unit tests for method group 2
|
|
25
|
-
├─ Agent C: Integration tests for external dependencies
|
|
26
|
-
└─ Agent D: Edge cases and error scenarios
|
|
27
|
-
|
|
28
|
-
Phase 3: PIPELINE
|
|
29
|
-
└─ General-purpose agent: Verify tests pass, check coverage
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Pattern: Behavior-First
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
User Request: "Test the checkout flow"
|
|
36
|
-
|
|
37
|
-
Phase 1: EXPLORE
|
|
38
|
-
└─ Explore agent: Map checkout flow steps and branches
|
|
39
|
-
|
|
40
|
-
Phase 2: PIPELINE (Generate by behavior)
|
|
41
|
-
├─ General-purpose agent: Happy path tests
|
|
42
|
-
├─ General-purpose agent: Error path tests
|
|
43
|
-
└─ General-purpose agent: Edge case tests
|
|
44
|
-
|
|
45
|
-
Phase 3: BACKGROUND
|
|
46
|
-
└─ Background agent: Run tests, report results
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Pattern: Contract Testing
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
User Request: "Add API contract tests"
|
|
53
|
-
|
|
54
|
-
Phase 1: EXPLORE
|
|
55
|
-
└─ Explore agent: Document API endpoints and schemas
|
|
56
|
-
|
|
57
|
-
Phase 2: FAN-OUT
|
|
58
|
-
├─ Agent A: Request validation tests
|
|
59
|
-
├─ Agent B: Response schema tests
|
|
60
|
-
└─ Agent C: Error response tests
|
|
61
|
-
|
|
62
|
-
Phase 3: PIPELINE
|
|
63
|
-
└─ General-purpose agent: Integrate with CI, add OpenAPI validation
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## Test Execution
|
|
69
|
-
|
|
70
|
-
### Pattern: Parallel Test Suites
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
User Request: "Run all tests"
|
|
74
|
-
|
|
75
|
-
Phase 1: FAN-OUT (Parallel suites)
|
|
76
|
-
├─ Background agent: Unit tests
|
|
77
|
-
├─ Background agent: Integration tests
|
|
78
|
-
├─ Background agent: E2E tests
|
|
79
|
-
└─ Background agent: Performance tests
|
|
80
|
-
|
|
81
|
-
Phase 2: REDUCE
|
|
82
|
-
└─ General-purpose agent: Aggregate results, identify failures
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Pattern: Targeted Execution
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
User Request: "Test the changes I made"
|
|
89
|
-
|
|
90
|
-
Phase 1: EXPLORE
|
|
91
|
-
└─ Explore agent: Identify changed files and affected tests
|
|
92
|
-
|
|
93
|
-
Phase 2: FAN-OUT
|
|
94
|
-
├─ Background agent: Run directly affected tests
|
|
95
|
-
└─ Background agent: Run dependent module tests
|
|
96
|
-
|
|
97
|
-
Phase 3: PIPELINE
|
|
98
|
-
└─ General-purpose agent: Report results, suggest additional tests
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Pattern: Flaky Test Detection
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
Phase 1: BACKGROUND (Multiple runs)
|
|
105
|
-
├─ Background agent: Run test suite (run 1)
|
|
106
|
-
├─ Background agent: Run test suite (run 2)
|
|
107
|
-
└─ Background agent: Run test suite (run 3)
|
|
108
|
-
|
|
109
|
-
Phase 2: REDUCE
|
|
110
|
-
└─ General-purpose agent: Compare results, identify inconsistencies
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Coverage Analysis
|
|
116
|
-
|
|
117
|
-
### Pattern: Gap Identification
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
User Request: "Improve test coverage"
|
|
121
|
-
|
|
122
|
-
Phase 1: BACKGROUND
|
|
123
|
-
└─ Background agent: Run coverage report
|
|
124
|
-
|
|
125
|
-
Phase 2: EXPLORE
|
|
126
|
-
└─ Explore agent: Identify critical uncovered paths
|
|
127
|
-
|
|
128
|
-
Phase 3: FAN-OUT (Prioritized gap filling)
|
|
129
|
-
├─ Agent A: Tests for critical uncovered module 1
|
|
130
|
-
├─ Agent B: Tests for critical uncovered module 2
|
|
131
|
-
└─ Agent C: Tests for error handlers
|
|
132
|
-
|
|
133
|
-
Phase 4: PIPELINE
|
|
134
|
-
└─ General-purpose agent: Re-run coverage, verify improvement
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### Pattern: Risk-Based Coverage
|
|
138
|
-
|
|
139
|
-
```
|
|
140
|
-
Phase 1: EXPLORE
|
|
141
|
-
└─ Explore agent: Identify high-risk code (complexity, change frequency)
|
|
142
|
-
|
|
143
|
-
Phase 2: FAN-OUT
|
|
144
|
-
├─ Agent A: Analyze coverage of high-risk area 1
|
|
145
|
-
├─ Agent B: Analyze coverage of high-risk area 2
|
|
146
|
-
└─ Agent C: Analyze coverage of high-risk area 3
|
|
147
|
-
|
|
148
|
-
Phase 3: REDUCE
|
|
149
|
-
└─ General-purpose agent: Prioritized test improvement plan
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
## Test Maintenance
|
|
155
|
-
|
|
156
|
-
### Pattern: Broken Test Triage
|
|
157
|
-
|
|
158
|
-
```
|
|
159
|
-
User Request: "Fix failing tests"
|
|
160
|
-
|
|
161
|
-
Phase 1: BACKGROUND
|
|
162
|
-
└─ Background agent: Run tests, capture failures
|
|
163
|
-
|
|
164
|
-
Phase 2: FAN-OUT (Parallel diagnosis)
|
|
165
|
-
├─ Agent A: Diagnose failure group 1
|
|
166
|
-
├─ Agent B: Diagnose failure group 2
|
|
167
|
-
└─ Agent C: Diagnose failure group 3
|
|
168
|
-
|
|
169
|
-
Phase 3: FAN-OUT (Parallel fixes)
|
|
170
|
-
├─ Agent A: Fix test group 1
|
|
171
|
-
├─ Agent B: Fix test group 2
|
|
172
|
-
└─ Agent C: Fix test group 3
|
|
173
|
-
|
|
174
|
-
Phase 4: PIPELINE
|
|
175
|
-
└─ Background agent: Verify all tests pass
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Pattern: Test Refactoring
|
|
179
|
-
|
|
180
|
-
```
|
|
181
|
-
User Request: "Clean up test duplication"
|
|
182
|
-
|
|
183
|
-
Phase 1: EXPLORE
|
|
184
|
-
└─ Explore agent: Find duplicate test patterns
|
|
185
|
-
|
|
186
|
-
Phase 2: PLAN
|
|
187
|
-
└─ Plan agent: Design shared fixtures, helpers, patterns
|
|
188
|
-
|
|
189
|
-
Phase 3: FAN-OUT
|
|
190
|
-
├─ Agent A: Extract shared fixtures
|
|
191
|
-
├─ Agent B: Refactor test file group 1
|
|
192
|
-
└─ Agent C: Refactor test file group 2
|
|
193
|
-
|
|
194
|
-
Phase 4: PIPELINE
|
|
195
|
-
└─ Background agent: Verify tests still pass
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### Pattern: Mock Maintenance
|
|
199
|
-
|
|
200
|
-
```
|
|
201
|
-
Phase 1: EXPLORE
|
|
202
|
-
└─ Explore agent: Find outdated mocks (API changes, schema changes)
|
|
203
|
-
|
|
204
|
-
Phase 2: FAN-OUT
|
|
205
|
-
├─ Agent A: Update mock group 1
|
|
206
|
-
├─ Agent B: Update mock group 2
|
|
207
|
-
└─ Agent C: Update fixtures and factories
|
|
208
|
-
|
|
209
|
-
Phase 3: PIPELINE
|
|
210
|
-
└─ Background agent: Run affected tests
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
---
|
|
214
|
-
|
|
215
|
-
## E2E Testing
|
|
216
|
-
|
|
217
|
-
### Pattern: User Journey Testing
|
|
218
|
-
|
|
219
|
-
```
|
|
220
|
-
User Request: "Add E2E tests for user registration"
|
|
221
|
-
|
|
222
|
-
Phase 1: EXPLORE
|
|
223
|
-
└─ Explore agent: Map registration flow, identify test scenarios
|
|
224
|
-
|
|
225
|
-
Phase 2: PIPELINE (Sequential scenarios)
|
|
226
|
-
├─ General-purpose agent: Happy path registration
|
|
227
|
-
├─ General-purpose agent: Validation error scenarios
|
|
228
|
-
├─ General-purpose agent: Duplicate email handling
|
|
229
|
-
└─ General-purpose agent: Email verification flow
|
|
230
|
-
|
|
231
|
-
Phase 3: BACKGROUND
|
|
232
|
-
└─ Background agent: Run E2E suite, capture screenshots
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### Pattern: Cross-Browser Testing
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
Phase 1: FAN-OUT (Parallel browsers)
|
|
239
|
-
├─ Background agent: Run E2E in Chrome
|
|
240
|
-
├─ Background agent: Run E2E in Firefox
|
|
241
|
-
├─ Background agent: Run E2E in Safari
|
|
242
|
-
└─ Background agent: Run E2E in Edge
|
|
243
|
-
|
|
244
|
-
Phase 2: REDUCE
|
|
245
|
-
└─ General-purpose agent: Browser compatibility report
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### Pattern: Visual Regression
|
|
249
|
-
|
|
250
|
-
```
|
|
251
|
-
Phase 1: BACKGROUND
|
|
252
|
-
└─ Background agent: Run visual regression tests
|
|
253
|
-
|
|
254
|
-
Phase 2: EXPLORE (If failures)
|
|
255
|
-
└─ Explore agent: Compare screenshots, identify changes
|
|
256
|
-
|
|
257
|
-
Phase 3: PIPELINE
|
|
258
|
-
└─ General-purpose agent: Categorize as bugs vs intentional changes
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
## TodoWrite for Testing
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
TodoWrite([
|
|
267
|
-
{content: "Identify testing scope and strategy", status: "in_progress", activeForm: "Identifying scope"},
|
|
268
|
-
{content: "Generate/update test cases", status: "pending", activeForm: "Generating tests"},
|
|
269
|
-
{content: "Run test suite", status: "pending", activeForm: "Running tests"},
|
|
270
|
-
{content: "Analyze results and coverage", status: "pending", activeForm: "Analyzing results"},
|
|
271
|
-
{content: "Fix failures or gaps", status: "pending", activeForm: "Fixing issues"},
|
|
272
|
-
{content: "Verify all tests pass", status: "pending", activeForm: "Verifying tests"}
|
|
273
|
-
])
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
## Test Execution Best Practices
|
|
277
|
-
|
|
278
|
-
1. **Always run in background** for long test suites
|
|
279
|
-
2. **Parallelize independent suites** (unit, integration, e2e)
|
|
280
|
-
3. **Fail fast** - stop on first failure for quick feedback
|
|
281
|
-
4. **Capture artifacts** - screenshots, logs, coverage reports
|
|
282
|
-
5. **Report actionable results** - file:line for failures
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/code-review.md
RENAMED
|
File without changes
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/data-analysis.md
RENAMED
|
File without changes
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/devops.md
RENAMED
|
File without changes
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/documentation.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/research.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/skills/{multi-agent-orchestrator → orchestration}/references/domains/testing.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|