Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Debugging

ASecurity

Find the root cause of a bug instead of guessing at it. Use when the user reports something broken, pastes an error or a stack trace, says this used to work, asks why is this happening, why is this failing, or what is wrong with this. Also use to trace how data flows through a codebase, follow a request end to end, or find where a value is being lost or changed. Also fires on: stack trace, traceback, exception, crash, crashed, segfault, null pointer, undefined, regression, reproduce, bisect, ...

7 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsgodebugginggit

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add calebnewtonusc/Chewbacca --skill debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/calebnewtonusc-debugging/badge)](https://www.skillsdirectory.com/skills/calebnewtonusc-debugging)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: debugging
description: "Find the root cause of a bug instead of guessing at it. Use when the user reports something broken, pastes an error or a stack trace, says this used to work, asks why is this happening, why is this failing, or what is wrong with this. Also use to trace how data flows through a codebase, follow a request end to end, or find where a value is being lost or changed. Also fires on: stack trace, traceback, exception, crash, crashed, segfault, null pointer, undefined, regression, reproduce, bisect, root cause, it broke, debug this."
requires: [git]
---

# Debugging

The protocol exists because the failure mode is universal: changing several
things at once, then not knowing which one helped.

## The order, and do not skip

**1. Read the error exactly.** Every word. `undefined` and `null` are different
bugs with different causes. "Cannot read property x of undefined" names the
property and that is usually the whole answer.

**2. Go to the file and line in the trace before doing anything else.** Not a
grep for something similar. The actual frame. If there is no stack trace, get one
before theorizing; a bug report without one is a rumor.

**3. Check the assumption.** Print the variable. Is it the shape you believed? Most
bugs are a value being a different type, a different case, or absent, and are
invisible to reasoning about the code because the code reads correctly.

**4. Search the exact message.** Framework, exact string, year. Someone has hit it.

**5. Check for a breaking change.** Read the migration guide for the version
actually installed, not the version remembered.

**6. `git diff` against the last working state.** The bug lives in the diff. This
step alone solves most "it used to work" reports and it is the one most often
skipped.

**7. `git bisect`** if still lost, then read that commit properly.

Never change several things at once, and never delete and rewrite before
understanding why it broke. A rewrite that works for reasons nobody understands
is the same bug with a longer fuse.

## Tracing a flow

To follow data end to end: name the entry point, then read each function in the
chain in full rather than skimming for the interesting line.

Mark three things as you go, because they are where flows actually break:
- **Where the data changes shape**: parsed, validated, serialized, renamed
- **Where it could be lost**: a swallowed error, an early return, a default that
  silently replaces a missing value
- **Where ownership changes**: one module handing to another, a queue, a network
  hop, a process boundary

Report it as the chain, file by file, with the shape at each step. A trace that
lists files without saying what the data looks like at each one has not traced
anything.

## When it is fixed

Write the test that would have caught it, and check the same mistake is not
sitting in three other places. A fix applied to only the instance that was
reported is a promise to debug it again.

Attribution

calebnewtonusccalebnewtonusc
View sourceMore from calebnewtonusc →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →