Install any skill in seconds. Free to start, no credit card required.
Get Started Free →TDD workflow for migrations - orchestrate agents, zero main context growth
.claude/skills/tdd-migrate/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 721% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 61% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 80% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 30% | 0% |
Orchestrate TDD migrations with agents doing all work. Main context stays clean.
/tdd-migrate <source_path> <target_path> --pattern <reference> --items "item1,item2,item3"source_path: Path to analyze (existing code)target_path: Where to create new codepattern: Reference file/pattern to followitems: Comma-separated list of things to createPhase 0: YAML TODO List
│
▼
Phase 1: TLDR Analysis ─────────────────┐
│ │
▼ │ Parallel scouts
Phase 2: Write Failing Tests ───────────┤ per item
│ │
▼ │
Phase 3: Implement (minimal) ───────────┤
│ │
▼ │
Phase 4: Build + Pass Tests ────────────┘
│
▼
Phase 5: QLTY Check ────────────────────┐
│ │ Parallel
Phase 6: Review Agent Validates ────────┘
│
▼
Phase 7: TLDR Diff (new vs reference)
│
▼
Phase 8: Fix Issues (if any)
│
▼
Complete| Task | Agent | |------|-------| | Explore/analyze | scout | | Write tests + implement | kraken | | Quick fixes | spark | | Run tests/validate | validator | | Code review | critic |
Write a YAML plan file to thoughts/shared/plans/<name>-tdd.yaml:
yaml--- title: <Migration Name> date: <today> type: implementation-plan approach: TDD (test → build → pass → review) items: - name: item1 file: <target_path>/item1.ts test: <target_path>/__tests__/item1.test.ts deps: [] - name: item2 # ... reference: <pattern_file> workflow: per_item: 1: Write failing test 2: Implement minimal 3: Build 4: Pass test 5: QLTY check 6: Review final: 7: Integration test 8: TLDR diff
Task (scout): Analyze <source_path> with TLDR
Task (scout): Analyze <pattern> to understand structure
Task (scout): Read migration handoff if existsFor each item, launch ONE kraken that does full TDD:
Task (kraken): Implement <item> using TDD workflow
1. Read pattern file
2. Write failing test
3. Implement
4. Run: bun test <test_file>
5. Run: qlty check <impl_file>Task (critic): Review all new files against pattern
Task (validator): Run full test suite
Task (validator): QLTY check all filesIf critic/validator found issues:
Task (spark): Fix <specific issue>
Task (validator): Re-validateTask (validator): TLDR diff new files vs reference
- tldr structure <new_file> --lang <lang>
- tldr structure <reference> --lang <lang>
- Compare patternsUpdate ledger with completed work.
bash/tdd-migrate ~/your-project/src/sdk/providers \ ~/your-project/src/sdk/providers \ --pattern lmstudio.ts \ --items "xai,cerebras,togetherai,deepinfra,perplexity"
Resulted in:
| Bad | Good | |-----|------| | Read files in main context | Launch scout agent | | Write code in main context | Launch kraken/spark agent | | Run tests in main context | Launch validator agent | | Skip review | Always launch critic | | Sequential items | Parallel krakens | | Fix in main context | Launch spark |
Explore <path> to understand:
1. Structure/patterns
2. Interfaces/types
3. Dependencies
Return actionable summary for implementation.Implement <item> using TDD:
1. Read <pattern> for structure
2. Write failing test to <test_path>
3. Implement minimal to <impl_path>
4. Run: <test_command>
5. Run: qlty check <impl_path>
Report: status, issues, files created.Review <files> against <pattern>:
1. Pattern compliance
2. Type safety
3. Missing registrations
4. Security issues
DO NOT edit. Report issues only.Fix <specific issue>:
1. Read <file>
2. Make minimal edit
3. Verify fixValidate <files>:
1. Run <test_command>
2. Run qlty check
3. Report pass/fail/issues| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-07 | fail→pass | 16,783 | 5,757 | -66% | 1 | 1 | 0% | 3,253 | 2,829 | -13% | 0 | 0 | — |
case-01 | fail→fail | 3,872 | 13,093 | +238% | 1 | 1 | 0% | 214 | 2,523 | +1079% | 0 | 0 | — |
case-02 | fail→fail | 4,137 | 5,911 | +43% | 1 | 1 | 0% | 276 | 2,331 | +745% | 0 | 0 | — |
case-03 | fail→pass | 4,268 | 6,361 | +49% | 1 | 1 | 0% | 358 | 2,938 | +721% | 0 | 0 | — |
case-04 | fail→fail | 4,704 | 4,878 | +4% | 1 | 1 | 0% | 223 | 2,223 | +897% | 0 | 0 | — |
case-05 | pass→fail | 15,492 | 10,463 | -32% | 1 | 1 | 0% | 3,062 | 2,386 | -22% | 0 | 0 | — |
case-06 | pass→pass | 10,665 | 6,872 | -36% | 1 | 1 | 0% | 2,155 | 2,854 | +32% | 0 | 0 | — |
case-08 | fail→pass | 9,483 | 5,644 | -40% | 1 | 1 | 0% | 1,661 | 2,677 | +61% | 0 | 0 | — |
case-09 | fail→pass | 10,444 | 11,792 | +13% | 1 | 1 | 0% | 1,953 | 3,523 | +80% | 0 | 0 | — |
case-10 | fail→pass | 9,747 | 3,290 | -66% | 1 | 1 | 0% | 1,666 | 2,169 | +30% | 0 | 0 | — |
case-11 | fail→pass | 16,684 | 8,956 | -46% | 1 | 1 | 0% | 2,868 | 3,137 | +9% | 0 | 0 | — |
case-12 | fail→pass | 3,331 | 2,393 | -28% | 1 | 1 | 0% | 531 | 1,942 | +266% | 0 | 0 | — |
case-13 | fail→fail | 5,244 | 2,870 | -45% | 1 | 1 | 0% | 881 | 2,112 | +140% | 0 | 0 | — |
case-14 | fail→pass | 14,124 | 9,378 | -34% | 1 | 1 | 0% | 2,279 | 3,560 | +56% | 0 | 0 | — |
case-15 | fail→pass | 8,244 | 2,427 | -71% | 1 | 1 | 0% | 1,210 | 2,004 | +66% | 0 | 0 | — |
case-16 | pass→pass | 16,536 | 4,332 | -74% | 1 | 1 | 0% | 2,416 | 2,316 | -4% | 0 | 0 | — |
case-17 | pass→pass | 13,163 | 5,548 | -58% | 1 | 1 | 0% | 2,258 | 2,602 | +15% | 0 | 0 | — |
case-18 | fail→pass | 13,503 | 8,830 | -35% | 1 | 1 | 0% | 2,280 | 2,860 | +25% | 0 | 0 | — |
case-19 | pass→pass | 12,645 | 6,933 | -45% | 1 | 1 | 0% | 2,325 | 2,756 | +19% | 0 | 0 | — |
case-20 | pass→pass | 12,497 | 6,399 | -49% | 1 | 1 | 0% | 2,154 | 2,746 | +27% | 0 | 0 | — |
case-21 | fail→pass | 11,173 | 5,214 | -53% | 1 | 1 | 0% | 1,845 | 2,485 | +35% | 0 | 0 | — |
case-22 | fail→pass | 24,494 | 4,649 | -81% | 1 | 1 | 0% | 2,255 | 2,363 | +5% | 0 | 0 | — |
case-23 | fail→pass | 10,573 | 2,020 | -81% | 1 | 1 | 0% | 1,644 | 1,784 | +9% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 18 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +52 percentage points is the difference between those two pass rates over the 18 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/29/2026 | +59% |
Other measured skills in the registry, with their headline benchmark lift.