loop-design
Skill1 starsChanged 7 months agoMITView on GitHub
Pre-flight readiness checklist for a new loop before enabling unattended execution — verifies maker/checker split, state file, budget caps, denylist, kill switch, attempt cap, and human escalation paths
6 other projects use a version of this.
Adopted by
Most recently taken up by
- davisbuilds/dojotheir own version, first seen Nov 1, 2026
- HHU3637kr/skillstheir own version, first seen Sep 22, 2026
- Jaeyong-Cho/skillstheir own version, first seen Aug 20, 2026
- patr-coder/robobuilder-protheir own version, first seen Jul 3, 2026
- kymostudio/kymostudiotheir own version, first seen Jun 24, 2026
- miketaus/gtm-loopertheir own version, first seen Jun 11, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- HHU3637kr/skills★ 146same name
- kymostudio/kymostudio★ 9same name
- Jaeyong-Cho/skills★ 1same name
- davisbuilds/dojo★ 0same name
- miketaus/gtm-looper★ 0same name
- patr-coder/robobuilder-pro★ 0same name
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 repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
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
- Very specific: line 24
If $ARGUMENTS names a pattern (pr-babysitter, ci-sweep, dep-sweep, issue-triage, post-merge, daily-triage), load its known structure.
- Distinctive: line 147
Pattern name not recognized: Ask for the loop description and score from scratch.
“Common” is measured: kept by at least 6 in 10 of the 5 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 Design Checklist
Score a loop design before enabling it for unattended runs. A loop missing key safety controls is not production-ready — this skill helps you find what's missing before it causes problems.
Usage
/loop-design "<loop name or description>" # score a loop you're about to enable
/loop-design --pattern <name> # check a named pattern (pr-babysitter, ci-sweep, etc.)
/loop-design --audit # audit all currently configured loopsBehavior
Step 1 — Establish the loop under review
If $ARGUMENTS names a pattern (pr-babysitter, ci-sweep, dep-sweep, issue-triage, post-merge, daily-triage), load its known structure. Otherwise, ask:
- What does this loop do? (one sentence)
- What is the cadence? (every N minutes/hours/days)
- What actions can it take? (report-only / propose fix / apply fix / open PR / merge)
- What external systems does it touch? (GitHub, Linear, Slack, database, etc.)
Step 2 — Score against the readiness checklist
Work through each section and mark PASS / FAIL / MISSING:
Purpose & Scope
- Single clear goal (one sentence)
- Explicit non-goals documented
- Target scope defined (which repos, branches, labels, or queues)
- Phase rollout planned (report-only first, then act)
Scheduling
- Cadence chosen and justified (urgency matches interval)
- Off-hours behavior defined (pause, slow down, or continue)
- Self-cleanup on empty watchlist (no pointless runs)
Maker / Checker Split
- Implementer and verifier are separate agents or models
- Implementer cannot mark its own work "done"
- Verifier runs tests independently before approving
- If no verifier: loop is report-only or escalates all actions to human
State / Memory
- State file or board schema defined
- Loop reads prior state at start of every run
- Loop writes outcomes and timestamps at end of every run
- Resolved/closed items are pruned on each run
- Human overrides are recorded in state
Human Escalation
- Attempt cap defined (e.g. max 3 fix attempts per issue)
- Escalation triggers explicit (cap exhausted, high-risk path, ambiguity)
- Denylist paths configured (auth, payments, secrets, infra)
- Notification channel defined (where does escalation land?)
Cost & Safety
- Token budget estimated per run
- Daily cap defined in
loop-budget.mdor equivalent - Kill switch documented (label, flag, or
loop-pause-all) - Run log configured (
loop-run-log.mdor equivalent)
Connectors (if any)
- Minimum permissions for each connector (read vs write)
- Bot identity clear on any auto-posted comments/PRs
- Write-scope connectors require verifier or human gate
Step 3 — Calculate readiness score
| Section | Max points | Scoring |
| Purpose & Scope | 20 | 5 per item |
| Scheduling | 15 | 5 per item |
| Maker/Checker Split | 25 | pass/fail per item |
| State / Memory | 25 | 5 per item |
| Human Escalation | 20 | 5 per item |
| Cost & Safety | 20 | 5 per item |
| Connectors | 15 | conditional |
Readiness levels:
- L1 (≥ 60): Safe for report-only runs
- L2 (≥ 80): Safe for supervised fix-proposal runs
- L3 (≥ 95): Safe for unattended fix-apply runs
Step 4 — Surface critical blockers
Flag any FAIL in these items as blockers regardless of score:
- No kill switch → loop can run indefinitely, no way to stop quickly
- No attempt cap → infinite fix loops and token burn possible
- Same agent implements and verifies → confirmation bias, weak tests get approved
- Denylist not configured → loop may touch auth/payments/secrets
- No state file → loop acts on stale or ghost items from prior runs
Step 5 — Output report
LOOP DESIGN REVIEW — PR Babysitter
Readiness Score: 78/100 → L2 (supervised fix-proposal)
PASS (15/20 items)
BLOCKERS (fix before enabling)
✗ No attempt cap — CI fix loop could run forever on a hard regression
Fix: set max_attempts = 3 per PR in state file
GAPS (improve before L3)
✗ No run log — token spend is invisible
Fix: append JSON entry to loop-run-log.md after each sweep
✗ Verifier not configured — fixes are self-approved
Fix: invoke /loop-verify after each /minimal-fix attempt
RECOMMENDATIONS
→ Start in report-only mode (--dry-run) for 3 days
→ Review STATE.md after first week; prune ghost items
→ Add loop-budget.md with daily cap before enabling L2 actions
Suggested first command:
/loop 10m /pr-babysitter --dry-runAnti-Patterns Flagged
The checklist specifically surfaces these known failure modes:
| Anti-pattern | Detected when |
| Self-verification | Same skill listed as both implementer and verifier |
| No attempt cap | No max_attempts field in state schema |
| Vague triage output | No structured output format defined |
| L3 before L1 quality | Actions enabled before report-only phase completed |
| MCP with broad write scope | Connector has merge/delete/post permissions from day one |
| No kill switch | No label, flag, or loop-pause-all mechanism defined |
| Shared state without schema | Multiple loops writing same STATE.md without section ownership |
Edge Cases
- Pattern name not recognized: Ask for the loop description and score from scratch.
- Existing loop audit (
--audit): Find all configured loops by scanning LOOP.md,.github/workflows/, and session schedules, then score each. - Score exactly at a tier boundary: Recommend the lower tier until blockers are resolved.
Token Optimization
Expected range: 300–800 tokens
Patterns used: Progressive disclosure (score first, blockers second, full checklist on request), early exit (if loop is report-only with no actions, many safety checks are N/A)
No caching needed: Each loop design is unique; scores are not reusable across sessions.
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.

