soleri-test-driven-developmentlisted
Install: claude install-skill adrozdenko/soleri
# Test-Driven Development (TDD)
**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
## Before You Start — Search First
### Check Vault for Testing Patterns
```
YOUR_AGENT_core op:search_intelligent
params: { query: "<domain> testing patterns" }
```
```
YOUR_AGENT_core op:search_intelligent
params: { query: "<what you're about to test>" }
YOUR_AGENT_core op:brain_strengths
```
If vault has testing guidance for this domain, follow it.
## Start a TDD Loop
```
YOUR_AGENT_core op:loop_start
params: { prompt: "TDD: <feature>", mode: "custom" }
```
## The Iron Law
```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```
Write code before the test? Delete it. Start over. No exceptions.
## Red-Green-Refactor
### RED — Write Failing Test
One behavior, clear name, real code (no mocks unless unavoidable). Run test, confirm it **fails** for the expected reason (feature missing, not typos). Track: `op:loop_iterate`.
### GREEN — Minimal Code
Simplest code to pass the test. Don't add features beyond the test. Run test, confirm it **passes** and other tests still pass. Track: `op:loop_iterate`.
### REFACTOR — Clean Up
After green only: remove duplication, improve names, extract helpers. Keep tests green. Don't add behavior.
### Repeat
Next failing test for next behavior.
## Verification Checklist
- [ ] Every new function has a test
- [ ] Watched each test fail before implementing
- [ ] Failed for expected reason (not ty