Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source.

MITAuto-check passedDevelopment

Install Debug

skills CLI
$ npx skills add aiblueprinthq/ai-blueprint --skill debug -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiblueprinthq/ai-blueprint debug --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiblueprinthq/ai-blueprint.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/debug .claude/skills/debug && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
debug
GitHub stars
463
Token cost
~1.6k tokens
SKILL.md length
851 words
Files
2
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source.

  • Works in 5 steps: establish the boundary → reproduce safely → localize the failure → …
  • Root-cause investigation
  • SKILL.md covers Input, Step 1 - establish the boundary, Step 2 - reproduce safely and Step 3 - localize the failure, plus 4 more sections
  • Calls git

What it does

Debug is an agent skill from aiblueprinthq/ai-blueprint. Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source. Reproduce the symptom, test hypotheses, identify the supported root cause, and hand off a repair. Use for /debug, root-cause investigation, or questions about why something is broken.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Root cause analysis and Failing and flaky tests. The repository describes itself as: A file-backed, spec-driven AI coding workflow framework for building real software while staying in control. The licence is MIT.

When your agent uses it

  • Root-cause investigation
  • Questions about why something is broken

Example prompts

  • “/debug”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. establish the boundary
  2. reproduce safely
  3. localize the failure
  4. confirm or narrow
  5. report and hand off

What it can do on your machine

Read from SKILL.md and the folder at commit 96222b7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Debug loads about 1.6k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 851 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aiblueprinthq/ai-blueprint at commit 96222b7, republished under its MIT licence (© aiblueprinthq). 851 words, ~1,565 tokens.

Download SKILL.mdSave it as .claude/skills/debug/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
debug
description
Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source. Reproduce the symptom, test hypotheses, identify the supported root cause, and hand off a repair. Use for /debug, root-cause investigation, or questions about why something is broken.

debug - find the cause before changing the code

Context reuse: Reuse any required file already loaded in project instructions or the current session. Read it again only if absent, changed, or exact current bytes or line references are needed.

First action: Before project inspection, preflight, or any other tool call, publish running to blueprint/.state/run.json using the dashboard activity contract in AGENTS.md.

Where this sits in the workflow:

reported failure  ->  [debug]  ->  /fix or /implement
(test, build,          (reproduce,    (spec a new fix, or
 crash, behavior)       isolate,       repair active work)
                        explain)

/debug separates diagnosis from repair. It gathers evidence, narrows the failure to a specific cause when possible, and stops with a useful handoff. It does not make the code "temporarily work" while investigating.

Input

Accept a symptom, failing command, error message, or unexpected behavior. Examples:

/debug npm test fails in cart-total.test.js
/debug the upload route returns 500 for PNG files
/debug why does the production build fail?

With no useful symptom, ask for the expected behavior, actual behavior, and smallest known reproduction. Do not guess which problem the user means.

Step 1 - establish the boundary

Read the project instructions and the context relevant to the failure:

  • AGENTS.md and its real commands
  • blueprint/context/project-overview.md
  • blueprint/context/coding-standards.md
  • blueprint/context/current-feature.md
  • the reported error, failing output, and affected files
  • git status, diff, and recent log when a regression is possible

State the symptom and what would count as reproducing it. Note whether the failure belongs to an active feature or is an unplanned bug.

Do not treat a dirty working tree as permission to discard or rewrite anything. Use the diff as evidence and preserve it.

Step 2 - reproduce safely

Run the smallest existing command or interaction that can reproduce the symptom.

  • Prefer one focused test, request, CLI command, or input over the entire suite.
  • Capture the exact exit code, error, stack trace, output, response, console error, or failed request.
  • Reuse an already-running local app when available. If reproduction requires a long-running server that is not running, ask the user to start it and provide the documented command.
  • Do not install dependencies, change configuration, run migrations, mutate production data, contact external users, or use destructive commands to force a reproduction.
  • Do not edit code to add logs or probes. Use existing logs, debuggers, read-only inspection, or one-off commands that do not change project files.
  • Compare git status after diagnostic commands. If one changes tracked or untracked project files, stop and report those paths. Do not clean, restore, or hide the changes.

