debug

debug is a skill for Claude Code from nirelbaz/promptpit. It costs 42 tokens per session (350 once invoked), scanned A, original, MIT.

A step-by-step method for finding and fixing the underlying cause of a software bug. It starts by reproducing the problem, then narrows down where it occurs, fixes the cause, verifies the result, and adds a test to prevent it returning.

In plain words
What is it for?
Use it when code crashes, behaves unexpectedly, reports an error, or does not work as intended.
Why use it?
It replaces guesswork and broad changes with evidence from the actual error and reproduction steps.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when code crashes, behaves unexpectedly, reports an error, or does not work as intended.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirelbaz/promptpit/debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirelbaz/promptpit --skill debug
Clone the repo
git clone --depth 1 https://github.com/nirelbaz/promptpit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirelbaz/promptpit/debug/github.svg)](https://agentmods.dev/skills/nirelbaz/promptpit/debug)
Your own site
<a href="https://agentmods.dev/skills/nirelbaz/promptpit/debug"><img src="https://agentmods.dev/badge/skills/nirelbaz/promptpit/debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirelbaz/promptpit/debug"><img src="https://agentmods.dev/badge/skills/nirelbaz/promptpit/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 350 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00350
Opus 5.5 $0.00017 $0.00140
Sonnet 5.5 $0.00008 $0.00070
Haiku 4.5 $0.00004 $0.00035

Measured 1mo ago against content hash 478fff2d4e66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.promptpit/skills/debug/SKILL.md · 27 lines

What it actually says

Debug

Debug a problem systematically. No shotgun fixes.

Process

  1. Reproduce the bug. If you can't reproduce it, you can't verify the fix. Get the exact steps, input, and environment.
  2. Isolate the cause. Binary search through the code path. Add logging at key points. Narrow down: which function, which line, which condition?
  3. Understand why it happens. Don't just find the broken line. Understand the root cause. "It crashes here" is not a root cause. "This value is null because the API returns an empty body on 204 responses and we don't check for that" is a root cause.
  4. Fix the root cause, not the symptom. If you add a null check without understanding why it's null, you've hidden the bug, not fixed it.
  5. Verify the fix resolves the original reproduction steps.
  6. Write a regression test that would have caught this bug.

Rules

  • Never fix something you can't reproduce. You're guessing.
  • One fix per commit. If you found two bugs, that's two commits.
  • Read the error message carefully. The answer is often right there.
  • Check recent changes first: git log --oneline -10 and git diff HEAD~5.
  • If the same approach fails twice, reassess your assumptions. Explain the problem from scratch. What are you taking for granted?
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 27 lines · 42 tokens per session scan A 478fff2d4e66

Subscribe to this mod's changes

debug is a skill published in the GitHub repository nirelbaz/promptpit (6 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 350 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

spreadsheets

Hosted xlsx-for-ai tools for spreadsheet files and links (.xlsx, .xlsm, .xls, .csv, .tsv, a Google Sheet). Use when the answer depends on formula results, totals, errors or whether saved values are current, on differences between versions, or on cleaning, converting or writing back a working workbook. A local…

senoff/xlsx-for-ai · 99 tokens

clinicaltrials-database

Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.

synthetic-sciences/openscience · 47 tokens

openalex-database

Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly…

synthetic-sciences/openscience · 76 tokens

glycoengineering

Analyze and engineer protein glycosylation. Scan sequences for N-glycosylation sequons (N-X-S/T), predict O-glycosylation hotspots, and access curated glycoengineering tools (NetOGlyc, GlycoShield, GlycoWorkbench). For glycoprotein engineering, therapeutic antibody optimization, and vaccine design.

synthetic-sciences/openscience · 75 tokens

session-investigator

Investigate fast-agent session and history files to diagnose issues. Use when a session ended unexpectedly, when debugging tool loops, when correlating sub-agent traces with main sessions, or when analyzing conversation flow and timing. Covers session.json metadata, history JSON format, message structure, tool…

evalstate/fast-agent · 68 tokens

tinker-training-cost

Calculates training costs for Tinker fine-tuning jobs. Use when estimating costs for Tinker LLM training, counting tokens in datasets, or comparing Tinker model training prices. Tokenizes datasets using the correct model tokenizer and provides accurate cost estimates.

synthetic-sciences/openscience · 55 tokens