Plan Bugfix — Testing skill for Claude Code
Find the root cause of a bug and plan a test-first fix.
How to install Plan Bugfix
Installs to ~/.claude/commands/polewskm-project-template-plan-bugfix.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/polewskm/project-template/HEAD/.claude/commands/plan-bugfix.md -o ~/.claude/commands/polewskm-project-template-plan-bugfix.md Restart Claude Code, or start a new session, for it to be picked up.
What Plan Bugfix does
description: "Find the root cause of a bug and plan a test-first fix" argument-hint: "[Symptom, error message and how to reproduce it]" model: opus effort: high disable-model-invocation: true
Plan in a worktree of its own
Each plan lives in its own git worktree, so several Claude Code sessions can plan and execute different plans on this machine at once. Executing, re-planning and reviewing this plan later happen in the same worktree. Set it up before you read any code, so your resea
Alternatives in Testing
- OpenAgentsControl — AI agent framework for plan-first development workflows with approval-based execution 4.8k ★
- Specweave — Spec-first AI development: describe a feature → AI creates spec + plan + tasks, builds autonomously, syncs to 158 ★
- M TDD Planner — TDD Plan Workflow: Generate Test-First Development Plan 139 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Hatch3r Bug Pipeline
Run a known-cause bug fix through a 3-phase test-first pipeline -- reproduce + root-cause, regression-test + f
Root Cause Fix
Root-cause-first TDD loop for any bug or data fix. Forces a failing reproduction test BEFORE touching producti
J Debug
Systematic bug investigation — root cause analysis, not random fixes. Use when a test fails, a bug appears, or
Quick Debug
Structured bug investigation — reproduce, root-cause, fix, regression-test. Uses the debugger subagent for iso
Systematic Debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes - four-phase frame
Debugging
Debug a bug, crash, failing test, or broken build to root cause
Related Agents
Debug
Debug your application to find and fix a bug. Systematic root cause analysis through structured phases: assess
Bug Investigator
Investigates a bug report — performs read-only root-cause analysis and produces a structured fix plan. Does NO
Sdlc Bug Investigator
Diagnoses the root cause of a reported bug and writes exactly one failing RED test that reproduces it — never