game-optimizelisted
Install: claude install-skill AirMile/claude-config
# Optimize
Autonomous improvement loop for Godot 4.x: define metric → spawn parallel subagents in worktrees → keep improvements, discard regressions → loop until stall.
**Trigger**: `/game-optimize` or `/game-optimize [auto]`
Inspired by the `evo-hq/evo` autoresearch pattern, integrated with `.project/` and GUT testing. No external dependency.
## Input
No required input. Config interactively in PHASE 1 or via resume.
## Output
```
.project/optimize/{run-id}/
├── spec.json # metric, gate, scope, baseline, parameters
├── tree.json # nodes (id, parent, branch, score, status, hypotheses)
├── runs/{NNNN}.json # per-round result
├── benchmark.tscn # Godot benchmark scene (generated from template)
├── benchmark.gd # Godot benchmark script (parses SCORE= line)
├── gate.sh # default: GUT testsuite headless
└── branches.txt # cleanup list for abort
```
Update on completion: `.project/project.json` → push to `optimization_runs[]`.
## Process
**Phase tracking** — first action of the skill: call `TaskCreate` with these 7 items (status `pending`), then use `TaskUpdate` to set `in_progress` at the start and `completed` at the end of each phase. During context compaction the task list stays visible — no risk of forgotten phases.
1. PHASE 0: Pre-flight
2. PHASE 1: Define Metric
3. PHASE 2: Instrument Benchmark
4. PHASE 3: Baseline Run
5. PHASE 4: Optimize Loop
6. PHASE 5: Pick Winner
7. PHASE 6: Sync + Report
### PHASE 0: Pre-flight