agentleFS
qbs784qbs784/ledger/skills/fact-checking-by-execution/SKILL.md

fact-checking-by-execution

Skill0 starsChanged 3 months agoMITView on GitHub

Use when writing or revising any document, README, comment, or guide that claims a command, a configuration snippet, a default value, an error message, a platform difference, or an install path. Also use when auditing existing documentation for stale claims. DO NOT invoke for prose style or length decisions — route those to ledger:writing-complete-propositions.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Record observations, not expectations: If the output surprised you, the surprise is the finding.

    line 20
  2. Distinctive:

    Regenerate every derivative: If the document has generated counterparts — a translated pair, a published site, an extracted catalog — …

    line 26
  3. Very specific:

    Read commands.docs_check from .ledger.yml and run it on what you touched.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Fact-checking by execution

The only admissible evidence for an operation claim is having run it.

This skill owns whether a claim is true. It does not own how the claim is worded, how long the page runs, or where it lives.

Documentation states how something behaves now. Every other source — your memory, a neighbouring module's README, the shape of the config file, what the function name implies — is a guess with good posture. Guesses are exactly as likely to be right as the last time the code moved, and nothing tells you when that was.

This procedure is mandatory for every new document, and for every new paragraph that claims an operation, command, default, error, or platform difference.

Procedure

  1. Run every claimed operation against the current checkout. Execute each command, configuration snippet, and example exactly as the document will show it — not a variant you know works. Write down only what you observed, including exact output, warnings, and failure modes.
  2. Record observations, not expectations. If the output surprised you, the surprise is the finding. Quote it.
  3. Delete what you could not reproduce. Never carry a command, field, default value, or behavior forward from memory, from analogy, or from a neighbouring project's documentation. When a claim fails to reproduce, fix the claim — not the test. The failure just told you something true.
  4. Check existing pages against the current default branch. Before revising a pre-existing page, fetch and compare the section against the remote default branch. A stale statement that has survived on the main line is still wrong: correct it against the code, not against the existing prose.
  5. Regenerate every derivative. If the document has generated counterparts — a translated pair, a published site, an extracted catalog — update them from the corrected source rather than editing them in place.

Read commands.docs_check from .ledger.yml and run it on what you touched.

Check each claim against its strongest owner

Prose is only as good as what it was checked against, and the owners form a strict hierarchy:

ForThe owner is
names, entry points, install pathsthe package or build manifest
API contractspublic types and API docs
behaviorruntime code
exercised failure pathstests
exhaustive inventoriesgenerated catalogs
rationaleactive decision records

Never treat a prior README, a discussion, or a report as stronger evidence than current code and tests. That inversion is how a wrong statement survives three rewrites — each author checked it against the previous author, and the chain never touched the code.

Classify the subject before writing install or usage guidance, and classify it from facts rather than from a folder name. A document that gives install instructions for the wrong kind of artifact is confidently wrong in the one place a newcomer starts.

When you genuinely cannot run it

Some claims depend on a credential you must not use, a platform you do not have, or a service you cannot reach. That is a normal situation, and it has one correct handling:

Name the verification owner instead of asserting the behavior. Say which claim is unverified, what would verify it, and who or what can run that. Then leave the claim marked, or leave it out.

What you must not do is soften it into something that reads verified — "should return", "is expected to" — because a hedge is indistinguishable from a checked fact once the page is a month old. An explicit gap survives; a hedge decays into a claim.

Report

State which operations you executed and what you observed, which claims you deleted for failing to reproduce, and which remain unverified with their verification owner.

A documentation change reported as "updated the docs" is unreviewable. The reviewable form is: here is what I ran, here is what it printed, here is what I therefore wrote.

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.