MCPInstall

debugging

Root cause analysis and debugging protocols. Use when encountering errors, test failures, unexpected behavior, stack traces, or when code behaves differently than expected.

Installs
147
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/siviter-xyz/dot-agent --skill debugging
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads debugging automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Debugging

Systematic approach to root cause analysis and debugging.

When to Use

  • Encountering errors or exceptions
  • Test failures that need investigation
  • Unexpected behavior in code
  • Stack traces or error messages
  • Code behaving differently than expected
  • Performance issues or bugs

Core Principles

  • Evidence-based: Base diagnosis on error messages, logs, and reproducible steps
  • Systematic: Follow structured debugging process
  • Minimal fixes: Implement smallest change that resolves issue
  • Verify solutions: Confirm fix works and doesn't introduce regressions

Debugging Process

Follow systematic debugging process:

  1. Capture error information (message, stack trace, logs, environment)
  2. Identify reproduction steps (minimal steps, conditions, edge cases)
  3. Isolate failure location (function/module, recent changes, dependencies)
  4. Form and test hypotheses (evidence-based, systematic testing, debug logging)
  5. Implement minimal fix (smallest change, preserve behavior, follow patterns)
  6. Verify solution (issue resolved, no regressions, tests pass)

See references/root-cause-analysis.md for detailed methods.

Strategic Debug Logging

Add debug logging to entry/exit points, state transitions, conditional branches, external API calls, and data transformations. Remove after issue resolved unless it provides ongoing value.

Error Pattern Recognition

Common patterns: null/undefined errors, type errors, timing issues, state corruption, configuration issues. See references/error-patterns.md for detailed patterns and solutions.

Integration

After fixing:

  • Verify CI passes (types, tests, lint)
  • Stage atomic changes (fix + tests)
  • Suggest semantic commit message
  • Confirm with user before committing

References

For detailed guidance, see:

  • references/root-cause-analysis.md - Systematic analysis methods
  • references/error-patterns.md - Common error patterns and solutions
  • references/debugging-tools.md - Debugging tools and techniques

FAQ

What does the debugging skill do?

Root cause analysis and debugging protocols. Use when encountering errors, test failures, unexpected behavior, stack traces, or when code behaves differently than expected.

How do I install debugging?

Run npx skills add https://github.com/siviter-xyz/dot-agent --skill debugging in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/debugging/ (personal) or .claude/skills/debugging/ (project).

Which AI agents can use debugging?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is debugging safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains debugging?

It is published by siviter-xyz in siviter-xyz/dot-agent. It has 147 recorded installs.

More from siviter-xyz/dot-agent

View all →

create-skill

siviter-xyz/dot-agent

Guide for creating effective skills following best practices. Use when creating or updating skills that extend agent capabilities.

cursor-best-practices

siviter-xyz/dot-agent

Best practices for working with Cursor. Use when learning how to effectively use Cursor features or optimizing your workflow.

software-engineer

siviter-xyz/dot-agent

Core software engineering principles for code style, documentation, and development workflow. Applies when editing code, working in software repositories, or performing software development tasks.

Docs & Writing623 installs

python

siviter-xyz/dot-agent

Open the skill to read its SKILL.md instructions.

349 installs

backend-engineer

siviter-xyz/dot-agent

Open the skill to read its SKILL.md instructions.

Backend & APIs342 installs

frontend-engineer

siviter-xyz/dot-agent

Open the skill to read its SKILL.md instructions.

Frontend & Design319 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.