skills/mp-bug-report/SKILL.md
Investigate bug root cause, design TDD fix plan, create GitHub issue labeled bug. Accepts multiple bugs. Use when: "report bug", "bug report", "something is broken", "investigate bug"
npx skillsauth add MartinoPolo/mpx-claude-code mp-bug-reportInstall 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.
Investigate bug root cause, design TDD fix plan, create GitHub issue. $ARGUMENTS
$ARGUMENTS provided: parse as bug description(s). Split on double newlines (\n\n) for multiple bugs — each block becomes a separate investigation.Parse bug description for:
If critical info is missing (can't investigate without it), ask questions. Then move to investigation promptly.
Spawn mp-issue-analyzer sub-agent:
Explore this codebase to investigate a bug.
Bug: [parsed description]
Your tasks:
- Find where the bug manifests in the codebase
- Trace the code path involved
- Identify the root cause (not just the symptom)
- Find related code, patterns, and existing tests
Return your full analysis including root cause, affected modules, and code path description.
For multiple bugs: spawn multiple mp-issue-analyzer sub-agents in parallel.
Based on investigation results, design ordered RED-GREEN cycles:
Ensure bug label exists:
gh label create bug --description "Bug report" --color D73A4A --force
Title format: bug: [concise description]
Create issue:
gh issue create --title "bug: description" --label "bug,area-label" --body "$(cat <<'EOF'
## Problem
**Actual behavior:** [what happens]
**Expected behavior:** [what should happen]
**How to reproduce:**
1. [step 1]
2. [step 2]
## Root Cause Analysis
[Code path description — why it fails, contributing factors]
[Describe modules, behaviors, and contracts — NO file paths or line numbers]
## TDD Fix Plan
1. **RED:** [test description — what behavior to verify]
**GREEN:** [minimal change to make test pass]
2. **RED:** [next test]
**GREEN:** [next change]
3. **REFACTOR:** [cleanup after all tests pass]
## Acceptance Criteria
- [ ] [criterion 1]
- [ ] [criterion 2]
EOF
)"
Add labels: bug + any area labels detected from codebase exploration.
.mpx/CONTEXT.md § Domain Language)development
Audit all active skills for consistency, convention drift, and common issues. Auto-fixes where possible, reports remaining issues. Use when: "audit skills", "skill audit", "check skills", "lint skills"
testing
Ship finished work: sync base, commit, push, PR, wait for CI green, merge. Use when: "ship it", "ship and merge", "ship this"
development
Scan recent Claude Code sessions for grilling/design discussions, extract decisions, and update CONTEXT.md + DECISIONS.md. Use when: "harvest decisions", "extract decisions from sessions", "update docs from sessions", "sync decisions"
tools
Consolidate CONTEXT.md: remove duplicates, outdated items, tighten language. Use when: "consolidate context", "clean up context", "simplify context", "consolidate requirements"