why-diagnostic

why-diagnostic is a skill for Claude Code from shawnclybor/clybor-claude-tooling. It costs 100 tokens per session (3,001 once invoked), scanned A, original, MIT.

A diagnostic guide for explaining why an agent, tool, or generated result behaved incorrectly. It frames the investigation like an incident report.

In plain words
What is it for?
Investigating failed commands, unexpected agent actions, incorrect output, and other problems during agent or tool work.
Why use it?
It turns vague failure questions into a structured explanation of what happened and why.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Investigating failed commands, unexpected agent actions, incorrect output, and other problems during agent or tool work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shawnclybor/clybor-claude-tooling/why-diagnostic
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 shawnclybor/clybor-claude-tooling --skill why-diagnostic
Clone the repo
git clone --depth 1 https://github.com/shawnclybor/clybor-claude-tooling

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 why-diagnostic

README.md
[![agentmods](https://agentmods.dev/badge/skills/shawnclybor/clybor-claude-tooling/why-diagnostic/github.svg)](https://agentmods.dev/skills/shawnclybor/clybor-claude-tooling/why-diagnostic)
Your own site
<a href="https://agentmods.dev/skills/shawnclybor/clybor-claude-tooling/why-diagnostic"><img src="https://agentmods.dev/badge/skills/shawnclybor/clybor-claude-tooling/why-diagnostic/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 why-diagnostic

Your own site · 80×15
<a href="https://agentmods.dev/skills/shawnclybor/clybor-claude-tooling/why-diagnostic"><img src="https://agentmods.dev/badge/skills/shawnclybor/clybor-claude-tooling/why-diagnostic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,001 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.00100 $0.03001
Opus 5.5 $0.00040 $0.01200
Sonnet 5.5 $0.00020 $0.00600
Haiku 4.5 $0.00010 $0.00300

Measured yesterday against content hash 3b006b4440e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

why-diagnostic 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 yesterday.

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.

.claude/skills/why-diagnostic/SKILL.md · 181 lines

How it starts

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

Why Diagnostic

Purpose

When something happens in agent or tool work and the user asks "why," the temptation is to produce a tidy causal story: X happened because Y. That story is usually wrong, or right for the wrong reason, because it skips the frame the question is being asked inside.

This skill runs a three-step diagnostic borrowed from Wittgenstein's On Certainty:

  1. Name the language-game. What practice is the "why" being asked inside? Debugging? Prompt design? Architecture justification? The same event has different "real" causes in each.
  2. Surface the hinges. What's being held fast — unexamined — for the explanation to even make sense? These are the assumptions doing silent work.
  3. Name the stop point. Where does the chain of "because" actually give out? Don't fake further depth. State it.

That analytical structure stays intact — those labels (language-game, hinges, chain of because, stop point, the hinge-worth-testing) are the methodology, and they're how the model reasons through the question internally. But the user-facing output is a translation: connected prose in incident-report shape, not labeled blocks. The user never sees the labels; they see a short post-mortem-style write-up that reflects what the labeled analysis produced.

When to use

Trigger when the user asks "why" about anything in the agent/tool workflow:

  • A tool failed or behaved oddly — "why did the MCP call return nothing", "why did Brave Search return zero results", "why did this script error"
  • An agent's output isn't what expected — "why did the agent format this as a table when I said plain English", "why did it ignore the rubric"
  • A design choice needs justifying — "why am I using Langfuse here vs. GitHub Actions", "why should the scorer be flat instead of nested"

Do NOT use for:

  • Factual lookups ("why is the sky blue") — just answer
  • Emotional/personal "why" questions — that's not what this is for
  • Cases where the user just wants the direct fix and the "why" is rhetorical

Read the full file on GitHub · 181 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. yesterday Changed · +30 lines 3b006b4440e2
  2. 18d ago Changed · +2 lines b9f25cba9bbd
  3. 2mo ago First seen · 149 lines · 100 tokens per session scan A b4a447a65a60

Subscribe to this mod's changes

why-diagnostic is a skill published in the GitHub repository shawnclybor/clybor-claude-tooling (6 stars, last pushed yesterday), licensed MIT. It adds 100 tokens to every session and 3,001 once invoked, about $0.0004 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

why-diagnostic compared with skills from other repositories

why-diagnostic next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
why-diagnosticshawnclybor/clybor-claude-toolingSkill6yesterdayMITA100Claude Code
debugSienkLogic/plan-build-runSkill187mo agoMITA13Claude Code
scanSienkLogic/plan-build-runSkill187mo agoMITA18Claude Code
audit-fixSienkLogic/plan-build-runSkill187mo agoMITA22Claude Code
healthSienkLogic/plan-build-runSkill187mo agoMITA13Claude Code
forensicsSienkLogic/plan-build-runSkill187mo agoMITA23Claude Code
yd-finguardLeeYudok/agents-scaffoldSkill38yesterdayMITA63Claude Code