agentleFS
TrecekTrecek/useful-claude-skills/.claude/skills/exp-lens-severity-testing/SKILL.md

exp-lens-severity-testing

Skill1 starsChanged 8 months agoMITView on GitHub

Analyze severity of experimental tests — adversarial cases, negative controls, falsification tests, easy-pass detection, and confirmatory theater. Falsificationist lens answering "Would this design have caught the error?

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for …

    line 29
  2. Very specific:

    BEFORE creating any diagram, LOAD the /mermaid skill using the Skill tool - this is MANDATORY

    line 37
  3. Distinctive:

    Look for: significant, improves, outperforms, better, wins, advantage, novel

    line 50
  4. Distinctive:

    Look for: negative_control, sanity, baseline, random, null, ablation, placebo

    line 55
  5. Distinctive:

    Look for: adversarial, worst_case, edge, corner, stress, boundary, failure

    line 60
  6. Distinctive:

    Look for: alternative, confound, artifact, spurious, leakage, bias, explain

    line 65
  7. Distinctive:

    Look for: predict, expect, hypothesis, specific, precise, direction, magnitude

    line 70
  8. Very specific:

    Write the analysis to: temp/exp-lens-severity-testing/exp_diag_severity_testing_{YYYY-MM-DD_HHMMSS}.md

    line 111
  9. Distinctive:

    Before creating the diagram, verify:

    line 233

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Severity Testing Experimental Design Lens

Philosophical Mode: Falsificationist Primary Question: "Would this design have caught the error?" Focus: Adversarial Cases, Negative Controls, Falsification Tests, Easy-Pass Detection, Confirmatory Theater

When to Use

  • Evaluating whether positive results are meaningful or trivially achievable
  • Checking for adversarial robustness of experimental conclusions
  • User invokes /exp-lens-severity-testing or /make-experiment-diag severity

Critical Constraints

NEVER:

  • Modify any source code files
  • Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves
  • Accept a "pass" result without asking what a false result would have looked like under this design

ALWAYS:

  • For every positive claim, identify what error the test was capable of detecting
  • Inventory negative controls and sanity checks explicitly — their absence is a finding
  • Rate severity before reporting conclusions, not after
  • Flag confirmatory theater: experiments designed to confirm rather than risk refutation
  • BEFORE creating any diagram, LOAD the /mermaid skill using the Skill tool - this is MANDATORY

Analysis Workflow

Step 1: Launch Parallel Exploration Subagents

Spawn Explore subagents to investigate:

Positive Results Claimed

  • Find all positive claims and statistically significant results
  • Identify the conclusions drawn from each positive finding
  • Look for: significant, improves, outperforms, better, wins, advantage, novel

Negative Controls & Sanity Checks

  • Find tests designed to fail or baseline sanity checks
  • Identify whether any test was included specifically to validate the measurement apparatus
  • Look for: negative_control, sanity, baseline, random, null, ablation, placebo

Adversarial Conditions

  • Find testing under hostile, edge-case, or boundary conditions
  • Identify whether the experiment was exposed to conditions that would stress its assumptions
  • Look for: adversarial, worst_case, edge, corner, stress, boundary, failure

Alternative Explanations Tested

  • Find whether the experiment actively tries to rule out alternative explanations
  • Identify confound checks, artifact controls, and leakage tests
  • Look for: alternative, confound, artifact, spurious, leakage, bias, explain

Prediction Specificity

  • Find how specific the predictions are that the data is claimed to support
  • Identify whether predictions were directional, magnitude-specific, or vague
  • Look for: predict, expect, hypothesis, specific, precise, direction, magnitude

Step 2: Assess Severity for Each Claim

For each positive claim, answer:

  1. What specific errors was this test capable of detecting?
  2. How easily could the claim pass if it were actually wrong?
  3. Were negative controls included to validate the measurement apparatus?
  4. Were adversarial conditions tested?
  5. Is the "pass" informative or trivially achievable by any plausible intervention?

Step 3: Rate Severity and Identify Gaps

CRITICAL — Analyze Test Severity: For every "pass" the experiment reports:

  • What would a false result have looked like under this design?
  • Was the test sensitive enough to distinguish genuine from artifactual success?
  • Was there any test that could have falsified the claim but was not included?

Severity ratings:

  • HIGH: The test would almost certainly have detected the error if the claim were false
  • MEDIUM: Reasonable chance the test would have detected the error
  • LOW: The test could easily have passed even if the claim were false — result is not informative

Flag as confirmatory theater when: the design was structured to confirm an expected result, the positive finding was predictable regardless of true effect, and no test was included that risked refuting the hypothesis.

Step 4: Create Optional Severity-Flow Diagram

This lens is primarily argumentative. An optional severity-flow diagram may be added to show how claims flow through severity assessment to verdicts.

Direction: TB (claims flow through severity assessment to verdicts)

