Skip to content
Development
Skill

/loop-forge

Turn a one-line description of a repetitive task into a reusable, self-guarding slash command. loop-forge diagnoses the task into one of 5 loop shapes (Batch / Pipeline / Refine / Watch / Explore), interviews for the blanks, and auto-injects two safety devices the user didn't

From plugin
claude-forge
87733 skills16 agents35 commands22 hooks
+1

Claude Code

$ npx -y skills add sangrokjung/claude-forge --skill loop-forge --agent claude-code

SKILL.md

loop-forge.SKILL.md
name: loop-forge
description: |
  Turn a one-line description of a repetitive task into a reusable, self-guarding
  slash command. loop-forge diagnoses the task into one of 5 loop shapes (Batch /
  Pipeline / Refine / Watch / Explore), interviews for the blanks, and auto-injects
  two safety devices the user didn't know they needed — an independent verifier
  (maker ≠ checker) and a hardstop (a budget/count/cooldown ceiling) — then previews
  the result and stamps it as a `/command` they can run forever. Use when the user
  says "/loop", "/loop-forge", "/make-it-loop", "automate this", "make this
  repeatable", "turn this into a command", "do this for all 100 items", "do X every
  time Y happens", "generate several and pick the best", or otherwise wants to
  capture a recurring task as a reusable slash command instead of re-typing the
  prompt by hand. Works in any language: it interviews the user and writes the
  stamped command in the user's own language. Non-goal — it does not schedule
  unattended runs (launchd/cron) or publish externally on its own; it stamps the
  reusable command and stops there.

loop-forge — stamp a guarded, reusable loop (`/loop-forge`)

> Picture an engraving shop. A customer who can't engrave walks in and just > *describes* the seal they keep needing — "I want to do this over and over." > The artisan ① recognizes which of 5 standard molds (loop shapes) it is, ② asks > what letters to cut (the blanks), ③ cuts them into a proven mold, ④ automatically > fits a "misprint detector" (the verifier) and an "out-of-ink stop" (the hardstop), > ⑤ pulls one test impression to show the customer, and ⑥ once they approve, hands > back a reusable `/command` they can stamp again any time — the same in Claude Code > and in any other agent via a paste-able prompt.

What this tool actually does

Someone who doesn't code can't author a reusable `/command` that makes an AI repeat a task reliably. loop-forge closes that gap. It takes a vague one-liner and stamps it into a **reusable slash command**, while automatically attaching the two safety devices a non-developer doesn't even know to ask for:

  • **Verifier (maker ≠ checker)** — the loop's output is re-checked in a pass that is

*separate* from the pass that produced it, so the loop can't grade its own homework.

  • **Hardstop** — a budget/count/cooldown ceiling, so a loop can't quietly break

while burning tokens.

That auto-injection is the decisive difference from a plain prompt generator or a developer-facing skill builder.

**Before → after (the elevator demo):**

User: "I want to summarize 100 shop reviews into 3 lines each"
        │
loop-forge:
  1. Diagnoses → Batch loop
  2. Interviews → where are the items? per-item task? where does output land? a cap?
  3. Auto-injects → verifier (count in == count out + independent spot re-check)
                  + hardstop (max_items budget + per-item fail cap + abort at 20% failure)
  4. Previews → "here's how it will run" (+ optional 1-item sample)
  5. Stamps → /review-summary  (reusable forever; safety baked in)

When it triggers

  • `/loop` or `/loop "<one-line situation>"` (full command `/loop-forge`; alias

`/make-it-loop`)

  • "automate this" / "make this repeatable" / "turn this into a command"
  • "summarize all 100 reviews" / "do this for every item"
  • "do X every time an email arrives" / "alert me when a condition is met"
  • "generate a few options and pick the best one"
  • any time you'd rather capture a recurring task as a reusable `/command` than

re-type the prompt by hand

Triggers are matched on **intent, in any language** — the same phrasing in Korean, Spanish, Japanese, etc. activates the skill, and the whole interaction then runs in that language (see "Runs in your language" below).

Runs in your language (English asset, multilingual behavior)

Every file in this skill is English — there is no per-language copy. At runtime the orchestrator detects the user's language from their one-liner and conducts the *entire* interaction in it: the analogy, every interview question, the missing-slot re-asks, the default-value confirmations, and the dry-run preview. The stamped `/command`'s human-readable prose (description, procedure, verifier/hardstop explanations) is written in the user's language, while the structural tokens (frontmatter keys, the archetype id, registry field names, and the ASCII slug `name`) stay canonical so any teammate's harness can still parse it. This is LLM-driven — there is no translation table.

The 5 loop shapes (everything this tool stamps)

Non-developer work reduces to five shapes. There is **no sixth** — never invent one (YAGNI). If a request doesn't fit, diagnose the nearest shape or ask one branch question.

| Shape | One line | Catalog | |---|---|---| | **Batch** | Same task across N items, none skipped | `references/archetypes/batch.md` | | **Pipeline** | Pass through ordered stages A→B→C | `references/archetypes/pipeline.md` | | **Refine** | Make → evaluate → fix, repeated | `references/archetypes/refine.md` | | **Watch** ⚠ most dangerous | Watch a target, act when a condition fires | `references/archetypes/watch.md` | | **Explore** | Diverge into N candidates → converge to best K | `references/archetypes/explore.md` |

---

6-stage orchestration (the main flow)

Follow the flow exactly; each stage calls a specific asset (lazy-loaded).

> **Helper-script paths (install-portable)**: the `tools/` and `references/` paths > below are relative to *this skill's own directory*. If a relative call can't find a > file, resolve it under the skill root — `$HOME/.claude/skills/loop-forge/…` for > `install.sh` installs, or `${CLAUDE_PLUGIN_ROOT}/skills/loop-forge/…` for marketplace > (`/plugin install`) installs. Every helper is **optional**: if it's still > unavailable (or `python3` is missing), perform the step yourself from the referenced > doc — `classify_signals.py` is only a hint and `check_safety.py` only re-ch

Read more
@sangrokjung
Ships withclaude-forge

oh-my-zsh for Claude Code — 16 agents, 35 commands, 32 skills, 21 safety hooks in one install. v4.0 adds an adversarial review loop: a second agent that never sees the first one's reasoning. MIT.

87733 skills16 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
877
Star history of sangrokjung/claude-forge on GitHub, a chart by star-history.com

Other skills on claude-forge.

blind-spot-pass

blind-spot-pass

Use *before* starting work in a domain you don't know well, to surface the "unknown unknowns" — the things you don't even know to…

build-system

build-system

Use when detecting and running project build systems automatically. Supports npm/yarn/pnpm/pip/poetry/gradle/maven/cargo/go/make.…

cc-dev-agent

cc-dev-agent

Use when starting Claude Code projects, writing CLAUDE.md/spec.md, dispatching subagents, or requesting Agent Teams parallel…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about loop-forge.

Which coding agents can use loop-forge?
loop-forge installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.