diblaze/solo/tdd
Claude Code and agent skill by diblaze/solo
- community
Checking that the SKILL.md file is still in the repository.
Red-green-refactor loop with an enforced observed-failure gate. Use when a behavior is worth driving from tests — parsers, money/auth paths, state machines, anything with branches. Does not plan the feature — use solo:plan. Does not restructure existing code without new behavior — use solo:refactor. Does not hunt a bug — use solo:investigate.
Install
npx vskill@latest install diblaze/solo/tddSKILL.md
The same SKILL.md was published earlier as diblaze/solo/tdd.
TDD
Only for logic with real branching. A one-liner or a wiring change does not get a loop — YAGNI applies to tests too.
0. Behavior list
Before any code: list the behaviors as one line each, ordered simplest first (empty/zero/null → one → many → error → boundary). Show the list. It is the todo list for the loop.
1. Red — observed failure gate
Write ONE test for the next behavior. Run it. Paste the actual failure output. A test you did not watch fail proves nothing: no failure output, no green step. Failure must be the assertion failing, not an import error or typo. Fix the harness first if so.
2. Green
Smallest change that passes. Hardcode if that is genuinely the smallest correct step for this behavior; the next test forces generality. Run the whole file's tests, not just the new one. A green step big enough to qualify under /solo:execute step 4 may go to solo:implementer with that recipe; outside a change, the prompt carries the failing test, the allowed paths and the test command. You still write and watch the failing test, and you run the tests yourself before moving on.
3. Refactor
Only with the bar green. Deletion over addition. No abstraction until a third case demands it. Re-run after every edit.
Repeat 1-3 per behavior. Stop when the list is done — not when the code "feels" done.
Stack
Read the repo's AGENTS.md ## Coding standard first (written by /solo:standard) — it names the runner, the check command, and the skip policy. No such section → the lockfile is law (uv.lock → uv run pytest -q, pnpm-lock.yaml → pnpm test, yarn.lock → yarn test, package-lock.json → npm test, go.mod → go test ./..., pubspec.yaml → flutter test), and suggest running /solo:standard afterwards. Framework idiom questions go to Context7, not memory. Test the public surface; no mocks for code you own, stubs only at the trust boundary (network, clock, filesystem).
Done
Report: behaviors covered, the one command that runs them, and any behavior deliberately left untested with the reason. Placeholders (test.skip, .only, empty assert) are blockers, not notes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tdd/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diblaze/solo/tdd)