universal/debugging/systematic-debugging/SKILL.md
Step-by-step debugging workflow: reproduce the bug, isolate the failing component, trace to root cause, apply a targeted fix, and verify the fix resolves the issue without regressions. Use when you encounter a bug, error, exception, crash, or unexpected behavior that needs troubleshooting.
npx skillsauth add bobmatnyc/claude-mpm-skills systematic-debuggingInstall 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.
Follow these five phases sequentially. Do not skip ahead to fixing before completing isolation and tracing.
Establish a reliable way to trigger the bug before doing anything else.
Checkpoint: Can you trigger the bug on demand? If intermittent, gather more data before proceeding.
Narrow down where the failure originates.
git log --oneline -20 and git diff against the last known good state# Find which commit introduced the bug
git bisect start
git bisect bad HEAD
git bisect good <last-known-good-commit>
# Git will checkout midpoints — test each one and mark good/bad
Checkpoint: The bug is traced to a specific function, module, or data flow.
Understand why the failure happens — not just where.
# Example: verify assumptions about incoming data
def process_order(order):
assert order.status == "pending", f"Expected pending, got {order.status}"
assert order.items, "Order has no items"
# ... rest of processing
Checkpoint: The chain of causation from trigger to symptom is explained, with supporting evidence (logs, assertions, debugger output).
Apply a targeted fix that addresses the actual cause, not just the symptom.
Confirm the fix works and doesn't introduce regressions.
Checkpoint: Reproduction case passes, test suite is green, and you have a new test covering this bug.
See anti-patterns.md for the full catalog.
tools
Xquik X data automation API - Use REST or MCP for tweet search, user lookup, follower exports, media downloads, monitors, webhooks, giveaway draws, and confirmation-gated X actions.
tools
LinkedIn automation via the Linked API CLI - fetch profiles, search people and companies, send messages, manage connections, create posts, react, comment, and run Sales Navigator and custom workflows. Use when the user wants to interact with LinkedIn.
tools
MCP (Model Context Protocol) server build and evaluation guide, including local conventions for tool surfaces, config, and testing
tools
MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.