/AI-skill:TDD-debugfrom AI-skill
Debugs code using TDD: reproduce bug with a failing test, fix with multi-agent collab-fix, verify test passes. Trigger with 'TDD debug'.
Ships in AI-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Debug the user's bug using a Test-Driven Development approach combined with the collab-fix protocol.
code-reviewer subagent if available; otherwise use the general-purpose agent.test-automator subagent for test design review if available; otherwise use the general-purpose agent.timeout: 1200000 (20 min) when calling Bash for codex/gemini commands.Expand the bug description with context: expected behavior, actual (buggy) behavior, relevant code paths, the project's testing framework. Keep the user's wording verbatim alongside your notes.
Ask codex, gemini-cli, and a test-automator subagent to each propose a reproducing test:
echo "Given this bug: <description>. Design a test case that will FAIL when the bug exists and PASS when fixed. Include the test code and explain why it catches this bug." | codex exec --skip-git-repo-check --sandbox read-only - 2>/dev/nullgemini "Given this bug: <description>. Design a test case that will FAIL when the bug exists and PASS when fixed. Include the test code and explain why it catches this bug." -o json 2>/dev/null | jq -r '.response'AskUserQuestion to let the user pick.AskUserQuestion:
echo "Analyze this bug: <description>. We have a failing test that reproduces it. Propose a fix plan with steps and tradeoffs. The fix must make the test pass." | codex exec --skip-git-repo-check --sandbox read-only - 2>/dev/nullgemini "Analyze this bug: <description>. We have a failing test that reproduces it. Propose a fix plan with steps and tradeoffs. The fix must make the test pass." -o json 2>/dev/null | jq -r '.response'code-reviewer agent to propose a fix independentlyCompare the 3 plans, summarize tradeoffs, and ask the user only the necessary questions via AskUserQuestion.
Ultrathink and implement the fix yourself. Do not git commit.
Run the reproducing test. If it still fails, analyze and iterate.
(echo "Review the following uncommitted diff. Verify: 1) The fix is correct, 2) The test is feasible and properly validates the fix, 3) No regressions introduced."; git diff) | codex exec --skip-git-repo-check --sandbox read-only - 2>/dev/null(echo "Review the following uncommitted diff. Verify: 1) The fix is correct, 2) The test is feasible and properly validates the fix, 3) No regressions introduced."; git diff) | gemini -o json 2>/dev/null | jq -r '.response'code-reviewer agent focused on test validityResolve human-preference items via AskUserQuestion. Repeat 2.3–2.5 until all three reviewers are satisfied AND the test passes, or 5 rounds are reached.
If no consensus after 5 rounds, report:
After completion, report:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tdd, test-driven-development, debug, multi-agent, bug-fixing, collab-fix
npx claudepluginhub caidish/cai-tools --plugin AI-skill4 skills in this plugin
/codexUse when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, code review, or automated editing/collab-fixCollaborative multi-agent fix workflow using codex, gemini-cli, and an independent subagent. Use when the user asks to "collab fix", "multi-agent fix", or wants several AI tools to jointly analyze and fix a bug or task with cross-review./gemini-cliWield Google's Gemini CLI as a powerful auxiliary tool for code generation, review, analysis, and web research. Use when tasks benefit from a second AI perspective, current web information via Google Search, codebase architecture analysis, or parallel code generation. Also use when user explicitly requests Gemini operations.Other plugins' skills for the same job