ai-debug

ai-debug is a skill for Claude Code, Codex from arcasilesgroup/ai-engineering. It costs 151 tokens per session (975 once invoked), scanned A, original, Apache-2.0.

A debugging and merge-conflict resolution guide for software projects. It requires identifying the specific cause of a failure and writing a check that demonstrates it before changing the code.

In plain words
What is it for?
It is for broken behavior, regressions, errors, failing continuous-integration checks, and merge or rebase conflicts.
Why use it?
It prevents fixes based only on symptoms or guesses. It gives developers a reproducible failure, a file-and-line explanation, and verification that the change solved the underlying problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for broken behavior, regressions, errors, failing continuous-integration checks, and merge or rebase conflicts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcasilesgroup/ai-engineering/ai-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 arcasilesgroup/ai-engineering --skill ai-debug
Clone the repo
git clone --depth 1 https://github.com/arcasilesgroup/ai-engineering

Made for: Claude Code, Codex.

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 ai-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-debug/github.svg)](https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-debug)
Your own site
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-debug"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-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 ai-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-debug"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00151 $0.00975
Opus 5.5 $0.00060 $0.00390
Sonnet 5.5 $0.00030 $0.00195
Haiku 4.5 $0.00015 $0.00097

Measured 27d ago against content hash c2c10b826a63, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-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 27d 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.

skills/ai-debug/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ai-debug — find the cause, not the symptom

What it produces

A named cause at file:line, a check that fails because of it, and only then a fix.

Steps

  1. Reproduce it. If you cannot reproduce it, say so plainly and stop guessing: the next useful thing is a way to reproduce it, not a change.
  2. Read the failing output in full. The first error is usually the real one and the rest are its consequences; the last error is the one people paste.
  3. Name a cause you can point at. file:line, and one sentence on why that line produces this symptom. "Probably a race" is not a cause. If two causes are plausible, say which observation would tell them apart, then go and make that observation.
  4. Before the fix, write the check that fails for this reason. A fix with no failing check before it is a change with an opinion attached.
  5. Fix the cause, at the place all the callers go through. Patching the one path the report named leaves every sibling caller broken, and the shared fix is usually the smaller diff.
  6. Run the check. Then run the suite. Then say what you changed and why it fixes the cause you named, not the symptom that was reported.
  7. If you are two attempts in and it is still not fixed, stop and say so. That is a rule, not a suggestion: the third attempt is where the guessing starts.

Conflicts

Read both sides for intent before touching either. Lock files and generated files are regenerated, never merged by hand. Migrations are ordered, not combined. If two people meant different things, that is a conversation, not a resolution.

What this is not

  • "I know what the bug is even though I cannot reproduce it" — a cause you cannot reproduce is a guess: the next useful thing is a way to reproduce it, not a change.

Done when

  • The cause is named at file:line and a person could disagree with it.
  • A check exists that fails without the fix and passes with it.
  • You said what you changed, in a sentence somebody could act on.

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 27d ago Changed · -1 lines · +2 tokens per session c2c10b826a63
  2. 1mo ago Changed aaa31b12c9bb
  3. 1mo ago Changed · +31 lines · +16 tokens per session 0e010e2f536d
  4. 1mo ago First seen · 55 lines · 133 tokens per session scan A f62c9b81b83a

Subscribe to this mod's changes

ai-debug is a skill published in the GitHub repository arcasilesgroup/ai-engineering (61 stars, last pushed 5d ago), licensed Apache-2.0. It adds 151 tokens to every session and 975 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

spk-admin-setup-doctor

Install, verify, and repair Spec Kitty commands, skills, agent paths, runtime prerequisites, and common setup failures.

Priivacy-ai/spec-kitty · 31 tokens

022-root-cause-analysis

Use when a framed problem needs root-cause investigation rather than a symptom-level fix, applying Five Whys, Fishbone (Ishikawa), Current Reality Tree, and constraint identification. This should trigger when an issue's Root Cause Analysis point of view needs evaluation, or when a maintainer directly asks to find the…

jabrena/plinth · 85 tokens

126-java-exception-handling

Use when you need to apply Java exception handling best practices — including using specific exception types, managing resources with try-with-resources, securing exception messages, preserving error context via exception chaining, validating inputs early with fail-fast principles, handling thread interruption…

jabrena/plinth · 144 tokens

skill-performance

AL performance optimization patterns for Business Central. Use when optimizing queries with SetLoadFields, working with FlowFields and CalcFields, profiling codeunits, or resolving performance issues.

javiarmesto/ALDC-AL-Development-Collection · 37 tokens

extracting-code-structure

Use when listing all methods, functions, or classes in a file, exploring unfamiliar code, getting API overviews, or deciding what to read selectively without loading entire files.

SebastienDegodez/copilot-instructions · 39 tokens

performance-optimization

Spring Boot 4 / JVM performance work — measure first, then fix. Profiling (async-profiler, JFR, JMH), Micrometer, common Spring antipatterns (N+1, unbounded lists, HikariCP sizing, virtual-thread pinning), caching, GC, and SLO-driven work. Used by /plan for risk callouts and by /review to flag perf regressions.

loiane/specs-driven-development-spring-angular · 89 tokens