Test writing and fixing methodology. Covers TDD, investigating failures, and delegating fixes to agents. Use when writing tests or diagnosing test failures.
A failing test signals one of two things:
Don't assume. Read the failure, trace the code path, determine which is true before changing anything.
Common signs the test is wrong:
Common signs the code is broken:
When adding new functionality, write tests first:
Benefits:
Skip TDD when: fixing obvious bugs, exploratory prototyping, or when the test setup cost exceeds the implementation.
When using agents to fix test failures:
Why agents don't run tests:
In agent instructions, include:
Fix the failing test. Do NOT run the test suite—make your change and exit.
If an agent encounters ambiguity about whether to fix the test or the code, it should stop and report a blocker.
If no, keep investigating.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer