loop SKILL.md skillA
loop from sethgammon/citadel is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add sethgammon/citadel/loop@git:20261104.e07637dPins git:20261104.e07637d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- sethgammon/citadel
- Path
skills/loop/SKILL.md- Versions recorded
- 6
- Latest version
- git:20261104.e07637d, committed Nov 4, 2026
- First version recorded
- Jun 9, 2026
- Size
- 6,294 bytes
- Repository stars
- 927
- License
- MIT
Bounded foreground repetition for the current session. Creates a loop contract, runs or coordinates an action plus verifier up to a declared attempt limit, and records evidence under .planning/loops/. Use for repeat-until-pass work that is too small for daemon and not time-based scheduling.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# /loop -- Bounded Foreground Loop
## Orientation
**Use when:** the user wants a visible repeat-until-pass cycle inside the
current session, such as "loop until lint passes" or "try this up to three
times and stop if tests still fail."
**Don't use when:** the work should run unattended across sessions (`/daemon`),
on a clock (`/schedule`), on file changes (`/watch`), or as a metric-driven
optimization experiment (`/experiment`).
In Claude Code, invoke `/citadel:loop` to select this skill explicitly.
The host also has a timer-based `/loop` command with different semantics.
## Commands
| Command | Behavior |
|---|---|
| `/loop status` | Show all known Citadel loops with active/stopped grouping. |
| `/loop inspect {id}` | Show one loop's contract, verifier, budget, runs, and stop reason. |
| `/loop templates` | List built-in loop templates. |
| `/loop plan --template {name}` | Create a loop contract from a template. |
| `/loop run "{action}" --verify "{command}" --max {N}` | Run a bounded foreground loop. |
| `/loop stop {id}` | Mark a loop stopped. |
## Protocol
### Step 1: Classify the loop
Determine which kind of loop the user requested:
| User intent | Route |
|---|---|
…Read the whole file at its exact version.
How to install
mdr add sethgammon/citadel/loop@sha256:b9929a2f560e9315The line at the top of this page pins the label git:20261104.e07637d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_bh7nr6zaflxo53wn)
7 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Jun 9, 2026 and Nov 4, 2026, about one every 30 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261104.e07637d latest | 2026-11-04 | e07637d | 6,294 B | A | view · diff |
| git:20261103.0ee0138 | 2026-11-03 | 0ee0138 | 6,147 B | A | view · diff |
| git:20260611.0f3f8e7 | 2026-06-11 | 0f3f8e7 | 5,736 B | A | view · diff |
| git:20260611.a647953 | 2026-06-11 | a647953 | 5,723 B | A | view · diff |
| git:20260609.e86a279 | 2026-06-09 | e86a279 | 5,603 B | A | view · diff |
| git:20260609.0d84ce4 | 2026-06-09 | 0d84ce4 | 4,810 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6294 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
sethgammon/citadel · 927 stars · license MIT · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bh7nr6zaflxo53wn GET https://markdownregistry.com/api/v1/resolve?ref=sethgammon/citadel/loop GET https://markdownregistry.com/api/v1/blob/b9929a2f560e9315fdfe1dc1e9106c01b6745da8605003774789cb112159c353
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from sethgammon/citadel
Every file in sethgammon/citadel