Node Styling:

  • cli class: Claims and positive results
  • detector class: High-severity tests (would have caught the error)
  • handler class: Medium-severity tests (reasonable chance)
  • gap class: Low-severity or untested claims
  • output class: Severity verdicts

Step 5: Write Output

Write the analysis to: temp/exp-lens-severity-testing/exp_diag_severity_testing_{YYYY-MM-DD_HHMMSS}.md


Output Template

# Severity Testing Analysis: {System / Experiment Name}

**Lens:** Severity Testing (Falsificationist)
**Question:** Would this design have caught the error?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}

## Severity Assessment

| Claim | Test Applied | Severity Rating | What Would Failure Look Like? |
|-------|-------------|----------------|------------------------------|
| {claim} | {test used} | {HIGH / MEDIUM / LOW} | {what a false positive would have looked like} |

## Negative Control Inventory

| Control | Purpose | Present? | Notes |
|---------|---------|----------|-------|
| {control name} | {what it validates} | {yes / no / partial} | {finding if absent} |

## Adversarial Gap Analysis

| Condition | Tested? | Risk if Untested |
|-----------|---------|-----------------|
| {adversarial condition} | {yes / no} | {what failure mode is left undetected} |

## Easy-Pass Detector

Claims that could be true for trivial reasons — passing the test does not distinguish genuine from artifactual success:

| Claim | Why It Is an Easy Pass | Strengthening Test Needed |
|-------|----------------------|--------------------------|
| {claim} | {mechanism of trivial pass} | {what harder test would distinguish} |

## Confirmatory Theater Flags

{List any experiment components that appear designed to confirm rather than risk refutation, or "None detected."}

- **Flag**: {description of theater pattern}
  - **Evidence**: {what makes this look confirmatory rather than genuinely falsifiable}
  - **Remedy**: {what adversarial test would make this falsifiable}

## Optional Severity-Flow Diagram

```mermaid
%%{init: {'flowchart': {'nodeSpacing': 40, 'rankSpacing': 50, 'curve': 'basis'}}}%%
flowchart TB
    %% CLASS DEFINITIONS %%
    classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
    classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
    classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
    classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
    classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;
    classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
    classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
    classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;
    classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;

    subgraph Claims ["POSITIVE CLAIMS"]
        C1["Claim 1<br/>━━━━━━━━━━<br/>{stated conclusion}"]
        C2["Claim 2<br/>━━━━━━━━━━<br/>{stated conclusion}"]
    end

    subgraph HighSev ["HIGH-SEVERITY TESTS"]
        HS1["Adversarial Test<br/>━━━━━━━━━━<br/>would detect false claim"]
        HS2["Negative Control<br/>━━━━━━━━━━<br/>validates apparatus"]
    end

    subgraph MedSev ["MEDIUM-SEVERITY TESTS"]
        MS1["Sanity Check<br/>━━━━━━━━━━<br/>reasonable detection chance"]
    end

    subgraph LowSev ["LOW-SEVERITY / UNTESTED"]
        LS1["Easy-Pass Test<br/>━━━━━━━━━━<br/>trivially achievable"]
        LS2["Untested Condition<br/>━━━━━━━━━━<br/>gap in coverage"]
    end

    subgraph Verdicts ["SEVERITY VERDICTS"]
        V_HIGH["HIGH Severity<br/>━━━━━━━━━━<br/>informative pass"]
        V_MED["MEDIUM Severity<br/>━━━━━━━━━━<br/>partial confidence"]
        V_LOW["LOW Severity<br/>━━━━━━━━━━<br/>uninformative pass"]
    end

    C1 --> HS1
    C1 --> MS1
    C2 --> HS2
    C2 --> LS1
    C2 -.->|"not tested"| LS2

    HS1 --> V_HIGH
    HS2 --> V_HIGH
    MS1 --> V_MED
    LS1 --> V_LOW
    LS2 --> V_LOW

    class C1,C2 cli;
    class HS1,HS2 detector;
    class MS1 handler;
    class LS1,LS2 gap;
    class V_HIGH,V_MED,V_LOW output;

Color Legend:

ColorCategoryDescription
Dark BlueClaimsPositive claims and conclusions under evaluation
RedHigh SeverityTests that would reliably detect a false claim
OrangeMedium SeverityTests with a reasonable chance of detection
YellowLow SeverityEasy-pass tests or untested gaps
Dark TealVerdictsSeverity verdict assigned to each claim

---

## Pre-Diagram Checklist

Before creating the diagram, verify:

- [ ] LOADED `/mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table

---

## Related Skills

- `/make-experiment-diag` - Parent skill for experimental lens selection
- `/mermaid` - MUST BE LOADED before creating diagram
- `/exp-lens-error-budget` - For quantifying the statistical error tolerances of each test
- `/exp-lens-validity-threats` - For cataloguing validity threats that undermine the claims

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.