loop-library
Skill2 starsChanged 23 days agoMITView on GitHub
Catalog of repeatable agent-loop workflows (goal -> iterate w/ verification -> stopping condition -> output). Each loop is a reusable SOP for autonomous iterative work with quality gates. Run via /loop (self-paced or interval), a loop-until-done runner, a fan-out orchestrator, or manually.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- taljeon/plzdotheir own version, first seen Nov 1, 2026
- skaahgroup-a11y/skillstheir own version, first seen Oct 17, 2026
- gladkovtimoxa-alt/claude-skillstheir own version, first seen Oct 15, 2026
- clauszeissler-dot/loopAffAIrstheir own version, first seen Oct 11, 2026
- SirkoBot007/claude-skillstheir own version, first seen Oct 11, 2026
- Forward-Future/loop-librarytheir own version, first seen Oct 8, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- alirezarezvani/claude-skills★ 29ksame name
- Forward-Future/loop-library★ 3.2ksame name
- Hassaan146/claude-skills★ 18same name
- taljeon/plzdo★ 9same name
- sohaibdevv/claude-skills★ 2same name
- Adarshukumar/skills★ 1same name
- GongYuanCaiJi/dsh-claude-skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- skaahgroup-a11y/skills★ 1same name
- clauszeissler-dot/loopAffAIrs★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- advisorSkill
- agent-dispatchSkill
- arenaSkill
- audit-pypi-model-packageSkill
- branching-workflowSkill
- code-reviewSkill
- criticSkill
- cron-child-oauth-auditSkill
- daily-forestSkill
- deep-researchSkill
- diagnose-cron-timeoutSkill
- dreamingSkill
- eod-summarySkill
- filingSkill
- forest-synthesisSkill
- goalsSkill
- graph-hygieneSkill
- ideaSkill
- inline-tagsSkill
- intel-analyzerSkill
- longformSkill
- loop-experimentSkill
- meta-memory-reviewSkill
- office-hoursSkill
- open-loopsSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- prdSkill
- progressive-disclosureSkill
- reality-feedback-createSkill
- reality-review-weeklySkill
- recallSkill
- reconcile-extractionSkill
- redactSkill
- repo-auditSkill
- research-digestSkill
- review-gateSkill
- run-long-job-detachedSkill
- saveSkill
- scopeSkill
- self-auditSkill
- shadow-test-local-classifierSkill
- signal-scorerSkill
- skill-auditSkill
- skill-chainingSkill
- spawn-agent-in-tenantSkill
- spawn-tenantSkill
- split-log-rows-by-session-kindSkill
- subagent-delegationSkill
- telegram-dump-routerSkill
- telegram-reply-toolSkill
- verify-stackSkill
- wave-planSkill
- weekly-retroSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
8
Distinctive
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
- Distinctive: line 18
fan-out orchestrator: when the loop fans out (loop-until-dry, loop-until-count across many items).
- Distinctive: line 20
Every loop MUST declare its stop + a backstop (max iterations or K consecutive empty rounds) so it can't run forever.
- Very specific: line 32
Process: read recent errors.jsonl + skill_failure_tracker.py flags.
- Distinctive: line 33
Stop: no un-triaged actionable error remains, OR only known-benign left.
- Distinctive: line 39
Stop: all instances of the class addressed.
- Distinctive: line 43
Goal: keep the stack tidy on a cadence without interrupting active work.
- Distinctive: line 51
Stop: no stale branch or orphaned artifact left un-handled.
- Distinctive: line 57
Stop: no challenger beats the champion across N attempts (diminishing returns), or the target metric is hit.
- Distinctive: line 69
Stop: every surfaced objection is resolved or accept-documented.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Loop Library
A loop = an autonomous iterative workflow with a hard stopping condition and evidence-backed output. The shape is always:
GOAL (one concrete outcome) → PROCESS (measurable steps, each verified) → STOP (explicit halt criteria, including a max-iterations / dry-rounds backstop) → OUTPUT (documented result + proof).
How to run a loop here
/loop(self-paced): let the model iterate until the stop condition; good for "fix until N pass" / "find until dry." Omit the interval for self-pacing./loop <interval>: recurring cadence (e.g. a maintainer loop every N hours).- loop-until-done runner: the canonical "keep going autonomously until done" runner.
- fan-out orchestrator: when the loop fans out (loop-until-dry, loop-until-count across many items).
- scheduler (cron): for the recurring/overnight ones. Every loop MUST declare its stop + a backstop (max iterations or K consecutive empty rounds) so it can't run forever. Every loop ends by logging its output + evidence.
1. Docs sweep (engineering)
- Goal: your repo docs (CLAUDE.md, skills/_index.md, knowledge/, memory/MEMORY.md pointers, READMEs) reflect the current implementation.
- Process: scan for drift (a skill/script/cron that exists but isn't documented, or documented-but-removed). For each drift: fix the doc, verify the referenced file/flag still exists (don't trust the memo, check the file).
- Stop: zero drift found on a full pass, OR 2 consecutive passes surface nothing new.
- Output: updated docs + a one-line
logs/session.jsonlsummary of what was synced.
2. Production error sweep (engineering)
- Goal: clear actionable failures from
logs/errors.jsonl+ the skill-failure-tracker (3-fails-in-14-days flags). - Process: read recent errors.jsonl +
skill_failure_tracker.pyflags. group by root cause (not symptom). for each real cause: trace it, fix, verify the fix is live (re-run the path), mark handled. skip benign/known (e.g. a routine credential refresh). - Stop: no un-triaged actionable error remains, OR only known-benign left.
- Output: fixes + a triage note; if a fix is the same shape as a prior fix, escalate to root-cause per the root-cause-over-bandaid rule.
3. Recent-feedback sweep (engineering / meta) ⭐
- Goal: turn a single operator correction into a project-wide audit so the same class of mistake is purged everywhere, not just where they caught it.
- Process: take the latest correction (or a
memory/Feedback/entry). derive the general failure class. grep/recall the whole stack (skills, cron prompts, knowledge, pipelines) for other instances of that class. fix each. harden into a gate/standdown if it's recurring. - Stop: all instances of the class addressed; a gate added if it's a 2nd+ occurrence.
- Output: the fixes + (if warranted) a new Feedback entry or hook/gate. (this is the formalization of how style, framing, and date-drift corrections get hardened.)
4. Five-minute maintainer loop (engineering, recurring)
- Goal: keep the stack tidy on a cadence without interrupting active work.
- Process: on interval, light-triage: stale
outputs/rawpast review, orphaned temp files, un-indexed memory, drifted state files, cron misfires. fix the cheap ones, queue the rest as tasks. NEVER touch anything mid-edit / interrupt a running job. - Stop: the tick's checklist is clean (this loop is cadence-bound, not completion-bound).
- Output: a short tidy-log line; surface only anomalies.
5. Repository cleanup loop (engineering)
- Goal: recover valuable un-committed/stale work and clear dead branches + temp cruft.
- Process: scan git for stale branches / uncommitted changes /
[gone]branches; scan temp + outputs for abandoned artifacts. recover anything valuable (move to archive/reviewed), then remove the dead. CONFIRM before any delete (archive-first). - Stop: no stale branch or orphaned artifact left un-handled.
- Output: recovered items + a cleanup summary. deletes only after operator OK.
6. Self-improving champion loop (evaluation) ⭐
- Goal: improve a prompt/skill ONLY when a change provably beats the current champion on a held-out benchmark (no vibes-based "improvements").
- Process: define the eval set + metric (e.g. recall-eval, critic catch-rate, content quality). propose a variant. run BOTH champion + challenger on the SAME holdout. promote the challenger only if it beats the champion by a real margin. else discard, keep the champion. version every attempt.
- Stop: no challenger beats the champion across N attempts (diminishing returns), or the target metric is hit.
- Output: the promoted version + the benchmark delta logged; losers archived with their scores. (pairs with an eval-driven prompt-optimization pilot.)
7. Quality-streak loop (evaluation)
- Goal: ship only after a defined streak of realistic checks passes (no shipping on a single lucky pass).
- Process: assemble realistic test cases (historical inputs, edge cases). run. fix every failure at root cause. re-run the FULL set. require K consecutive clean full-runs before declaring done.
- Stop: K consecutive green full-runs (default K=2-3).
- Output: the passing artifact + the streak evidence (which cases, which runs). (this is the smoke-test discipline, formalized.)
8. Devil's-advocate loop (decision / design) ⭐
- Goal: pressure-test a plan/design/take until every real objection is resolved or explicitly accepted (not hand-waved).
- Process: generate the strongest objections from independent lenses (correctness, cost, compliance, second-order effects, "what kills this"). for each: resolve it, or document why it's an accepted risk. use the decision-council / Critic for cold-start adversarial passes. don't let an unresolved objection survive silently.
- Stop: every surfaced objection is resolved or accept-documented; a fresh adversarial pass finds nothing new.
- Output: the hardened plan + an objections ledger (resolved / accepted-with-reason). (extends decision-council + the Critic.)
Deliberately NOT ported (already covered, or N/A to this stack)
- Nightly changelog -> already live (a weekly changelog cron + CHANGELOG.md).
- External adversarial PR-review / autonomy builder-reviewer -> covered by the Critic + subagent handoff.
- Loop-harness verification / completion-contract -> covered by cron draft-only + daemon-verify + the task-completion-standard (end-to-end test = "done").
- 100% test coverage / test-suite speed / sub-50ms page-load / fresh-clone / thumbnail / podcast / customer-deployment -> N/A (this is a scripts+skills+memory stack, not a perf-critical web/app product).
- SEO/GEO visibility -> partial overlap with the seo-aeo audit; revisit if a web presence becomes a focus.
Provenance
Concept + loop names adapted from a public Loop Library (31 loops). Re-authored against your tools; not copied. If a specific loop's exact upstream process is needed, fetch its detail page.
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
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.

