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.

Install it, pinned
mdr add sethgammon/citadel/loop@git:20261104.e07637d

Pins 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

The exact contents, by fingerprint
mdr add sethgammon/citadel/loop@sha256:b9929a2f560e9315

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_bh7nr6zaflxo53wn.svg)](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.

versioncommittedcommitsizeaudit
git:20261104.e07637d latest2026-11-04 e07637d 6,294 BA view · diff
git:20261103.0ee01382026-11-03 0ee0138 6,147 BA view · diff
git:20260611.0f3f8e72026-06-11 0f3f8e7 5,736 BA view · diff
git:20260611.a6479532026-06-11 a647953 5,723 BA view · diff
git:20260609.e86a2792026-06-09 e86a279 5,603 BA view · diff
git:20260609.0d84ce42026-06-09 0d84ce4 4,810 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

AGENTS.md AGENTS.md file
sethgammon/citadel · AGENTS.md
git:20260911.5005453 · audit A · 927 stars
CLAUDE.md CLAUDE.md file
sethgammon/citadel · CLAUDE.md
git:20260911.5005453 · audit A · 927 stars
AGENTS.md@examples/berman-agents-md-only AGENTS.md file
sethgammon/citadel · examples/berman-agents-md-only/AGENTS.md
git:20260701.7169885 · audit A · 927 stars
AGENTS.md@examples/berman-deploy-steward AGENTS.md file
sethgammon/citadel · examples/berman-deploy-steward/AGENTS.md
git:20260701.7169885 · audit A · 927 stars
template-skill SKILL.md skill
sethgammon/citadel · scripts/fixtures/ecosystem/anthropics-template-skill/SKILL.md · Replace with description of the skill and when Claude should use it.
git:20260711.59dbe65 · audit B · 927 stars
architect SKILL.md skill
sethgammon/citadel · skills/architect/SKILL.md · Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build…
git:20260611.0f3f8e7 · audit A · 927 stars
archon SKILL.md skill
sethgammon/citadel · skills/archon/SKILL.md · Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output…
git:20261021.eead012 · audit A · 927 stars
ascii-diagram SKILL.md skill
sethgammon/citadel · skills/ascii-diagram/SKILL.md · Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic…
git:20260611.0f3f8e7 · audit A · 927 stars
autopilot SKILL.md skill
sethgammon/citadel · skills/autopilot/SKILL.md · Intake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work…
git:20261009.7a64c3f · audit A · 927 stars
cost SKILL.md skill
sethgammon/citadel · skills/cost/SKILL.md · Deep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model…
git:20260611.0f3f8e7 · audit A · 927 stars
create-app SKILL.md skill
sethgammon/citadel · skills/create-app/SKILL.md · End-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or…
git:20261104.e07637d · audit A · 927 stars
create-skill SKILL.md skill
sethgammon/citadel · skills/create-skill/SKILL.md · Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes…
git:20260922.465c020 · audit A · 927 stars

Every file in sethgammon/citadel

Other files named loop

loop SKILL.md skill
qwenlm/qwen-code · packages/core/src/skills/bundled/loop/SKILL.md · Create a loop that runs a prompt now and follows up either on a fixed schedule or through self-paced wakeups. Usage -…
git:20260703.0633b8a · audit A · 29,081 stars
loop SKILL.md skill
zaxbyhub/opencode-swarm · .opencode/skills/loop/SKILL.md · Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve…
git:20261012.097422c · audit A · 518 stars
loop SKILL.md skill
chan4lk/specclaw · plugins/specclaw-extras/skills/loop/SKILL.md · Use when asked to loop or iterate a change until every gate is green.
git:20261012.6b78134 · audit B · 14 stars
loop SKILL.md skill
tonydzi/second-brain-starter-kit · skills/loop/SKILL.md · Keep working on the current task until a verified result, by delegating to the shared continue skill. A work cycle, not…
git:20261020.402f6b7 · audit A · 14 stars
loop SKILL.md skill
hybridlabor-api/bdb-dev-optimized-agent-skills · plugins/bdb-aos-codex/skills/loop/SKILL.md · Run a prompt repeatedly on an interval, using the harness built-in plus loop templates. Generated from…
git:20261002.78a30bb · audit A · 7 stars
loop SKILL.md skill
hybridlabor-api/aos · plugins/bdb-aos-codex/skills/loop/SKILL.md · Run a prompt repeatedly on an interval, using the harness built-in plus loop templates. Generated from…
git:20261002.78a30bb · audit A · 6 stars
loop SKILL.md skill
mickeyyaya/evolve-loop · skills/loop/SKILL.md · Use when the user asks to run autonomous improvement cycles, self-evolving development, compound discovery, or…
git:20261106.f0df95d · audit A · 6 stars
loop SKILL.md skill
drevendev/hungrycrab · skills/loop/SKILL.md · Run exactly one phase of a configured, persisted Hungry Crab loop and exit. Use when a human or a local scheduler…
git:20261022.9d61dd0 · audit A · 5 stars

Browse by kind, by grade A, or by owner.