by-failure-diagnosis

by-failure-diagnosis is a skill for Claude Code from 001TMF/blatant-why. It costs 6 tokens per session (5,340 once invoked), scanned A, original, MIT.

A statistical analysis step for finding why designs pass or fail screening. It compares measurable properties of successful and unsuccessful designs and ranks which properties best distinguish them.

In plain words
What is it for?
Use it when enough designs have numeric measurements and pass/fail labels, especially after a low pass rate or before optimizing the next design round.
Why use it?
A pass/fail result alone does not explain what to change; this analysis turns failure patterns into possible threshold or campaign adjustments.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when enough designs have numeric measurements and pass/fail labels, especially after a low pass rate or before optimizing the next design round.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/001tmf/blatant-why/by-failure-diagnosis
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 001TMF/blatant-why --skill by-failure-diagnosis
Clone the repo
git clone --depth 1 https://github.com/001TMF/blatant-why

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 by-failure-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/001tmf/blatant-why/by-failure-diagnosis/github.svg)](https://agentmods.dev/skills/001tmf/blatant-why/by-failure-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/001tmf/blatant-why/by-failure-diagnosis"><img src="https://agentmods.dev/badge/skills/001tmf/blatant-why/by-failure-diagnosis/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 by-failure-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/001tmf/blatant-why/by-failure-diagnosis"><img src="https://agentmods.dev/badge/skills/001tmf/blatant-why/by-failure-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,340 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00006 $0.05340
Opus 5 $0.00003 $0.02670
Sonnet 5 $0.00001 $0.01068
Haiku 4.5 $0.00001 $0.00534

Measured 12d ago against content hash c29f610a9111, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

by-failure-diagnosis 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/diagnose_from_csv.py, scripts/plot_distributions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

templates/.claude/skills/by-failure-diagnosis/SKILL.md · 383 lines

How it starts

The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BY Failure Diagnosis Skill

Closing the design feedback loop requires understanding why designs fail, not just that they fail. This skill compares the distribution of every continuous feature between PASS and FAIL designs using non-parametric statistics, ranks features by discriminating power, and translates the result into concrete threshold or campaign-parameter changes for the next iteration.

It is the bridge between screening (which produces PASS/FAIL labels) and campaign optimization (which adjusts parameters for the next round).


When to Use This Skill

Use this skill when:

  • Pass rate is below 20% in a screening round and you need to know why before re-spending compute
  • At least 30 designs have been scored with a status field (PASS or FAIL)
  • You have numeric features per design (ipSAE, ipTM, pLDDT, RMSD, liabilities, net_charge, hydrophobic_fraction, cdr3_length)
  • User explicitly asks "why are my designs failing?", "diagnose failures", "what's going wrong?"
  • Before the active-learning step in a multi-round campaign (route diagnosis → optimizer)
  • After a screening regression where pass rate dropped versus a prior round

Don't use this skill when:

  • Fewer than 30 designs total — statistical power is too low; the test will be noisy. Score more designs first.
  • No FAIL designs (100% pass rate) — there is nothing to compare against. Either tighten thresholds or move to lab submission.
  • No PASS designs (0% pass rate) — there is nothing to compare against. Use by-hypothesis-debate to pick a new strategy before spending more compute.
  • You want to redesign individual residues — that is per-design rationale, not population statistics. Use by-epitope-analysis instead.
  • You want to predict structures or score new designs — use protenix or by-scoring instead.
  • The campaign has different scoring criteria across rounds — comparing apples to oranges; run diagnosis within a single round only.

Read the full file on GitHub · 383 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 383 lines · 6 tokens per session scan A c29f610a9111

Subscribe to this mod's changes

by-failure-diagnosis is a skill published in the GitHub repository 001TMF/blatant-why (114 stars, last pushed 26d ago), licensed MIT. It adds 6 tokens to every session and 5,340 once invoked, about $0.0000 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-30.