codebase-analyzer
Analyzes codebase using adaptive parallel Explore subagents based on task complexity. Selects agent roles from a pool, launches…
Quick bug fix with TDD red/green gates and complexity escalation
$ npx -y skills add SkillPanel/maister --skill quick-bugfix --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/quick-bugfixContext preview
The summary Claude sees to decide when to auto-load this skill.
Quick bug fix with TDD red/green gates and complexity escalation
name: quick-bugfix description: Quick bug fix with TDD red/green gates and complexity escalation argument-hint: "[bug description]"
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.
If `.maister/docs/INDEX.md` does not exist, note it and suggest `/maister-init` in the completion summary.
Investigate until you have a root-cause hypothesis backed by file/line evidence, the affected files, and the existing tests that cover them.
**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:
1. "Continue with quick fix" — proceed, accepting the complexity 2. "Switch to full development workflow" — stop here and suggest running `/maister-development` with the bug description and analysis context
**If 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:**
1. **"## Bug Analysis"** — root cause hypothesis with evidence 2. **"## Proposed Fix"** — what changes and why 3. **"## Test Strategy"** — what the TDD red test will assert 4. **"## Applicable Standards"** — standards read and key guidelines 5. **"## Standards Compliance Checklist"** — checkboxes for applicable guidelines
If any section is missing, add it before calling ExitPlanMode.
**Write a failing test that reproduces the bug.**
1. Identify the appropriate test file (existing test suite or create new test file following project conventions) 2. Write a test that:
3. Run the test
**The test MUST fail.** This proves the bug is real and reproducible.
**If the test passes:**
**Implement the fix:**
1. Apply the fix based on the approved plan from Step 4 2. **Apply discovered standards** from Step 2 3. Run the failing test —
Structured, standards-aware development workflows for Claude Code Describe what you want to build, and the plugin handles the rest - from specification through implementation to verification - while enforcing your project's coding standards at every step.
Analyzes codebase using adaptive parallel Explore subagents based on task complexity. Selects agent roles from a pool, launches…
Unified orchestrator for all development tasks. ALWAYS execute when invoked — never skip for 'straightforward' tasks. Phases…
Internal engine for managing project documentation and technical standards in .maister/docs/. Handles file operations, INDEX.md…
Execute implementation plans by delegating each task group to task-group-implementer subagent. Main agent coordinates prepares…
Verify completed implementations for quality assurance. Delegates all verification work to specialized subagents - completeness…
Initialize Maister framework with intelligent project analysis and documentation generation