debugging-diagnosis

debugging-diagnosis is a skill for Claude Code, Codex from stark-ai-de/agent-skills. It costs 53 tokens per session (664 once invoked), scanned A, original, Apache-2.0.

A bug-investigation and repair process based on reproducing the failure, narrowing its cause, testing hypotheses, and adding regression coverage. Regression coverage is a test that helps ensure the same bug does not return.

In plain words
What is it for?
Use it for runtime errors, broken behavior, failing or flaky tests, broken workflows, and earlier fixes that were based on speculation.
Why use it?
It replaces guesses with a small, repeatable reproduction and evidence for the root cause. This makes the fix easier to verify and reduces the chance of hiding the original problem.

Skill for Claude CodeCodex

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

Good fit Use it for runtime errors, broken behavior, failing or flaky tests, broken workflows, and earlier fixes that were based on speculation.

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

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 debugging-diagnosis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/stark-ai-de/agent-skills/debugging-diagnosis"><img src="https://agentmods.dev/badge/skills/stark-ai-de/agent-skills/debugging-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 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.00053 $0.00664
Opus 5.5 $0.00021 $0.00266
Sonnet 5.5 $0.00011 $0.00133
Haiku 4.5 $0.00005 $0.00066

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

Security

Grade A, and why

debugging-diagnosis 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.

incubator/skills/engineering-workflows/debugging-diagnosis/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.

Debugging Diagnosis

Goal

Find the smallest proven cause of a bug, fix it, and leave regression coverage or clear validation evidence.

When to use

  • The user reports a bug, failing test, runtime error, broken workflow, or flaky behavior.
  • A prior fix was speculative and needs a reproducible diagnosis.
  • The task needs root cause analysis before a code change.

When not to use

  • The user asks for a pure design plan with no failing behavior.
  • The task is a known mechanical edit with an obvious validation command.
  • The user asks for a broad repo audit rather than a specific failure.

Inputs to inspect

  • Exact error text, logs, screenshots, failing test output, or reproduction steps.
  • Recent diffs and git status --short.
  • Relevant package scripts, test commands, CI workflow, issue context, and domain docs if present.
  • Existing tests around the failing behavior.

Workflow

  1. Establish the failure in the current environment or state what cannot be reproduced.
  2. Minimize the reproduction to the smallest command, input, route, component, or test case.
  3. Form one or more falsifiable hypotheses and inspect only the files needed to test them.
  4. Add temporary instrumentation only when it answers a specific question; remove it before completion.
  5. Fix the smallest cause that explains the reproduction.
  6. Add or update regression coverage at the observable behavior boundary.
  7. Re-run the reproduction and the smallest relevant validation command.

Safety rules

  • Do not make broad rewrites before proving the failure path.
  • Do not hide a failure by weakening assertions, swallowing errors, or deleting coverage.
  • Do not leave debug logs, probes, or temporary scripts behind.
  • Do not claim a bug is fixed without a passing reproduction or an explicit validation limitation.

References

No bundled references. If the repo has docs/agents/validation.md or domain docs, inspect them when selecting validation commands or domain-specific expected behavior.

Read the full file on GitHub · 85 lines

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 · 85 lines · 53 tokens per session scan A 48199455672a

Subscribe to this mod's changes

debugging-diagnosis is a skill published in the GitHub repository stark-ai-de/agent-skills (8 stars, last pushed 3d ago), licensed Apache-2.0. It adds 53 tokens to every session and 664 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

layerkit-fix-from-dry-run

Fix failed integration verification from logs, tests, and docs evidence; edit real package files, no invention.

hariharapanigrahy/layerkit · 30 tokens

behaviour-equivalence

Prove that a rewritten, migrated or refactored component behaves the same as the old one with a golden-master comparison — record inputs and outputs at a boundary (HTTP, function calls, batch files, DB writes, events) from production-shaped traffic and edge cases, run the old system twice to find its nondeterminism…

sananthanarayan/skilldrop · 199 tokens

systematic-debugging

4-phase root cause debugging: understand bugs before fixing.

NousResearch/hermes-agent · 16 tokens

langsmith-observability

LLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring production systems, or building systematic testing pipelines for AI applications.

davila7/claude-code-templates · 45 tokens

experimental-code-coverage-local-debugger

Runs code coverage locally via Universal Test Runner (UTR) or helper scripts, mimicking LUCI trybots. Activate when CQ tryjobs fail or underreport coverage, to test local GN/recipe repairs before uploading, or to debug hermetic crashes.

chromium/chromium · 59 tokens

verify-omnigent

Drive Omnigent the way a user does and prove a behavior with recorded evidence, using an isolated server, runner, and mock model plus a feature map of every user entry point. Load before reproducing a user-facing bug, before claiming a fix works, or when reviewing whether a change covered every surface (session vs.…

omnigent-ai/omnigent · 100 tokens