agentleFS
phantomMilliephantomMillie/ai-criteria/skills/ai-criteria/SKILL.md

ai-criteria

Skill1 starsChanged 49 days agoMITView on GitHub

Promote repeated `why`s from the case files into input/judgment criteria, or retire criteria that a counter-example broke. Use for "update the criteria", "anything to promote?", "/ai-criteria". Always run right after ai-rollup.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the why lines only and re-cluster them yourself.

    line 15
  2. Distinctive:

    Before promoting, check whether the cluster is a counter-example of an existing criterion.

    line 39
  3. Very specific:

    After promoting, measure the only evidence that matters — recurrence: python3 ".../ailog.py" search "<phrase>" --since <promotion date>.

    line 40
  4. Very specific:

    Do not copy case bodies into the criteria file.

    line 68
  5. Very specific:

    Do not delete retired criteria.

    line 69
  6. Very specific:

    Leave the why-clusters and current counts under ## Pending.

    line 73

≈ “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

Promote / retire criteria

1. Material

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ailog.py" candidates

Output is grouped by tag, but never promote by tag. Same tag with a different why is a different criterion. Read the why lines only and re-cluster them yourself. Exclude why: unknown.

2. Promotion test — evidence tiers

Cluster the why lines yourself, then measure each cluster (never a tag):

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ailog.py" evidence <case-id> <case-id> ...

Independence is counted in distinct calendar days, not raw cases: several corrections in one session are one observation. Thresholds are in ~/.ai-criteria/config.json (defaults below).

TierSame whyAction
pending1 case, or 2+ cases on 1 daylist under ## Pending with the current count
provisional2+ cases on 2+ dayswrite ### J-n [provisional]; write the void-when strictly
confirmed3+ cases on 3+ dayswrite ### J-n [confirmed]
globalthe same why in 2+ projectsno @project; until then title it @project
retire2 counter-examples (1 = demote to provisional)move under ## Retired

A wrong criterion is cheap (a slightly noisy sentence, and its void-when filters it); a late criterion is expensive (the mistake keeps happening). That is why provisional is low and confirmed is strict.

Before promoting, check whether the cluster is a counter-example of an existing criterion. If so, demote/retire that one instead of adding a new one. After promoting, measure the only evidence that matters — recurrence: python3 ".../ailog.py" search "<phrase>" --since <promotion date>. Recurred although the criterion was satisfied → it is insufficient, add conditions.

The criteria file is ~/.ai-criteria/criteria.md. Edit it directly.

3. Format

A criterion is not a "should" sentence. Cases must be able to prove it true or false.

### J-1 [confirmed]  In the old source but not in the new one → "not migrated"

- Applies when: the input contains NO removal-decision source (comment, spec, separate ticket)
- Void when: any removal-decision source exists. Do not use this rule; use 3 buckets (not migrated / removed on purpose / unknown)
- Cases: support 0 / counter-examples 2 (2026-W37) → retired, replaced by J-1b
### I-2  Screen comparison request

- Required: design link + a current/retired label for each frame
- Satisfied?: does every link carry a current/retired label (yes/no)
- Refutation: if I-2 was satisfied and the same mistake still happened, the criterion is insufficient → add conditions
- Cases: mistakes when unmet 2 / when met 0 (2026-W37)
  • Input criterion (I-) = the broken premise came from information missing in the input. Satisfaction must be yes/no.
  • Judgment criterion (J-) = all the material was there, but the premise was set wrong. Needs applies-when and void-when.
  • Do not copy case bodies into the criteria file. The Cases: line holds week names and counts only.
  • Do not delete retired criteria; move them under ## Retired so they are not revived.

4. Zero promotions

Leave the why-clusters and current counts under ## Pending. Do not end with an empty file — that way a single extra case next week promotes immediately.

## Pending

- "one correction = structural-error premise": 1 case (2026-W37)
- "spec sentence = confirmed requirement": 1 case (2026-W37)

5. Report

Promoted / retired / pending counts only. Do not re-list cases. If criteria keep growing with zero retirements, say so.

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.