Loop
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Bounded auto-iteration for a prompt with explicit stop predicates.
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 repository38 other files it gives its agents.
- Brave SearchSkill
- BrowserSkill
- CloudflareSkill
- DNS ToolsSkill
- Docker APISkill
- Endpoint CheckSkill
- Fetch URLSkill
- GitHubSkill
- Google OAuthSkill
- GoogleSkill
- GoPlacesSkill
- Microsoft Edge TTSSkill
- 1PasswordSkill
- OpenAI WhisperSkill
- OpenStreetMapSkill
- PDF ExtractSkill
- ProxmoxSkill
- RememberSkill
- RSS / AtomSkill
- RTSP SnapshotSkill
- Session LogsSkill
- SimplifySkill
- SkillifySkill
- SpotifySkill
- SSH ExecSkill
- StuckSkill
- SummarizeSkill
- TaskFlowSkill
- Tesseract OCRSkill
- tmuxSkill
- TranslateSkill
- Update ConfigSkill
- VerifySkill
- Video FramesSkill
- WeatherSkill
- WikipediaSkill
- Wolfram AlphaSkill
- yt-dlpSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
7
Distinctive
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
- Distinctive: line 11
Run a prompt repeatedly with hard bounds and explicit stop criteria.
- Distinctive: line 25
Stop condition is ambiguous and cannot be expressed explicitly.
- Very specific: line 36
default when omitted: judge:task completed
- Distinctive: line 40
If user provides explicit structured args, use them directly.
- Very specific: line 51
If prompt is empty after parsing, stop and ask for a concrete prompt.
- Very specific: line 64
If predicate satisfied: stop with status=success.
- Very specific: line 66
If max_iters reached without success:
- Distinctive: line 72
Never run unbounded loops.
- Very specific: line 73
Never recurse into loop from inside loop.
- Distinctive: line 74
Keep per-iteration evidence concise to avoid context bloat.
- Distinctive: line 75
Do not silently broaden scope between iterations.
- Distinctive: line 76
If a step is destructive/high-risk, require explicit user confirmation before the next attempt.
“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
Run a prompt repeatedly with hard bounds and explicit stop criteria. This is for finite "try-fix-verify" loops, not background scheduling.
Use when
- User asks to "retry until it passes", "iterate N times", "keep refining until X".
- Task has a measurable stopping condition (exit code, regex match, or clear quality criterion).
- A bounded deterministic loop is safer than open-ended autonomous retries.
Do not use when
- User wants periodic or cron-like recurring tasks.
- Stop condition is ambiguous and cannot be expressed explicitly.
- Task is one-shot and does not benefit from iterative refinement.
Input contract
prompt(required): instruction/command to run each attempt.max_iters(optional): default3, clamp to[1, 10].until_predicate(optional): one of:regex:<pattern>exit:<code>judge:<criterion>- default when omitted:
judge:task completed
Parsing rules (priority order)
- If user provides explicit structured args, use them directly.
- Else infer from natural language:
max_iters: phrases like "3 attempts", "max 5", "try 4 times".until_predicate:- contains "until exit 0" or "until tests pass" ->
exit:0 - contains "until matches ..." ->
regex:<...> - otherwise ->
judge:<user criterion>
- contains "until exit 0" or "until tests pass" ->
- If still missing:
max_iters = 3until_predicate = judge:task completed
If prompt is empty after parsing, stop and ask for a concrete prompt.
Canonical workflow
- Normalize and validate inputs.
- Initialize an iteration ledger.
- For
i = 1..max_iters:- Execute
prompt. - Capture evidence:
- short result summary
- key output snippet
- exit code when available
- Evaluate predicate against current evidence.
- If predicate satisfied: stop with
status=success. - Else derive a focused refinement for the next attempt.
- Execute
- If
max_itersreached without success:- stop with
status=max_iters_reached - return best-attempt summary + concrete next action.
- stop with
Guardrails
- Never run unbounded loops.
- Never recurse into
loopfrom insideloop. - Keep per-iteration evidence concise to avoid context bloat.
- Do not silently broaden scope between iterations; only refine.
- If a step is destructive/high-risk, require explicit user confirmation before the next attempt.
Output format
Always return:
status:successormax_iters_reachediterations_run: attempts executedmax_iters: normalized cap actually usedpredicate: normalized predicatefinal_result: concise outcomeevidence: per-iteration bullets (delta-focused)next_action: required whenstatus=max_iters_reached
Examples
prompt="cargo test -p core" max_iters=5 until_predicate="exit:0"prompt="reduce p95 latency by tuning query" max_iters=4 until_predicate="regex:p95 < 200ms"prompt="rewrite explanation for clarity" max_iters=3 until_predicate="judge:clear, concise, no ambiguity"
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.

