diagnosing-bugs
๐ฏSkillfrom mattpocock/skills
Installation
npx vibeindex add mattpocock/skills --skill diagnosing-bugsnpx skills add mattpocock/skills --skill diagnosing-bugs~/.claude/skills/diagnosing-bugs/SKILL.mdA model-invoked skill that guides coding agents through a disciplined diagnosis loop for hard bugs: reproduce, minimise, hypothesise, instrument, fix, and regression-test.
Overview
Diagnosing Bugs is a model-invoked skill from Matt Pocock's "Skills For Real Engineers" collection. It provides coding agents with a structured, disciplined diagnosis loop specifically designed for hard bugs and performance regressions. Rather than letting agents guess at fixes or make random changes, the skill enforces a systematic process: reproduce the bug, minimise the reproduction case, form hypotheses, add instrumentation to verify, apply the fix, and write regression tests. The skill activates automatically when the agent encounters debugging tasks.
Key Features
- Systematic diagnosis loop: Enforces a structured process of reproduce, minimise, hypothesise, instrument, fix, and regression-test, preventing agents from guessing at solutions.
- Part of a composable skill set: Works alongside other engineering skills like TDD, domain modeling, and codebase design. Skills are small, easy to adapt, and model-agnostic.
- Automatic activation: As a model-invoked skill, the agent reaches for it automatically when the task involves debugging, without requiring the user to explicitly call it.
- Grounded in engineering fundamentals: Built on decades of engineering experience, applying root-cause tracing and defense-in-depth techniques rather than ad-hoc debugging.
- Quick installation: Install via
npx skills@latest add mattpocock/skillsand the skill integrates into Claude Code, Cursor, and other supported agents.
Who is this for?
- Developers frustrated by agents that try random fixes instead of methodically tracking down root causes.
- Engineers working on complex codebases where bugs require careful, step-by-step diagnosis rather than guesswork.
- Teams adopting AI-assisted development who want their agents to follow the same debugging discipline as experienced engineers.
- Anyone who wants reproducible, regression-tested bug fixes rather than quick patches that may break later.
Same repository
mattpocock/skills(58 items)
SKILL.md
More from this repository10
Interviews the user relentlessly about every aspect of a plan or design until reaching shared understanding, resolving each branch of the decision tree one by one. Provides recommended answers for each question and explores the codebase when answers can be found there.
A skill that runs a grilling session to challenge your plan against an existing domain model, sharpen terminology by building a shared language in CONTEXT.md, and document architectural decisions in ADRs before coding begins.
An agent skill from Matt Pocock's engineering toolkit that helps improve your codebase architecture. Part of a composable skill set designed to fix common AI coding agent failure modes through structured, experience-based workflows.
Enforces test-driven development with a strict red-green-refactor loop using vertical slices (one test then one implementation at a time), emphasizing behavior verification through public interfaces rather than implementation-coupled testing.
Initial setup skill for Matt Pocock's engineering skills collection that configures your backlog manager, triage labels, and documentation paths for AI coding agents.
A model-invoked productivity skill that interviews users relentlessly about a plan or design until every branch of the decision tree is resolved. It serves as the reusable interview loop behind the grill-me and grill-with-docs skills.
Composable, model-agnostic agent skills for real engineering workflows, featuring /grill-me for requirement alignment, /prototype for rapid iteration, and task management tools designed to fix common failure modes in AI coding agents.
A model-invoked engineering skill that provides shared discipline and vocabulary for designing deep modules: maximizing behavior behind small interfaces, placing code at clean seams, and ensuring testability through public APIs.
A collection of small, composable engineering skills designed for real development workflows, featuring grilling sessions for requirement alignment, issue tracking integration, and task triage with customizable labels.
A composable skill for triaging issues and tickets using configurable labels, designed to fix common failure modes in AI coding agents by providing structured backlog management workflows.