diagnose

diagnose is a skill for Claude Code from Jkudjo/oh-my-cursor. It costs 17 tokens per session (265 once invoked), scanned A, original, MIT.

A method for finding the root cause of a problem by listing several possible explanations before investigating them. It gathers facts, ranks hypotheses, tests them, and produces an evidence-backed diagnosis.

In plain words
What is it for?
Use it when the cause of errors, production differences, or user-reported problems is unknown. It produces the likely cause, affected scope, rollback path, and verification steps before handing the fix to another workflow.
Why use it?
It helps avoid jumping to the first plausible explanation or treating a green dashboard as proof that nothing is wrong.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when the cause of errors, production differences, or user-reported problems is unknown. It produces the likely cause, affected scope, rollback path, and verification steps before handing the fix to another workflow.

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

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 diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/jkudjo/oh-my-cursor/diagnose/github.svg)](https://agentmods.dev/skills/jkudjo/oh-my-cursor/diagnose)
Your own site
<a href="https://agentmods.dev/skills/jkudjo/oh-my-cursor/diagnose"><img src="https://agentmods.dev/badge/skills/jkudjo/oh-my-cursor/diagnose/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 diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/jkudjo/oh-my-cursor/diagnose"><img src="https://agentmods.dev/badge/skills/jkudjo/oh-my-cursor/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 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.00017 $0.00265
Opus 5.5 $0.00007 $0.00106
Sonnet 5.5 $0.00003 $0.00053
Haiku 4.5 $0.00002 $0.00026

Measured 1mo ago against content hash 55af1988d1a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

skills/diagnose/SKILL.md · 33 lines

What it actually says

diagnose

Structured diagnosis that prevents tunneling on the first plausible theory.

The iron law

Root cause before fix. Never propose a solution without evidence-backed cause.

What it does

  1. Gathers facts — what, when, scope, what changed (read-only)
  2. Generates ≥5 hypotheses across app/data/network/infra/client domains — before investigating any
  3. Ranks by likelihood × blast radius × ease of ruling out
  4. Investigates in ranked order, updating confidence as evidence comes in
  5. Produces a confirmed diagnosis with blast radius, rollback path, and verification steps
  6. Hands off to @ralph for the fix

When to use

  • "The API is returning 500s"
  • "Users report X but metrics look fine"
  • "It works in staging but not prod"
  • Any situation where the cause is unknown

What it avoids

  • Tunneling on the first theory
  • Treating "check the logs" as a hypothesis
  • Trusting green dashboards as proof of no incident
  • Fixing before the root cause is confirmed
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 · 33 lines · 17 tokens per session scan A 55af1988d1a5

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository Jkudjo/oh-my-cursor (1 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 265 once invoked, about $0.0001 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

sonicg-review-cleanup

OrbitalSonic Gemini Skill: Review unused code/drawables, APK/AAB size (PNG→WebP, vectors), and release R8/optimization on :app only. Use for cleanup, dead resources, or app-size suggestions. Prefer sonicg-review-complete for a full multi-check pass.

orbitalsonic/AndroidPilot · 0 tokens

sonicc-review-cleanup

OrbitalSonic Claude Skill: Review unused code/drawables, APK/AAB size (PNG→WebP, vectors), and release R8/optimization on :app only. Use for cleanup, dead resources, or app-size suggestions. Prefer sonicc-review-complete for a full multi-check pass.

orbitalsonic/AndroidPilot · 0 tokens

sonic-review-performance

Sonic Cursor Skill: Review Android code for ANR risk, large dataset handling, dispatchers, and RecyclerView performance. Use when optimizing lists, fixing jank, ANR, or slow screens. Prefer sonic-review-complete for a full multi-check pass.

orbitalsonic/AndroidPilot · 0 tokens

sonicg-review-performance

OrbitalSonic Gemini Skill: Review Android code for ANR risk, large dataset handling, dispatchers, and RecyclerView performance. Use when optimizing lists, fixing jank, ANR, or slow screens. Prefer sonicg-review-complete for a full multi-check pass.

orbitalsonic/AndroidPilot · 0 tokens

sonicc-review-performance

OrbitalSonic Claude Skill: Review Android code for ANR risk, large dataset handling, dispatchers, and RecyclerView performance. Use when optimizing lists, fixing jank, ANR, or slow screens. Prefer sonicc-review-complete for a full multi-check pass.

orbitalsonic/AndroidPilot · 0 tokens

systematic-debugging

Use when encountering bugs, test failures, unexpected behavior, or any technical issue before proposing fixes.

luisabwk/kraken · 18 tokens