If the symptom cannot be reproduced, say what was attempted and what evidence is missing. Continue with static investigation only when it can produce a clearly labeled hypothesis, not a claimed root cause.

Step 3 - localize the failure

Trace from the observed failure toward the smallest responsible area.

Use the evidence that fits the project:

  • the first relevant application frame in a stack trace
  • the smallest failing test and its inputs
  • request and response data at the failing boundary
  • console and network errors
  • callers, imports, data flow, and configuration reads
  • git diff, git log, and git blame for a suspected regression
  • comparison with a nearby working path or input

Separate facts from hypotheses. Test the cheapest safe competing explanations first. Do not stop at the first plausible line, blame a dependency without evidence, or confuse the place an error surfaced with the place it originated.

Show full SKILL.md (294 more words)Show less

Step 4 - confirm or narrow

A root cause is confirmed only when the evidence connects all three:

  1. the triggering input or state
  2. the responsible code, configuration, or contract
  3. the observed failure

When safe and read-only, vary one input or run a smaller focused command to confirm the connection. Do not change implementation or tests to prove the fix.

Use one of these verdicts:

  • Confirmed - evidence identifies the cause and explains the failure.
  • Likely - evidence narrows the cause, but one specific proof is unavailable.
  • Blocked - the failure cannot be reproduced or required evidence is inaccessible.

Step 5 - report and hand off

Give a concise debug report:

  • symptom and reproduction
  • verdict
  • root cause or leading hypothesis
  • evidence, including commands and relevant paths
  • affected behavior and likely repair boundary
  • what was not verified
  • exact next action

Choose the next action without writing files:

  • Active feature or fix caused the failure -> return the diagnosis to /implement.
  • No active work item and the bug is confirmed -> recommend /fix "<concise bug and confirmed cause>".
  • Cause is only likely or blocked -> recommend the next diagnostic evidence, not a speculative repair.
  • The issue is planned product work rather than a defect -> point to /feature.

Rules

  • Diagnose, do not repair. Never edit source, tests, configuration, lockfiles, or Blueprint files.
  • Never create, switch, merge, or delete branches. Never commit or push.
  • Do not update the findings ledger. /audit owns recorded code-quality findings; /debug reports one investigated failure in chat.
  • Evidence outranks confidence. Label uncertainty and failed reproduction honestly.
  • Preserve the user's working tree and running processes.
  • Do not broaden one failure into a general audit or refactor.

Formatting

Format the output to match the project's conventions in blueprint/context/ai-interaction.md: concise, scannable markdown with a short evidence list and a clear next action.

© aiblueprinthq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/debug of aiblueprinthq/ai-blueprint.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 96222b7

Compare with similar skills

Debug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Debug compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Debug this skillaiblueprinthq/ai-blueprint463—~1.6kAutomated safety check: PassMIT
Backprop: Bug-to-Spec ProtocolJuliusBrussee/cavekit1.2k—~653Automated safety check: PassMIT
CI TriageMentra-Community/MentraOS2.4k—~582Automated safety check: PassApache-2.0
Root Cause Debuggingjsmastery-pro/skills1.5k—~1.8kAutomated safety check: NotesMIT
Superpowers Systematic Debuggingchristopherarter/superpowers-reasonix102—~2kAutomated safety check: PassMIT
Minimal Code Fixcobusgreyling/loop-engineering11k1 repos~345Automated safety check: NotesMIT

