plugins/maister-copilot/skills/quick-bugfix/SKILL.md
Quick bug fix with TDD red/green gates and complexity escalation
npx skillsauth add skillpanel/maister quick-bugfixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Lightweight TDD-driven bug fix workflow with planning mode. Analyze the bug, present a fix plan for approval, then reproduce with a failing test, fix, and verify. No orchestrator state, no task directory, no subagents.
For complex bugs that grow beyond a quick fix, suggests escalating to the full development workflow (/maister-development).
/maister-quick-bugfix "Login form submits twice on slow connections"
/maister-quick-bugfix "API returns 500 when email contains special characters"
/maister-quick-bugfix "Dark mode toggle doesn't persist after refresh"
Use /maister-quick-bugfix when:
Use /maister-development instead when:
Get the bug description:
"Describe the bug — what's the expected behavior vs actual behavior?"
Discover the project's standards as part of analysis and planning (Steps 3–4), relevant to the bug area — not as a bulk upfront read.
.maister/docs/INDEX.md to find which standards exist.If .maister/docs/INDEX.md does not exist, note it and suggest /maister-init in the completion summary.
Explore the codebase to understand the bug:
Complexity Escalation Check:
Assess whether this bug exceeds quick-fix scope. If 2 or more of these signals are detected, suggest escalation:
| Signal | Example | |--------|---------| | Changes span 5+ files across multiple modules | Bug in shared utility affects API, frontend, and background jobs | | Requires database schema or data model changes | Missing column, wrong relationship, migration needed | | Multiple valid fix approaches with architectural trade-offs | Could fix at API layer, middleware layer, or client layer | | Security-sensitive code | Auth, crypto, permissions, input sanitization | | Root cause unclear after initial analysis | Symptoms don't point to a single location |
If escalation triggered:
Use ask_user:
/maister-development with the bug description and analysis contextIf no escalation needed or user chooses to continue: proceed to Step 4.
Use the EnterPlanMode tool to present the fix plan for user approval.
Standards context from Step 2 and analysis from Step 3 MUST inform the plan.
Plan file content:
## Bug Analysis
**Root Cause**: [hypothesis with evidence — file paths, code references]
**Affected Files**: [list of files that need changes]
## Proposed Fix
[Description of the fix approach — what changes, why this approach]
## Test Strategy
[What the failing test will assert — setup conditions, expected behavior]
## Applicable Standards
[List each standard file read, with key guidelines extracted from each.
If no standards exist: "No Maister standards found. Consider running `/maister-init`."]
## Standards Compliance Checklist
- [ ] [Guideline from standard file] (from `standards/[path]`)
- [ ] [Guideline from standard file] (from `standards/[path]`)
BLOCKING: Do NOT call ExitPlanMode until the plan file contains:
If any section is missing, add it before calling ExitPlanMode.
Write a failing test that reproduces the bug.
The test MUST fail. This proves the bug is real and reproducible.
If the test passes:
Implement the fix:
If tests fail after fix:
If still failing after 3 attempts:
/maister-development for a more thorough approachProvide completion summary:
Post-implementation standards check (mandatory): after the test is green, go through the ## Standards Compliance Checklist from the plan file and verify each item — mark pass/fail and report it in the summary. Address any failure before marking the task complete.
If .maister/docs/ does not exist:
Proceed with the bug fix normally, then note:
"No Maister standards found. Consider running `/maister-init` to initialize
project documentation and coding standards for better consistency."
data-ai
Enter planning mode with Maister standards enforcement
development
Implement a task directly with Maister standards enforcement (no planning mode)
data-ai
Enter planning mode with Maister standards enforcement
development
Implement a task directly with Maister standards enforcement (no planning mode)