From claude-forge
Stamps a one-line task description into a reusable slash command with automatic safety devices (verifier and hardstop).
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-forge:loop-forgeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Picture an engraving shop. A customer who can't engrave walks in and just
references/archetypes/batch.mdreferences/archetypes/explore.mdreferences/archetypes/pipeline.mdreferences/archetypes/refine.mdreferences/archetypes/watch.mdreferences/assembler.mdreferences/classifier.mdreferences/codex-prompt-mechanism.mdreferences/interviewer.mdreferences/loop-spec-schema.mdreferences/renderers/claude-code.mdreferences/renderers/portable-prompt.mdtools/check_safety.pytools/classify_signals.pytools/corpus.jsonltools/examples/batch/claude-command.mdtools/examples/batch/portable-prompt.mdtools/examples/batch/spec.jsontools/examples/explore/spec.jsontools/examples/pipeline/spec.json/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
/commandthey can stamp again any time — the same in Claude Code and in any other agent via a paste-able prompt.
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:
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)
/loop or /loop "<one-line situation>" (full command /loop-forge; alias
/make-it-loop)/command than
re-type the prompt by handTriggers 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).
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.
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 |
Follow the flow exactly; each stage calls a specific asset (lazy-loaded).
Helper-script paths (install-portable): the
tools/andreferences/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/…forinstall.shinstalls, or${CLAUDE_PLUGIN_ROOT}/skills/loop-forge/…for marketplace (/plugin install) installs. Every helper is optional: if it's still unavailable (orpython3is missing), perform the step yourself from the referenced doc —classify_signals.pyis only a hint andcheck_safety.pyonly re-checks what Stage 4 already injected, so the flow degrades gracefully without them.
$ARGUMENTS.tools/classify_signals.py "<situation>" to get ranked
(per-shape signal scores) and ambiguous (a tie flag). This is only a hint —
the LLM makes the final call using the semantic signal table in
references/classifier.md. The scorer ships an English keyword set; for
non-English input it returns no signal, and the LLM classifies from meaning
(language-agnostic), so classification never depends on surface keywords.ambiguous (a top-2 tie) or a known conflict pair, fire the branch question
from classifier.md — e.g. "All 100 at once? → Batch. Or each time a new one
arrives? → Watch."references/interviewer.md (each
shape has its own set) and ask them with AskUserQuestion, in plain language.output_format/final_artifact), the hardstop inputs
(max_items/max_iterations/period_limit), or the eval criteria are left as
"you decide," re-ask; if still blank, offer conservative defaults explicitly
(Batch max 50 · Refine 4 iterations · Watch 20 actions/day, 5-min cooldown).external_action=true
and the gate.project|global) and name (propose a slug, then confirm; a non-Latin answer
is transliterated to an ASCII slug and confirmed).references/assembler.md to substitute the slot values into the shape's
skeleton (the {slot} placeholders), producing a neutral loop spec JSON
(references/loop-spec-schema.md, 9 fields:
name / archetype / label / situation / scope / slots / skeleton / external_action / registry).archetypes/<shape>.md into registry.verifier /
registry.hardstop, and fill registry.trigger / gate / accepted_signal from the
shape's mapping. For Watch (or any external_action == true), set the
language-independent registry.external_gate to dry_run or human_approval
(never none), matching the Stage-3 answer.tools/check_safety.py <spec.json>. Exit 2 (missing verifier
or hardstop, or a Watch/external loop without an external_gate) → bounce back
to Stage 3 to fill the gap. Only exit 0 proceeds. This gate is
non-bypassable.The loop-registry's 5 cells — trigger / gate / verifier / hardstop / accepted_signal — are first-class under
registry, so every stamped loop is born registry-shaped. The addedexternal_gateenum is what makes the Watch safety check pass in any language (it gates on the enum, not on prose markers).
assembler.md's per-shape dry-run depth: default = a text description
("here's how it will run": skeleton + slots + a summary of the injected safety);
Batch/Explore may optionally run a 1-item sample (state the cost); Watch =
description only — running a real poll could fire a real send, so never sample it;
Pipeline/Refine = description plus, optionally, the first stage or one iteration.references/renderers/claude-code.md, then
save by scope to <cwd>/.claude/commands/<name>.md (project) or
~/.claude/commands/<name>.md (global). Invoke with /<name> + $ARGUMENTS.references/renderers/portable-prompt.md into a harness-agnostic, paste-able
prompt block (works in any agent — paste the body into the session). This is an
opt-in bonus, not required./<name> <input>; Portable
Prompt: paste the block into your agent).check_safety.py
exits 2, bounce to the interview; never bypass it. Auto-injecting the two safety
devices a non-developer doesn't know to ask for is this tool's whole reason to
exist.registry.external_gate ∈ {dry_run, human_approval}. It's the most dangerous shape, and the principle is "outbound
action = independent gate" (the way email is drafted, then a human sends).| Asset | Purpose | Stage |
|---|---|---|
references/loop-spec-schema.md | The 9-field loop spec + the 5 registry cells (+ external_gate) | 4 |
tools/loop_spec.schema.json | Machine-validation schema (jsonschema) for the spec | 4 |
references/classifier.md | Semantic signal table + branch-question rules | 2 |
tools/classify_signals.py | Lightweight first-pass signal scorer (CLI hint) | 2 |
tools/corpus.jsonl | Classifier regression corpus (50+ cases) | (tests) |
references/interviewer.md | Per-shape slot questions + missing-slot re-asks + defaults | 3 |
references/archetypes/batch.md | Batch shape (the 6-section structure template) | 2·3·4 |
references/archetypes/pipeline.md | Pipeline shape | 2·3·4 |
references/archetypes/refine.md | Refine shape | 2·3·4 |
references/archetypes/watch.md | Watch shape (external-action gate) | 2·3·4 |
references/archetypes/explore.md | Explore shape | 2·3·4 |
references/assembler.md | Assembly, safety auto-injection, dry-run depth | 4·5 |
tools/check_safety.py | Static safety check (exit 2 on a missing guard) | 4 |
references/renderers/claude-code.md | Claude Code slash-command render rules | 6 |
references/renderers/portable-prompt.md | Portable paste-able prompt render rules | 6 |
tools/examples/batch/{spec.json, claude-command.md, portable-prompt.md} | Golden outputs (render ground truth) | 6 |
Uninstall or disable the plugin through Claude Code's plugin manager (/plugin), or
remove skills/loop-forge from ~/.claude/skills/ and commands/loop-forge.md from
~/.claude/commands/ for a manual install.
docs/DESIGN.md — the architecture and decision record for this plugin.skill-creator / writing-skills — developer-facing authoring engines that
loop-forge layers on top of (it is the non-developer layer, not a reinvention).2plugins reuse this skill
First indexed Jun 30, 2026
npx claudepluginhub sangrokjung/claude-forge --plugin claude-forgeSets up agent loops, cron-scheduled tasks, or recurring workflows in Claude Code. Routes between dynamic pacing, cron scheduling, or one-shot loops with idempotency and bail-out conditions.
Designs and scaffolds unattended, scheduled, self-verifying agent workflows (loops) with schedule, isolation, skill, connectors, verifier, and state building blocks.
Discovers, finds, audits, repairs, crafts, runs, debriefs, and publishes repeatable AI-agent loops. Analyzes code or coding threads for recurring work.