Similar skills

  • Backprop: Bug-to-Spec Protocol

    JuliusBrussee/cavekit

    After a bug is found, traces its root cause and feeds a new testable invariant back into the project spec so the bug class can't recur.

    1.2k GitHub stars~653 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • CI Triage

    Mentra-Community/MentraOS

    Triage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause.

    2.4k GitHub stars~582 tokensUpdated today
    DevelopmentAuto-check passed
  • Root Cause Debugging

    jsmastery-pro/skills

    Runs a reproduce, localize, hypothesize, test, fix and verify loop to find a bug's root cause, applies the minimal fix and hands off a regression test.

    1.5k GitHub stars~1.8k tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Superpowers Systematic Debugging

    christopherarter/superpowers-reasonix

    Any bug, failing or flaky test, or surprise behavior?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Minimal Code Fix

    cobusgreyling/loop-engineering

    Makes the smallest code change that fixes one well-scoped problem, such as a CI failure, review comment or typo, without refactoring anything unrelated.

    11k GitHub starsUsed in 1 repo~345 tokens
    DevelopmentAuto-check: notes
  • CI Fix

    warpdotdev/oz-skills

    Diagnose and fix GitHub Actions CI failures. An agent skill from warpdotdev/oz-skills.

    825 GitHub stars~790 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from aiblueprinthq/ai-blueprint

All 20 skills in this repo
  • Adopt

    aiblueprinthq/ai-blueprint

    Adopt Blueprint into an existing brownfield codebase by surveying shipped behavior and generating plans, standards, commands, adapter choices, and visibility setup.

    463 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • CI

    aiblueprinthq/ai-blueprint

    Set up or normalize one project Verify command and matching GitHub Actions checks while preserving existing CI, with an optional local pre-push hook.

    463 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Doctor

    aiblueprinthq/ai-blueprint

    Run a Blueprint health and context check covering setup, adapters, commands, visibility, plans, overview freshness, configuration, dashboard state, and workflow drift.

    463 GitHub stars~4.5k tokensUpdated today
    Auto-check: notes
  • Feature

    aiblueprinthq/ai-blueprint

    Turn the next, named, or numbered build-plan feature into a buildable current-feature.md spec with small steps and done-when criteria.

    463 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Onboard

    aiblueprinthq/ai-blueprint

    Onboard a fresh or early scaffold after Blueprint is overlaid by tuning commands, standards, adapters, visibility, and context loading.

    463 GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Overview

    aiblueprinthq/ai-blueprint

    Validate and normalize project-plan.md and build-plan.md, then generate the durable project-overview.md used by agents.

    463 GitHub stars~3.8k tokensUpdated today
    Auto-check passed

Questions about Debug

What does Debug do?

Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source. Debug is an agent skill from aiblueprinthq/ai-blueprint. Diagnose a failing test, build, crash, regression, or unexpected behavior without editing source.

When should I use Debug?

Debug fits situations like: root-cause investigation; questions about why something is broken.

How do I install Debug in Claude Code?

Run `npx skills add aiblueprinthq/ai-blueprint --skill debug -a claude-code`. Or copy the skill folder (.agents/skills/debug in aiblueprinthq/ai-blueprint) into .claude/skills/debug in your project. Claude Code loads it when a task matches its description.

How do I install Debug in Codex?

Run `npx skills add aiblueprinthq/ai-blueprint --skill debug -a codex`. Or copy the skill folder (.agents/skills/debug in aiblueprinthq/ai-blueprint) into .agents/skills/debug in your project. Codex loads it when a task matches its description.

Can I use Debug in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiblueprinthq/ai-blueprint --skill debug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug, .gemini/skills/debug, .github/skills/debug and .opencode/skills/debug in your project.

What does Debug need to run?

Going by SKILL.md and its folder, Debug needs the command-line tools its instructions call (git).

Does Debug access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Debug safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Debug use?

Debug is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Debug use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Debug?

Skills that share tags, products or a category with Debug: Backprop: Bug-to-Spec Protocol (JuliusBrussee/cavekit, 1.2k stars), CI Triage (Mentra-Community/MentraOS, 2.4k stars), Root Cause Debugging (jsmastery-pro/skills, 1.5k stars) and Superpowers Systematic Debugging (christopherarter/superpowers-reasonix, 102 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Debug?

aiblueprinthq (a GitHub organization) maintains it in aiblueprinthq/ai-blueprint, which has 463 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 8, 2026.

Source: aiblueprinthq/ai-blueprint on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.