opencode-skills-collection 3.0.45 → 3.0.47
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/bundled-skills/.antigravity-install-manifest.json +10 -1
- package/bundled-skills/2slides-ppt-generator/SKILL.md +1 -1
- package/bundled-skills/2slides-ppt-generator/scripts/create_pdf_slides.py +2 -1
- package/bundled-skills/2slides-ppt-generator/scripts/generate_narration.py +2 -1
- package/bundled-skills/2slides-ppt-generator/scripts/generate_slides.py +13 -7
- package/bundled-skills/android-dev/references/hybrid.md +7 -4
- package/bundled-skills/android-dev/references/react-native.md +5 -2
- package/bundled-skills/atlas-contract/SKILL.md +4 -4
- package/bundled-skills/atlas-ledger/SKILL.md +10 -7
- package/bundled-skills/bun-development/SKILL.md +1 -1
- package/bundled-skills/cloud-penetration-testing/SKILL.md +1 -1
- package/bundled-skills/codebase-to-wordpress-converter/SKILL.md +1 -0
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/dos-verify-done-claims/SKILL.md +173 -0
- package/bundled-skills/ecl-harness-engineer/LICENSE +21 -0
- package/bundled-skills/ecl-harness-engineer/SKILL.md +714 -0
- package/bundled-skills/ecl-harness-engineer/agents/analyzer.md +119 -0
- package/bundled-skills/ecl-harness-engineer/agents/auditor.md +212 -0
- package/bundled-skills/ecl-harness-engineer/agents/creator-config.md +343 -0
- package/bundled-skills/ecl-harness-engineer/agents/creator-docs.md +201 -0
- package/bundled-skills/ecl-harness-engineer/agents/creator-linters.md +123 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/adapter-schema.md +204 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/generic.md +156 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/go.md +212 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/java.md +205 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/python.md +225 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/rust.md +220 -0
- package/bundled-skills/ecl-harness-engineer/references/adapters/typescript.md +245 -0
- package/bundled-skills/ecl-harness-engineer/references/architecture-diagrams.md +420 -0
- package/bundled-skills/ecl-harness-engineer/references/audit-templates.md +649 -0
- package/bundled-skills/ecl-harness-engineer/references/capability-registry.md +485 -0
- package/bundled-skills/ecl-harness-engineer/references/darwin-eval-prompts.md +373 -0
- package/bundled-skills/ecl-harness-engineer/references/documentation-templates.md +741 -0
- package/bundled-skills/ecl-harness-engineer/references/durability-patterns.md +423 -0
- package/bundled-skills/ecl-harness-engineer/references/ecl-harness.md +1431 -0
- package/bundled-skills/ecl-harness-engineer/references/environment-config-guide.md +534 -0
- package/bundled-skills/ecl-harness-engineer/references/environment-detection-guide.md +751 -0
- package/bundled-skills/ecl-harness-engineer/references/eval-templates.md +377 -0
- package/bundled-skills/ecl-harness-engineer/references/gc-templates.md +798 -0
- package/bundled-skills/ecl-harness-engineer/references/greenfield-templates.md +1385 -0
- package/bundled-skills/ecl-harness-engineer/references/linter-templates.md +448 -0
- package/bundled-skills/ecl-harness-engineer/references/observability-templates.md +315 -0
- package/bundled-skills/environment-setup-guide/SKILL.md +2 -2
- package/bundled-skills/evolution/SKILL.md +1 -1
- package/bundled-skills/gitops-workflow/SKILL.md +1 -1
- package/bundled-skills/linkerd-patterns/SKILL.md +1 -1
- package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package-lock.json +504 -1317
- package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package.json +2 -2
- package/bundled-skills/lovable-cleanup/SKILL.md +416 -0
- package/bundled-skills/monopoly/SKILL.md +397 -0
- package/bundled-skills/monopoly/patterns/SKILL.md +331 -0
- package/bundled-skills/monopoly/scale-benchmarks/SKILL.md +174 -0
- package/bundled-skills/monopoly/security-checklist/SKILL.md +69 -0
- package/bundled-skills/monopoly/tech-matrix/SKILL.md +268 -0
- package/bundled-skills/pagespeed-enhancer/SKILL.md +579 -0
- package/bundled-skills/polis-protocol/SKILL.md +6 -3
- package/bundled-skills/unship/SKILL.md +11 -5
- package/bundled-skills/uv-package-manager/resources/implementation-playbook.md +1 -1
- package/bundled-skills/varlock/SKILL.md +2 -2
- package/package.json +1 -1
- package/skills_index.json +204 -4
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
# Capability Registry
|
|
2
|
+
|
|
3
|
+
This registry defines the available capabilities for the harness system.
|
|
4
|
+
Instead of rigid phases, agents select capabilities based on what the task needs.
|
|
5
|
+
|
|
6
|
+
This is an advanced capability reference, not the default core harness file list. References to
|
|
7
|
+
trace outputs or runtime verification reports describe executor/runtime behavior and should not
|
|
8
|
+
cause ecl-harness-engineer to create `harness/trace` by default.
|
|
9
|
+
|
|
10
|
+
## Design Philosophy
|
|
11
|
+
|
|
12
|
+
**Capability-Driven vs Phase-Driven**:
|
|
13
|
+
- Old model: "Execute Phase 1, then Phase 2, then Phase 3"
|
|
14
|
+
- New model: "Achieve goal by selecting and composing capabilities"
|
|
15
|
+
|
|
16
|
+
Capabilities are:
|
|
17
|
+
- **Declarative**: Define what they provide, not how they work
|
|
18
|
+
- **Composable**: Can be combined in different ways for different tasks
|
|
19
|
+
- **Dependency-aware**: Declare what they need to run
|
|
20
|
+
|
|
21
|
+
## Capability Graph
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
┌──────────────────┐
|
|
25
|
+
│ discover_project │
|
|
26
|
+
│ (entry point) │
|
|
27
|
+
└────────┬─────────┘
|
|
28
|
+
│
|
|
29
|
+
┌──────────────┼──────────────┐
|
|
30
|
+
│ │ │
|
|
31
|
+
▼ ▼ ▼
|
|
32
|
+
┌─────────────┐ ┌──────────────┐ ┌────────────────┐
|
|
33
|
+
│ analyze │ │ classify │ │ audit_harness │
|
|
34
|
+
│ architecture│ │ complexity │ │ │
|
|
35
|
+
└──────┬──────┘ └──────┬───────┘ └────────┬───────┘
|
|
36
|
+
│ │ │
|
|
37
|
+
▼ ▼ │
|
|
38
|
+
┌─────────────┐ ┌──────────────┐ │
|
|
39
|
+
│ create │ │ plan │ │
|
|
40
|
+
│ linters │ │ task │ │
|
|
41
|
+
└─────────────┘ └──────┬───────┘ │
|
|
42
|
+
│ │
|
|
43
|
+
▼ │
|
|
44
|
+
┌──────────────┐ │
|
|
45
|
+
│ execute │ │
|
|
46
|
+
│ phase │◄──────────┤
|
|
47
|
+
└──────┬───────┘ │
|
|
48
|
+
│ │
|
|
49
|
+
┌─────────────┼─────────────┐ │
|
|
50
|
+
│ │ │ │
|
|
51
|
+
▼ ▼ ▼ │
|
|
52
|
+
┌───────────┐ ┌───────────┐ ┌──────────┐│
|
|
53
|
+
│ validate │ │ verify │ │ verify ││
|
|
54
|
+
│ static │ │ runtime │ │functional││
|
|
55
|
+
└───────────┘ └───────────┘ └──────────┘│
|
|
56
|
+
│
|
|
57
|
+
┌──────────────────┘
|
|
58
|
+
▼
|
|
59
|
+
┌──────────────┐
|
|
60
|
+
│ improve │
|
|
61
|
+
│ harness │
|
|
62
|
+
└──────────────┘
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Capability Definitions
|
|
68
|
+
|
|
69
|
+
### discover_project
|
|
70
|
+
|
|
71
|
+
**Entry point capability.** Discovers project structure, tech stack, and files.
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
capability: discover_project
|
|
75
|
+
provides:
|
|
76
|
+
- project_type # go, typescript, python, java, rust, generic
|
|
77
|
+
- tech_stack # {language, framework, package_manager, build_tool}
|
|
78
|
+
- file_structure # key directories and entry points
|
|
79
|
+
- dependencies # external packages
|
|
80
|
+
- adapter # resolved language adapter
|
|
81
|
+
requires: [] # No dependencies - this is the entry point
|
|
82
|
+
|
|
83
|
+
implementation:
|
|
84
|
+
script: detect_adapter.py
|
|
85
|
+
output: harness/.analysis/project.json
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Example output:**
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"project_type": "go",
|
|
92
|
+
"tech_stack": {
|
|
93
|
+
"language": "go",
|
|
94
|
+
"framework": "chi",
|
|
95
|
+
"package_manager": "go",
|
|
96
|
+
"build_tool": "make"
|
|
97
|
+
},
|
|
98
|
+
"file_structure": {
|
|
99
|
+
"source_dirs": ["cmd/", "internal/"],
|
|
100
|
+
"entry_points": ["cmd/server/main.go", "cmd/cli/main.go"],
|
|
101
|
+
"config_files": ["go.mod", "Makefile"]
|
|
102
|
+
},
|
|
103
|
+
"adapter": { ... }
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### analyze_architecture
|
|
110
|
+
|
|
111
|
+
Analyzes code architecture: imports, layers, interfaces, code paths.
|
|
112
|
+
|
|
113
|
+
```yaml
|
|
114
|
+
capability: analyze_architecture
|
|
115
|
+
provides:
|
|
116
|
+
- layer_map # package → layer mapping
|
|
117
|
+
- import_graph # who imports whom
|
|
118
|
+
- circular_deps # problematic cycles
|
|
119
|
+
- key_interfaces # important abstractions
|
|
120
|
+
- code_paths # traced execution flows
|
|
121
|
+
requires:
|
|
122
|
+
- project_type
|
|
123
|
+
- file_structure
|
|
124
|
+
|
|
125
|
+
implementation:
|
|
126
|
+
agent: agents/analyzer.md
|
|
127
|
+
output: harness/.analysis/architecture.json
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### classify_complexity
|
|
133
|
+
|
|
134
|
+
Classifies task complexity to determine execution strategy.
|
|
135
|
+
|
|
136
|
+
```yaml
|
|
137
|
+
capability: classify_complexity
|
|
138
|
+
provides:
|
|
139
|
+
- complexity_level # simple, medium, complex
|
|
140
|
+
- execution_mode # direct, subagent, worktree
|
|
141
|
+
- estimated_phases # how many execution phases expected
|
|
142
|
+
requires:
|
|
143
|
+
- project_type
|
|
144
|
+
|
|
145
|
+
classification_rules:
|
|
146
|
+
simple:
|
|
147
|
+
criteria:
|
|
148
|
+
- Single file change OR doc-only change
|
|
149
|
+
- No architectural impact
|
|
150
|
+
- Clear, isolated scope
|
|
151
|
+
execution_mode: direct
|
|
152
|
+
verification: static_only
|
|
153
|
+
|
|
154
|
+
medium:
|
|
155
|
+
criteria:
|
|
156
|
+
- Multi-file change (2-5 files)
|
|
157
|
+
- Clear scope, well-defined deliverable
|
|
158
|
+
- May affect multiple layers
|
|
159
|
+
execution_mode: subagent
|
|
160
|
+
verification: static + runtime + functional
|
|
161
|
+
|
|
162
|
+
complex:
|
|
163
|
+
criteria:
|
|
164
|
+
- Major refactoring OR 6+ files
|
|
165
|
+
- Cross-cutting concerns
|
|
166
|
+
- Architectural changes
|
|
167
|
+
execution_mode: worktree
|
|
168
|
+
verification: full pyramid
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
### create_documentation
|
|
174
|
+
|
|
175
|
+
Creates or updates harness documentation.
|
|
176
|
+
|
|
177
|
+
```yaml
|
|
178
|
+
capability: create_documentation
|
|
179
|
+
provides:
|
|
180
|
+
- agents_md # AGENTS.md navigation map
|
|
181
|
+
- architecture_md # docs/ARCHITECTURE.md
|
|
182
|
+
- development_md # docs/DEVELOPMENT.md
|
|
183
|
+
- design_docs # docs/design-docs/*.md
|
|
184
|
+
requires:
|
|
185
|
+
- layer_map
|
|
186
|
+
- key_interfaces
|
|
187
|
+
- code_paths
|
|
188
|
+
|
|
189
|
+
implementation:
|
|
190
|
+
agent: agents/creator-docs.md
|
|
191
|
+
output_dir: docs/
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
### create_linters
|
|
197
|
+
|
|
198
|
+
Creates architectural linter scripts.
|
|
199
|
+
|
|
200
|
+
```yaml
|
|
201
|
+
capability: create_linters
|
|
202
|
+
provides:
|
|
203
|
+
- lint_deps_script # scripts/lint-deps.{ext}
|
|
204
|
+
- lint_quality_script # scripts/lint-quality.{ext}
|
|
205
|
+
- layer_map_code # Embedded layer definitions
|
|
206
|
+
requires:
|
|
207
|
+
- layer_map
|
|
208
|
+
- tech_stack
|
|
209
|
+
|
|
210
|
+
implementation:
|
|
211
|
+
agent: agents/creator-linters.md
|
|
212
|
+
templates: references/linter-templates.md
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
### create_harness_config
|
|
218
|
+
|
|
219
|
+
Creates harness configuration files.
|
|
220
|
+
|
|
221
|
+
```yaml
|
|
222
|
+
capability: create_harness_config
|
|
223
|
+
provides:
|
|
224
|
+
- environment_json # harness/config/environment.json
|
|
225
|
+
- setup_scripts # harness/scripts/*.sh
|
|
226
|
+
- makefile_targets # Makefile additions
|
|
227
|
+
- ci_config # .github/workflows/ci.yml
|
|
228
|
+
requires:
|
|
229
|
+
- tech_stack
|
|
230
|
+
- dependencies
|
|
231
|
+
|
|
232
|
+
implementation:
|
|
233
|
+
agent: agents/creator-config.md
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### plan_task
|
|
239
|
+
|
|
240
|
+
Creates execution plan for a development task.
|
|
241
|
+
|
|
242
|
+
```yaml
|
|
243
|
+
capability: plan_task
|
|
244
|
+
provides:
|
|
245
|
+
- execution_plan # docs/exec-plans/active/*.md
|
|
246
|
+
- phases # Numbered implementation phases
|
|
247
|
+
- file_targets # Files to create/modify per phase
|
|
248
|
+
requires:
|
|
249
|
+
- complexity_level
|
|
250
|
+
- layer_map # For architectural context
|
|
251
|
+
- key_interfaces # For understanding dependencies
|
|
252
|
+
|
|
253
|
+
implementation:
|
|
254
|
+
coordinator: true # Main agent does this, not subagent
|
|
255
|
+
output: docs/exec-plans/active/{date}-{slug}.md
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
### execute_phase
|
|
261
|
+
|
|
262
|
+
Executes one phase of a development task.
|
|
263
|
+
|
|
264
|
+
```yaml
|
|
265
|
+
capability: execute_phase
|
|
266
|
+
provides:
|
|
267
|
+
- code_changes # Files modified
|
|
268
|
+
- files_created # New files
|
|
269
|
+
- validation_result # Did changes pass basic checks?
|
|
270
|
+
requires:
|
|
271
|
+
- execution_plan
|
|
272
|
+
- phase_number
|
|
273
|
+
|
|
274
|
+
implementation:
|
|
275
|
+
agent: agents/templates/executor-core.md + mixins
|
|
276
|
+
output: JSON result with status, files, lessons
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
### validate_static
|
|
282
|
+
|
|
283
|
+
Runs static validation: build, lint, test.
|
|
284
|
+
|
|
285
|
+
```yaml
|
|
286
|
+
capability: validate_static
|
|
287
|
+
provides:
|
|
288
|
+
- build_result # Compilation passed?
|
|
289
|
+
- lint_result # Lint checks passed?
|
|
290
|
+
- test_result # Tests passed?
|
|
291
|
+
- validation_report # Full report
|
|
292
|
+
requires:
|
|
293
|
+
- tech_stack
|
|
294
|
+
|
|
295
|
+
implementation:
|
|
296
|
+
script: validate.py
|
|
297
|
+
output: harness/trace/validation-report.json
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
### verify_runtime
|
|
303
|
+
|
|
304
|
+
Runs runtime smoke verification.
|
|
305
|
+
|
|
306
|
+
```yaml
|
|
307
|
+
capability: verify_runtime
|
|
308
|
+
provides:
|
|
309
|
+
- server_health # Server starts and responds?
|
|
310
|
+
- endpoint_tests # API endpoints work?
|
|
311
|
+
- cli_tests # CLI commands work?
|
|
312
|
+
- verification_report # Full report
|
|
313
|
+
requires:
|
|
314
|
+
- runtime_verify_plan # Generated by executor/runtime from environment.json + task context
|
|
315
|
+
- code_changes # What was changed (for task-specific tests)
|
|
316
|
+
|
|
317
|
+
implementation:
|
|
318
|
+
script: verify.py
|
|
319
|
+
output: harness/trace/verify-report.json
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
### verify_functional
|
|
325
|
+
|
|
326
|
+
Runs deep functional verification with realistic scenarios.
|
|
327
|
+
|
|
328
|
+
```yaml
|
|
329
|
+
capability: verify_functional
|
|
330
|
+
provides:
|
|
331
|
+
- scenario_results # Did scenarios pass?
|
|
332
|
+
- side_effect_checks # Were side effects correct?
|
|
333
|
+
- verification_report # Full report with evidence
|
|
334
|
+
requires:
|
|
335
|
+
- verify_runtime # Smoke tests must pass first
|
|
336
|
+
- code_changes
|
|
337
|
+
|
|
338
|
+
implementation:
|
|
339
|
+
agent: agents/composed/verifier.md
|
|
340
|
+
output: harness/trace/verification-report.json
|
|
341
|
+
|
|
342
|
+
required_for:
|
|
343
|
+
- medium tasks
|
|
344
|
+
- complex tasks
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
### audit_harness
|
|
350
|
+
|
|
351
|
+
Audits existing harness quality.
|
|
352
|
+
|
|
353
|
+
```yaml
|
|
354
|
+
capability: audit_harness
|
|
355
|
+
provides:
|
|
356
|
+
- harness_score # 0-100 quality score
|
|
357
|
+
- dimension_scores # Per-dimension breakdown
|
|
358
|
+
- gaps # Missing or weak areas
|
|
359
|
+
- improvement_plan # Prioritized fixes
|
|
360
|
+
requires:
|
|
361
|
+
- project_type
|
|
362
|
+
|
|
363
|
+
implementation:
|
|
364
|
+
agent: agents/auditor.md
|
|
365
|
+
output: harness/.analysis/audit.json
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
### improve_harness
|
|
371
|
+
|
|
372
|
+
Improves harness based on feedback.
|
|
373
|
+
|
|
374
|
+
```yaml
|
|
375
|
+
capability: improve_harness
|
|
376
|
+
provides:
|
|
377
|
+
- updated_linters # Improved lint rules
|
|
378
|
+
- updated_docs # Fixed/expanded documentation
|
|
379
|
+
- updated_config # Better verification config
|
|
380
|
+
requires:
|
|
381
|
+
- audit_harness
|
|
382
|
+
- OR failure_patterns # From harness_critic.py
|
|
383
|
+
|
|
384
|
+
implementation:
|
|
385
|
+
skill: ecl-harness-engineer (with Improve mode)
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
### auto_evolve_harness
|
|
391
|
+
|
|
392
|
+
Improves harness from accumulated archived change evidence.
|
|
393
|
+
|
|
394
|
+
```yaml
|
|
395
|
+
capability: auto_evolve_harness
|
|
396
|
+
provides:
|
|
397
|
+
- evolution_proposal # Evidence-backed harness deltas
|
|
398
|
+
- updated_docs # ECL/templates/development guidance when justified
|
|
399
|
+
- updated_linters # Only when repeated evidence supports a mechanical rule
|
|
400
|
+
- results_log # harness/evolution/results.tsv keep/revert row
|
|
401
|
+
requires:
|
|
402
|
+
- harness/evolution/pending.md
|
|
403
|
+
- harness/changes/INDEX.json
|
|
404
|
+
|
|
405
|
+
implementation:
|
|
406
|
+
skill: ecl-harness-engineer (Auto-Evolve mode)
|
|
407
|
+
guardrails:
|
|
408
|
+
- create dedicated active change
|
|
409
|
+
- read candidate archive summaries before deeper files
|
|
410
|
+
- keep only if audit score improves and validation passes
|
|
411
|
+
- do not create eval/trace/memory/checkpoints/metrics by default
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Selection Logic
|
|
417
|
+
|
|
418
|
+
The agent selects capabilities based on the task:
|
|
419
|
+
|
|
420
|
+
### New Project Bootstrap
|
|
421
|
+
```
|
|
422
|
+
discover_project
|
|
423
|
+
→ analyze_architecture
|
|
424
|
+
→ create_documentation + create_linters + create_harness_config
|
|
425
|
+
→ validate_static
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### Simple Task (e.g., fix typo)
|
|
429
|
+
```
|
|
430
|
+
discover_project
|
|
431
|
+
→ classify_complexity (→ simple)
|
|
432
|
+
→ execute_phase (direct, no subagent)
|
|
433
|
+
→ validate_static
|
|
434
|
+
→ done
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Medium Task (e.g., add API endpoint)
|
|
438
|
+
```
|
|
439
|
+
discover_project
|
|
440
|
+
→ classify_complexity (→ medium)
|
|
441
|
+
→ analyze_architecture (if not cached)
|
|
442
|
+
→ plan_task
|
|
443
|
+
→ [execute_phase loop]
|
|
444
|
+
→ validate_static
|
|
445
|
+
→ verify_runtime
|
|
446
|
+
→ verify_functional (MANDATORY)
|
|
447
|
+
→ done
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### Complex Task (e.g., refactor auth system)
|
|
451
|
+
```
|
|
452
|
+
discover_project
|
|
453
|
+
→ classify_complexity (→ complex)
|
|
454
|
+
→ analyze_architecture
|
|
455
|
+
→ plan_task (detailed, multi-phase)
|
|
456
|
+
→ EnterWorktree (isolation)
|
|
457
|
+
→ [execute_phase loop with checkpoints]
|
|
458
|
+
→ validate_static
|
|
459
|
+
→ verify_runtime
|
|
460
|
+
→ verify_functional (MANDATORY, multiple scenarios)
|
|
461
|
+
→ audit_harness (post-task)
|
|
462
|
+
→ done
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
### Harness Audit/Improvement
|
|
466
|
+
```
|
|
467
|
+
discover_project
|
|
468
|
+
→ audit_harness
|
|
469
|
+
→ improve_harness (if gaps found)
|
|
470
|
+
→ validate_static
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
## Caching
|
|
476
|
+
|
|
477
|
+
Capabilities can cache their output to avoid re-computation:
|
|
478
|
+
|
|
479
|
+
| Capability | Cache Location | TTL |
|
|
480
|
+
|------------|---------------|-----|
|
|
481
|
+
| discover_project | harness/.analysis/project.json | Until project files change |
|
|
482
|
+
| analyze_architecture | harness/.analysis/architecture.json | Until source files change |
|
|
483
|
+
| audit_harness | harness/.analysis/audit.json | 24 hours |
|
|
484
|
+
|
|
485
|
+
Cache invalidation: Compare file mtimes against cache mtime.
|