loop
Skill0 starsChanged 4 months agoMITView on GitHub
Orchestrate a goal through subagent iterations. Use when the user gives a goal to run "the loop" on — decomposes the goal, dispatches one subagent per iteration with fresh context, verifies each result before memory is committed.
55 other projects use a version of this.
Adopted by
Most recently taken up by
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- SethGammon/Citadeltheir own version, first seen Nov 4, 2026
- drevendev/HungryCrabtheir own version, first seen Nov 1, 2026
- Railly/skillstheir own version, first seen Nov 1, 2026
- HeshamFS/swarmweavertheir own version, first seen Nov 1, 2026
- jtaroreh/agystacktheir own version, first seen Oct 29, 2026
Used with
Projects with it also use review-bugbot, origin and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
0mlkrizzz655335vSkillreview-bugbot
缺陷导向代码审查。用 Bugbot 子代理找 bug。
Also in 4 projects that use this
0mlkrizzz655335vSkillorigin
origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:
Also in 3 projects that use this
PandelisZSkillupdate-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
Also in 4 projects that use this
32103210Skillmigrate-to-skills
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
Also in 4 projects that use this
32103210Skillupdate-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
Also in 4 projects that use this
MicrosoftSkillautomate
Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.
Also in 4 projects that use this
- +3 more from 0mlkrizzz655335v
- +1 more from 32103210
Other versions55 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 55
- SethGammon/Citadel★ 927same name
- breezewish/CodexPotter★ 629same name
- jtaroreh/agystack★ 128same name
- dannys-code-corner/incan★ 73same name
- ww-w-ai/bkit-gemini★ 66same name
- IsuruMaduranga/one-code★ 50same name
- unclejobs-ai/second-claude-code★ 41same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- Hassaan146/claude-skills★ 18same name
- woxiangyangzhimao/skills★ 14same name
45 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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-kitsSkill
- captureSkill
- improveSkill
- inbox-triageSkill
- profile-interviewSkill
- reflectSkill
- session-startSkill
- setupSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use the session-start skill yourself (load MEMORY.md, latest daily + reflection) so you can decompose and judge with context.
- Distinctive: line 48
Run iterations SEQUENTIALLY — subagents write shared memory files (daily note, MEMORY.md).
- Very specific: line 52
Verify the iteration: check the task's pass/fail criteria yourself (read the output, run the check, inspect git -C <base> diff of the vault …
- Very specific: line 67
When all tasks are done (or you're blocked), use the reflect skill yourself to close out the orchestration session: what the loop achieved, …
- Distinctive: line 73
Never parallelize memory-writing subagents.
- Distinctive: line 74
Never commit an unverified iteration.
- Distinctive: line 76
If a subagent's reflection contradicts your verification (it says done, the check fails), record YOUR verdict in the daily note — external …
“Common” is measured: kept by at least 6 in 10 of the 50 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
One job: drive a goal to done through iterations, keeping the human in the gate. You (the main session) NEVER do the work yourself — you orchestrate, verify, and commit. Subagents do the work, one iteration each, each with a fresh context.
Why this shape
- Each subagent starts clean — no confusion carryover between iterations (the fresh-context property that makes loops reliable).
- Your context stays small: goal, iteration summaries, verdicts. You can run many iterations in one sitting without rotting your own window.
- You verify every iteration BEFORE its memory writes are committed — self-improvement only compounds on verified work.
Steps
- Use the
session-startskill yourself (load MEMORY.md, latest daily + reflection) so you can decompose and judge with context. - Break the goal into iteration-sized tasks: each completable by one agent in one run, with a pass/fail check you can state up front. Show the user the task list. Adjust if they object.
For each task, dispatch ONE fresh-context subagent — the Agent tool, general-purpose (Claude Code), or the
subagenttool withagent: "worker"andcontext: "fresh"(pi) — with this brief:You are one iteration of an agent loop in <repo path>. 1. Read vault/MEMORY.md, the latest note in vault/Daily/, and the latest note in vault/Reflections/. Apply the reflection's lesson. 2. Do exactly this task: <task>. Done means: <pass/fail criteria>. 3. Follow skills/capture/SKILL.md to save any durable facts to vault/Knowledge/ (update existing notes over creating duplicates). 4. Follow skills/reflect/SKILL.md steps 1-3 to log the session and write a reflection — but do NOT git commit (the orchestrator commits). 5. Return: what you did, what you captured, outcome (done/partial/blocked), and your one-sentence lesson.Run iterations SEQUENTIALLY — subagents write shared memory files (daily note, MEMORY.md). Parallel iterations corrupt them. Parallel is fine only for read-only research subagents that write nothing.
- Verify the iteration: check the task's pass/fail criteria yourself
(read the output, run the check, inspect
git -C <base> diffof the vault —<base>=cat ~/.config/loop-and-gate/vault, or the clone'svault/).- Pass → read
git -C <base> status --porcelainfirst, then commit only the paths this iteration wrote (neveradd -A— the vault may auto-sync mid-iteration and sweep someone else's work into your commit):git -C <base> add <paths> && git -C <base> commit -m "chore: loop iteration — <task>". Any repo code/skill changes commit separately in this repo. - Fail →
git -C <base> checkout -- <those same paths>to discard its writes, then re-dispatch once with your feedback appended to the brief. Two fails → stop and ask the user.
- Pass → read
- Between iterations, give the user one line: task, verdict, lesson. This is the human gate — pause if they want to steer.
- When all tasks are done (or you're blocked), use the
reflectskill yourself to close out the orchestration session: what the loop achieved, what the decomposition got wrong, one lesson.
Rules
- Never parallelize memory-writing subagents.
- Never commit an unverified iteration. Verification is what separates compounding from thrashing.
- If a subagent's reflection contradicts your verification (it says done, the check fails), record YOUR verdict in the daily note — external verification outranks self-report.
- Improvement passes (the improve skill) stay in the main session, interactive. Never delegate improve to a subagent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

