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 faizkhairi/claude-code-blueprint --skill diagnose-before-findinggit clone --depth 1 https://github.com/faizkhairi/claude-code-blueprintWrote 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/faizkhairi/claude-code-blueprint/diagnose-before-finding)<a href="https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/diagnose-before-finding"><img src="https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/diagnose-before-finding/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/faizkhairi/claude-code-blueprint/diagnose-before-finding"><img src="https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/diagnose-before-finding.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.00126 | $0.01061 |
| Opus 5.5 | $0.00050 | $0.00424 |
| Sonnet 5.5 | $0.00025 | $0.00212 |
| Haiku 4.5 | $0.00013 | $0.00106 |
Grade A, and why
diagnose-before-finding scanned grade A with 1 finding 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 18d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Before forming a theory, have one command you have already run (a test, a curl, a script, or a read-only query when no local repro exists) that shows the exact symptom, that would go red on this bug and green once it is How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnose before the finding
Use this before a review verdict, before a "this is the cause" conclusion, before relaying a subagent's or reviewer's finding as real, and before any change that restores, removes or widens a guard. The failure it prevents: the evidence is real, but it was read as the wrong rule, and a confident fix ships for a bug that was not there.
A finding stays open until each of the four lines below has a source. "Not asked" is an allowed answer. It is not a pass.
The four lines
- Writer and carrier. Name the component that writes the value and the component that only passes it along. A successful response from the carrier proves the value arrived, not that it was the right value.
- Meaning at this step. What does the owner of the flow say this value means at this point? A field can be a snapshot taken when the record was created, while a later field is the one this step must use.
- The other side. What evidence would prove the other reading right? Run that check, or leave the finding open. Collecting only evidence that fits the leading guess is how a wrong diagnosis feels certain.
- Owner asked. Before changing the behaviour of a flow, ask the person who owns it. A test updated in the same commit as the behaviour it covers is the author stating the new rule, not a test bent to hide a bug.
Write them down before the verdict, each with a source (file and line, a query, a command and its output, or "not asked"):
Writer / carrier:
Meaning at this step:
What would prove the other side:
Owner asked:
If any line says "not asked" or has no source, the finding is not final: do not post it as MUST FIX and do not ship the change.
Repro loop
Before forming a theory, have one command you have already run (a test, a curl, a script, or a read-only query when no local repro exists) that shows the exact symptom, that would go red on this bug and green once it is fixed. "Runs without an error" is not that command.
- Shrink it. Remove inputs, callers, config and steps one at a time until removing any remaining one turns it green. What is left is the cause's neighbourhood.
- One change at a time. Test one hypothesis with the smallest change. Never stack a second fix on a failed one: revert the first.
- Red first. A regression test must fail on the code before the fix. A test that passes both before and after proves nothing about the fix.
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.
- 18d ago First seen · 59 lines · 126 tokens per session scan A 7284e1b788ed
diagnose-before-finding is a skill published in the GitHub repository faizkhairi/claude-code-blueprint (74 stars, last pushed 14d ago), licensed MIT. It adds 126 tokens to every session and 1,061 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
diagnose-before-finding compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnose-before-findingfaizkhairi/claude-code-blueprint | Skill | 74 | 14d ago | MIT | A | 126 | Claude Code |
| systemic-issue-triageGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 57 | Claude Code, Codex |
| issue-root-resolutionGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 45 | Claude Code, Codex |
| rdd-defect-workflowGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 38 | Claude Code, Codex |
| incident-responsedrafthq/draft | Skill | 40 | 1mo ago | MIT | A | 41 | Claude Code |
| system-healthrandomittin/heimdall | Skill | 5 | 3d ago | MIT | A | 102 | Claude Code |
| discoverdrafthq/draft | Skill | 40 | 1mo ago | MIT | A | 75 | Claude Code |