diagnose

diagnose is a skill for Claude Code from donald-ada/workinggenius. It costs 70 tokens per session (633 once invoked), scanned A, original, MIT.

A debugging process that confirms a bug with a failing reproduction, compares multiple possible causes, and proves the fix with a fresh successful rerun.

In plain words
What is it for?
Use it when software is broken, slow, flaky, or throwing errors, or when someone asks for diagnosis. It helps narrow the failing case, test hypotheses, and verify the result.
Why use it?
It prevents developers from fixing the first plausible cause without confirming that the reported problem is real or that the fix actually removes it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workinggenius plugin — 22 skills, 3 agents shipped together

Good fit Use it when software is broken, slow, flaky, or throwing errors, or…

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

Made for: Claude Code.

Or install workinggenius, the plugin that ships this one along with the rest of its 22 skills, 3 agents.

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 diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/donald-ada/workinggenius/diagnose.svg)](https://agentmods.dev/skills/donald-ada/workinggenius/diagnose)
Your own site
<a href="https://agentmods.dev/skills/donald-ada/workinggenius/diagnose"><img src="https://agentmods.dev/badge/skills/donald-ada/workinggenius/diagnose.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 633 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.00070 $0.00633
Opus 5 $0.00035 $0.00316
Sonnet 5 $0.00014 $0.00127
Haiku 4.5 $0.00007 $0.00063

Measured 7d ago against content hash 21e11e21deeb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

diagnose 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 7d 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/diagnose/SKILL.md · 17 lines

What it actually says

Diagnose

A bug is a piece of work whose problem statement nobody confirmed — and debugging fails the way all work fails: at whichever stage got skipped. Read code until a cause feels plausible, fix that, call it done when nothing visibly objects — that is idea straight to implementation with everything between skipped, at minute scale.

The concept: the six geniuses, run at minute scale — no ceremony, no work file, the same order.

  • Wonder — the code confirms the problem. A bug's confirmation line is a red reproduction: one command, run here, that shows the symptom the user reported — red while the bug lives, green when it dies. That command is the code saying "yes, that's it," and until it exists nothing is confirmed and no theory has standing; catching yourself building one first is the stop. A flaky symptom is confirmed by rate — raise the reproduction until signal beats noise. Then shrink the statement: cut inputs, config, and callers one at a time, re-running after each cut, until everything left is load-bearing. The wrong bug reproduced is the wrong problem confirmed.
  • Invention and Discernment — hypotheses are options, and options earn survival. More than one before testing any: a single hypothesis explored is anchoring with extra steps. Each names its prediction — "if this is the cause, that change turns the reproduction green" — because a hypothesis that predicts nothing can only be believed, never attacked. Attack in rank order, one variable at a time; a dead hypothesis gets its one-line kill-reason, so nobody — including you, an hour from now — walks that path twice.
  • Enablement and Tenacity — red to green, and green is fresh. The surviving hypothesis becomes a fix proven by the reproduction it was born from, and a regression test at a real seam where one exists — where none does, that absence is a finding about the design, recorded (one line in .genius/BACKLOG.md, where the project keeps one, so it gets built instead of remembered), never a license to skip. Close out clean: the rerun fresh, the debug scaffolding gone, the cause stated where the fix is recorded — a fix whose cause is unstated gets un-fixed by the next confident refactor. And what the hunt disproved on the way is corrected where it was written (errata skill) — the stated fact the reproduction contradicted, the pinned value that measured differently here; left standing, it is what sends the next session down the path this one just cleared.

Three failed fixes are not a third of the way to nine: they impeach the problem statement. Back to Wonder — question the reproduction, and what it silently assumes.

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. 7d ago First seen · 17 lines · 70 tokens per session scan A 21e11e21deeb

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository donald-ada/workinggenius (6 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 633 once invoked, about $0.0003 per session on Opus 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

dw-doctor

Read-only environment diagnostic for a solo-lane repo: whether the tools the hooks and skills assume are installed, and whether the guardrails and the pre-commit really fire here or are silently skipping, each gap reported with a copy-paste fix.

dominikwozniak/dw-solo-skills · 54 tokens

debugging

Systematic debugging that applies the scientific method to failures. Use when the user says "debug this", "why is this failing", "help me find the bug", or is stuck on a problem and thrashing without progress.

tslateman/duet · 48 tokens

performance

Profiling methodology and optimization strategy for performance work. Use when the user asks to "make this faster", "optimize", "profile", "reduce latency", "fix slow", "improve throughput", or when investigating performance regressions.

tslateman/duet · 50 tokens

c-find-bugs

Concrete defect hunting on a target. Operates on docs OR code. Different lens from /c-check ("is this good?"); this asks "what specific defects exist?" Targets: design folder, plan folder, branch, file, or --repo. Repo scope is token-heavy and requires explicit confirmation before starting. Output is a prioritized…

sentasity/cadence · 85 tokens

sweep

Post-op check for artifacts, damage, and stale references after agent work.

tslateman/duet · 17 tokens

issue

Register a bug, deferral, or known limitation as the next ISS-NNN in docs/registry/ISSUES.md with severity and an investigation path. Use when the user types /genesis:issue, says "log this bug/issue", "defer this", or when work uncovers a problem that will not be fixed in the current task in a GENESIS project.

godshiba/genesis · 79 tokens