diagnose-before-finding

diagnose-before-finding is a skill for Claude Code from faizkhairi/claude-code-blueprint. It costs 126 tokens per session (1,061 once invoked), scanned A, original, MIT.

A diagnostic checklist for checking a suspected bug, code-review finding, or guard change against source evidence and a reproducible test.

In plain words
What is it for?
Use it to identify who writes a value, determine what it means at each step, test competing explanations, and limit repeated fix attempts.
Why use it?
It reduces the risk of fixing the wrong cause or removing a protection based on an unverified conclusion.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; built for gstack.

Good fit Use it to identify who writes a value, determine what it means at each step, test competing explanations, and limit repeated fix attempts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/faizkhairi/claude-code-blueprint/diagnose-before-finding
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 faizkhairi/claude-code-blueprint --skill diagnose-before-finding
Clone the repo
git clone --depth 1 https://github.com/faizkhairi/claude-code-blueprint

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-before-finding

README.md
[![agentmods](https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/diagnose-before-finding/github.svg)](https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/diagnose-before-finding)
Your own site
<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.

agentmods 80×15 button for diagnose-before-finding

Your own site · 80×15
<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>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,061 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00126 $0.01061
Opus 5.5 $0.00050 $0.00424
Sonnet 5.5 $0.00025 $0.00212
Haiku 4.5 $0.00013 $0.00106

Measured 18d ago against content hash 7284e1b788ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
skills/diagnose-before-finding/SKILL.md · 59 lines

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Read the full file on GitHub · 59 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. 18d ago First seen · 59 lines · 126 tokens per session scan A 7284e1b788ed

Subscribe to this mod's changes

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.

Related

diagnose-before-finding compared with skills from other repositories

diagnose-before-finding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnose-before-findingfaizkhairi/claude-code-blueprintSkill7414d agoMITA126Claude Code
systemic-issue-triageGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA57Claude Code, Codex
issue-root-resolutionGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA45Claude Code, Codex
rdd-defect-workflowGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA38Claude Code, Codex
incident-responsedrafthq/draftSkill401mo agoMITA41Claude Code
system-healthrandomittin/heimdallSkill53d agoMITA102Claude Code
discoverdrafthq/draftSkill401mo agoMITA75Claude Code