debug-diagnoser

debug-diagnoser is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 85 tokens per session (1,602 once invoked), scanned A, original, Apache-2.0.

A diagnostic tool that reads a stack trace or error log and matches it against known error patterns. A stack trace is the record of the calls that led to a program failure.

In plain words
What is it for?
Use it to triage traceback text or log files, identify likely causes and source locations, and produce a structured diagnosis for a later code-fixing step.
Why use it?
It helps narrow down the likely cause of a crash and separates urgent issues from less serious ones. It suggests a minimal fix but does not modify the code.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/diagnoser.py --help >/dev/null 2>&1 # expected exit code 0; on failure: script missing → check the skill directory.

Good fit Use it to triage traceback text or log files, identify likely causes and source locations, and produce a structured diagnosis for a later code-fixing step.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/debug-diagnoser

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/debug-diagnoser"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/debug-diagnoser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,602 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.00085 $0.01602
Opus 5.5 $0.00034 $0.00641
Sonnet 5.5 $0.00017 $0.00320
Haiku 4.5 $0.00009 $0.00160

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

Security

Grade A, and why

debug-diagnoser 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 2mo 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.

site/skills/programming/debug/debug-diagnoser/SKILL.md · 108 lines

How it starts

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

Debug Diagnoser

Triage errors: parse the stack → match known error patterns → rank by severity → give a minimal fix suggestion, producing a structured diagnosis JSON for code-generator to consume. It only diagnoses and ranks; it doesn't change code.

Input Checklist

Input Required Description
--trace One of two Stack/error text (quoted, may contain escaped newlines)
--file One of two Path to an error log file; at least one of --trace / --file must be provided
--output Optional Where the diagnosis is written; defaults to stdout

When inputs are missing, ask for all at once: "Please provide: (1) the full traceback text or the path to an error log file; (2) (optional) whether to write the result to a file. Everything else I run on defaults: the diagnosis prints to the terminal."

Pre-flight Checks

Probe the environment before running; on any failure → give the fix and STOP:

python3 --version   # expected 3.8+; on failure: install python3
python3 scripts/diagnoser.py --help >/dev/null 2>&1   # expected exit code 0; on failure: script missing → check the skill directory
test -f <the --file path the user gave>   # expected exit code 0; on failure: the log file doesn't exist → use --trace to paste the text directly

Workflow

Step 1: Collect the complete error

Expected: get a full traceback containing the exception type and File "...", line N (a truncated stack loses matching clues). On failure: the user only gave a screenshot/description of the error → ask them to paste the text log; if the log file is too large → first run grep -n "Traceback\|Error" error.log to locate the key section.

Step 2: Run the diagnosis

python3 scripts/diagnoser.py --trace "Traceback ... TypeError: 'NoneType' object is not callable"
python3 scripts/diagnoser.py --file error.log --output diagnosis.json

Expected: stdout (or the --output file) emits JSON with status = diagnosed, containing issues[] (each with error_type/likely_cause/fix_suggestion/severity), locations[] (file:line, up to 5), top_severity, recommendation, and next_skill.

Read the full file on GitHub · 108 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. 2mo ago Changed · -5 tokens per session 025766252f6e
  2. 2mo ago First seen · 108 lines · 90 tokens per session scan A 9efc96ecbfdb

Subscribe to this mod's changes

debug-diagnoser is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,602 once invoked, about $0.0003 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-09-19.

Related

debug-diagnoser compared with skills from other repositories

debug-diagnoser next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-diagnoserMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A85Claude Code, Codex
systematic-debuggingNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
python-debugpyNousResearch/hermes-agentSkill267ktodayMITB17Claude Code, Codex
sglang-diffusion-benchmark-profilesgl-project/sglangSkill39ktodayApache-2.0A26Claude Code, Codex
resolve-handoffomnigent-ai/omnigentSkill12ktodayApache-2.0A23Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
iterate-implementationhumanlayer/humanlayerSkill13k7d agoApache-2.0A16Claude Code, Codex