agentleFS
mikestangdevsmikestangdevs/craft-skills/skills/rigor/held-out/SKILL.md

held-out

Skill4 starsChanged 23 days agoMITView on GitHub

Use when reporting how well anything fitted or tuned performs — a model, forecast, classifier, heuristic, prompt, or threshold. The score counts only on data the thing never saw, against a bar set before scoring, a naive baseline, and a placebo. Use when a score came from the data used to build it, or when something was iterated until the eval passed.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write down the metric, the threshold that counts as passing, and the baseline to beat — before running the evaluation.

    line 30
  2. Distinctive:

    When the truth arrives later, log the prediction with a date before the outcome is known.

    line 42

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

Held Out

The failure mode this fixes

The agent builds a model, a scoring heuristic, a prompt, a threshold — then reports how well it does on the same examples it was built against. Or it has a test set, runs it, tweaks, runs it again, and repeats until the number clears the bar. Either way the reported score measures memory, not skill, and it will not survive contact with new data.

Two quieter variants. The bar gets chosen after the result is known, so whatever came out is a pass. And an inconclusive result — too few cases, a margin inside the noise — gets written up as a win because a win was expected.

This is the fitted-system cousin of tuning a constant to make a test pass. The rule is the same: the result you were optimizing against is never evidence.

When to Use This Skill

  • You're about to report accuracy, calibration, win rate, or "it beats the old one" for anything fitted or tuned
  • The evaluation cases were visible while the thing was being built
  • An eval was re-run after each tweak until it passed
  • A feature or signal "clearly works" and nobody has checked it against a placebo
  • The sample is small enough that the honest answer might be "can't tell"

Don't use when: the code is deterministic and has a spec — that's test-like-you-mean-it. And not for exploratory fitting you've labeled as exploration; the skill applies the moment a number is going to be reported as performance.

Instructions

1. Set the bar before you score

Write down the metric, the threshold that counts as passing, and the baseline to beat — before running the evaluation. A bar chosen after the result is a description of the result.

2. Split first, and spend the held-out set once

Separate the evaluation cases before any fitting or tuning, and keep them out of sight. Every time a held-out result changes a decision, that set has been used for training. If it's spent, say so, and get fresh cases rather than reporting the contaminated score. For anything involving time, split by time: train on the past, score on what came after.

3. Beat a naive baseline and a placebo

A score means nothing alone. Compare against the dumbest thing that could work (always predict the majority, last value carried forward, the previous version). Then run a placebo: shuffle the labels, or swap the signal for one that can't matter — the wrong region, the wrong time window. If the placebo scores about as well, the signal isn't doing what you think.

4. Record predictions before outcomes

When the truth arrives later, log the prediction with a date before the outcome is known. A prospective record is the only evaluation that can't be tuned after the fact. Challengers get logged the same way, alongside the incumbent, before either is scored.

5. Report one of three verdicts and keep the failures

Passed, failed, or indeterminate. Indeterminate is a real answer when the sample is too small or the margin sits inside the noise; say what would settle it. A failed evaluation stays in the write-up next to the passes — a record with only wins in it is a filtered record.

Output format

Evaluation: <what was scored>
Bar (set before scoring): <metric, threshold, baseline to beat>
Held-out set: <how it was split, size, times consulted>
Result: <score> | baseline: <score> | placebo: <score>
Verdict: PASSED / FAILED / INDETERMINATE because <reason>
Prospective log: <predictions recorded before outcomes | none>
Earlier failures still on record: <list | none>

Anti-Patterns

Anti-PatternWhy it defeats the skill
Scoring on the build setthe thing has seen the answers. The score is recall.
Iterating against the test seteach re-run after a tweak leaks the held-out set into the design.
The bar set afterwardany result passes a threshold chosen to fit it.
No baseline, no placebo"82% accurate" where always-guess-the-majority gets 80%, or shuffled labels get 81%.
Indeterminate reported as passedsix of ten on a coin-flip task is not a finding.
Dropping the failed runthe write-up shows the three evaluations that passed and omits the four that didn't.

Mental Model

A score is only worth what it could have revealed. If the thing had already seen the answers, or the bar moved to meet it, the evaluation couldn't have failed — and an evaluation that can't fail tells you nothing.

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.