agentleFS
jpoindexterjpoindexter/ai-agent-skills/loop-readiness/SKILL.md

loop-readiness

Skill1 starsChanged 5 months agoMITView on GitHub

Decision gate run BEFORE building any recurring loop, automation, or scheduled agent. Scores the task against the 4-condition test and 5-point checklist, returns a verdict — build it, keep it manual, or fix a precondition first. Use when asked "should this be a loop?" or before authoring any /loop, /schedule, or routine.

The file

We split this skill into the rules it gives an agent

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All four must hold:

    line 11
  2. Very specific:

    Add a state file (see /loop-state).

    line 40

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

Loop Readiness

Decide whether a task should become a loop before building one. A loop that misses a condition costs more than it returns — the honest default is "keep it manual."

The 4-condition test (strategic)

All four must hold:

#ConditionFails when
1The task repeats — at least weeklyOne-time job. A good prompt is faster and cheaper; a loop run once is just a script.
2Verification is automatedNo test, typecheck, build, or linter can reject bad output. You're back in the chair reading every diff — the job the loop was supposed to remove.
3Token budget absorbs the wasteLoops re-read context, retry, explore. On a metered plan the bill arrives before the productivity gain does.
4Agent has senior-engineer toolsNo logs, no repro environment, can't run the code it writes — the loop iterates blind.

Miss one → verdict: keep it manual.

The 5-point checklist (tactical, per task)

  1. Happens at least weekly.
  2. An objective gate (test, typecheck, build, lint) rejects bad output — a second agent asked to "review" is just a second optimist.
  3. The agent can run the code it changes.
  4. A hard stop exists: token budget, iteration count, or time limit. Without one, the loop runs until someone notices the bill.
  5. A human reviews before merge, deploy, or dependency changes.

Good first loops vs bad

Good: CI failure triage, dependency bump PRs, lint-and-fix passes, flaky test reproduction, issue→PR drafts on well-tested code. (Test: could a junior do it from a checklist, with a test suite catching their mistakes?)

Bad — human stays in the chair: architecture rewrites, auth/payments code, production deploys, vague product work, anything where "done" is a judgment call.

Build order (if verdict is "build")

  1. Get one manual run reliable.
  2. Turn it into a skill (SKILL.md).
  3. Add a state file (see /loop-state).
  4. Wrap it in a loop with the gate and hard stop.
  5. Then schedule it.

Skipping ahead is how loops fail in production.

Verdict format

Task: <one line>
4-condition test: <pass | FAIL on #n — reason>
Checklist: <5/5 | which boxes missed>
Verdict: BUILD | KEEP MANUAL | FIX FIRST (<precondition>)
If BUILD — gate: <command> | hard stop: <limit> | cadence: <interval>

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.