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.
npx skills add MCKRUZ/claude-code-sdlc --skill diagnosegit clone --depth 1 https://github.com/MCKRUZ/claude-code-sdlcWrote 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.
[](https://agentmods.dev/skills/mckruz/claude-code-sdlc/diagnose)<a href="https://agentmods.dev/skills/mckruz/claude-code-sdlc/diagnose"><img src="https://agentmods.dev/badge/skills/mckruz/claude-code-sdlc/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.
<a href="https://agentmods.dev/skills/mckruz/claude-code-sdlc/diagnose"><img src="https://agentmods.dev/badge/skills/mckruz/claude-code-sdlc/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.00444 |
| Opus 5.5 | $0.00025 | $0.00178 |
| Sonnet 5.5 | $0.00012 | $0.00089 |
| Haiku 4.5 | $0.00006 | $0.00044 |
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 3mo 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.
What it actually says
Diagnose (bug-fix procedure)
A fix isn't done when the code changes — it's done when a test that failed because of the bug now passes. This procedure is mandatory for bug fixes; it makes the fix provable, not asserted.
Procedure
- Reproduce as a failing test FIRST. Write the smallest test that fails because of the bug, and watch it fail. Do not touch the production code yet. A bug you can't reproduce, you can't prove you fixed.
- Find the root cause. If it's obvious, name it. If it isn't, hand off to the debugger agent — it works in an isolated context, eliminates hypotheses, and returns the root cause + repro without burning your main context.
- Fix the cause, minimally. The smallest change that addresses the root cause — not the symptom, not a refactor the bug didn't require. If the real fix needs a gated path, stop and escalate (it's a new spec).
- Prove it. Run the failing test — it must now pass. Run the surrounding suite — nothing else went red. The Stop hook will block the turn on red tests anyway; beat it to the check.
- Guard against recurrence. Keep the reproducing test in the suite so the bug can't silently return; if the bug class is broad, add the obvious sibling cases.
Done when
- A test existed that failed because of the bug, and now passes.
- The fix is the minimal change at the root cause, inside the spec's bounds.
- The full suite is green and the reproducing test is committed.
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.
- 3mo ago First seen · 34 lines · 62 tokens per session scan A d4a6a6d563ec
diagnose is a skill published in the GitHub repository MCKRUZ/claude-code-sdlc (8 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 444 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.
diagnose compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnoseMCKRUZ/claude-code-sdlc | Skill | 8 | 1mo ago | MIT | A | 62 | Claude Code |
| testinggarrytan/gbrain | Skill | 34k | today | MIT | A | 63 | Claude Code |
| verifyYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 12 | Claude Code |
| detect-static-dependenciesdotnet/skills | Skill | 6.4k | today | MIT | A | 135 | Claude Code |
| experiment-iterative-coderEvoScientist/EvoSkills | Skill | 492 | yesterday | Apache-2.0 | A | 145 | Claude Code |
| dart-downstream-fixdartsim/dart | Skill | 1.2k | 2d ago | BSD-2-Clause | A | 25 | Claude Code |
| compiler-11897630FuRongJun-1999/dsh-memory | Skill | 771 | today | MIT | A | 83 | Claude Code |