agentleFS
niksavisniksavis/basicly/.agents/skills/falsify-first/SKILL.md

falsify-first

Skill2 starsChanged 5 days agoMITView on GitHub

Tries to break a claim, invariant or measurement with a concrete counterexample. Use before it enters a plan, a design or a gate, or before a high-risk number, root cause or coverage claim enters a report.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before you argue for a claim, try to make it false.

    line 9
  2. Distinctive:

    Never report a manual search as a proof: Write "attacked this way, did not break" and name the way.

    line 19
  3. Distinctive:

    When an analysis finds a mechanism by which the claim can fail, make that mechanism the next test case.

    line 40
  4. Distinctive:

    When no cheap oracle exists, name the input that would falsify the claim and look for it by hand.

    line 42
  5. Distinctive:

    Before a number, a difference or a coverage figure enters a decision, read measurement: baselines, excluding the instrument, pinning the …

    line 46
  6. Distinctive:

    Before a document recommends a third-party project, read third-party.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Falsify First

Before you argue for a claim, try to make it false. A claim that nobody attacked is not evidence.

Rules

  • Search for the counterexample before you defend the claim. A failed candidate shows the shape of the correct one.
  • When the claim breaks, find the precondition that carried the weight. A patch that makes it pass hides the cause.
  • Split a precondition that does two jobs, and attack each half alone. A double-duty condition is the most frequent hidden cause.
  • Measure the baseline of a claim about a difference first. "X is present where it should not be" is false when X is already present by another route.
  • Exclude the instrument from its own population. A probe that counts its own definition agrees with itself and proves nothing.
  • State what measured a number and where it ran. A swapped instrument or a wrong tree gives a wrong number with no symptom.
  • Never report a manual search as a proof. Write "attacked this way, did not break" and name the way.
  • Derive a high-risk number by two paths that share no calculation step. When they disagree, investigate the instrument first.
  • When two causes predict the same result, change the probe until they differ. One fact against a cause does not prove another.
  • For a claim of complete coverage, name the list that the code reads. A general mechanism does not prove which items it covers.
  • Before you retire a source system, account for every original file. A check of what the import carried cannot see a file that the import never read.

Runbook

  1. State the claim so it can be false. Name the observation that refutes it. If you cannot name one, you have a preference. Sharpen it into a claim first.
  2. Pick the cheapest oracle that can say no. From cheapest to most expensive:
    • run it;
    • a property test over generated inputs;
    • a set of adversarial inputs that you build by hand;
    • a second implementation;
    • a type checker or a contract checker.
  3. Search, do not sample for confirmation. Bias the inputs toward the boundary, the degenerate case, the empty case and the case the author finds inconvenient.
  4. When it breaks, read the counterexample. The precondition that carried the weight is usually visible in it.
  5. Stop on a survivor and record the attack. "Survived N generated cases and these three adversaries" is evidence. "I could not find a counterexample" is not.

Build the adversary from the failure

When an analysis finds a mechanism by which the claim can fail, make that mechanism the next test case. Write it down while you have it. A generic fixture set is weak.

When no cheap oracle exists, name the input that would falsify the claim and look for it by hand. Say in the deliverable that the search was manual and what it covered.

Measurements and third-party projects

  • Before a number, a difference or a coverage figure enters a decision, read measurement: baselines, excluding the instrument, pinning the tree, and the limits of this method.
  • Before a document recommends a third-party project, read third-party.

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.