loop-factory
БесплатноБез исполняемых скриптовНе проверенRun a spec-driven agent loop where coding tasks live as markdown specs that move through inbox → active → archive, get implemented by Claude Code or Codex…
от JuliusBrussee★ 178 звёзд на GitHubОб этом скилле
Loop Factory
Loop Factory turns "ask an agent to build something" into a visible assembly line. Each task is a markdown spec. The folder the spec lives in is its state. Agents implement and verify; they never decide what to build.
📥 inbox/ 🔧 active/ 📦 archive/
tasks not ──► task an agent ──► finished work,
started yet is building now reviewed + accepted
The one rule that governs everything: automate implementation and verification, not product decisions. If a spec is missing a decision, record the open question — do not invent product direction.
Invoke this skill on demand by typing /loop-factory (one manual pass), or let a cron fire it unattended — see Autonomous mode.
When to use this skill
- Setting up Loop Factory in a repo (installing the CLI, running
init). - Picking a spec out of the inbox and dispatching it to Claude Code or Codex.
- Implementing a spec against its acceptance criteria.
- Reviewing finished work and archiving accepted specs.
- Backpropagating implementation learnings into the living specs/docs.
Setup (first time in a repo)
The loop-factory CLI is the state engine. Install it once, then scaffold any git repo:
# get the CLI (clone the source repo, install editable)
git clone https://github.com/JuliusBrussee/Loop-Factory.git
python3 -m pip install -e ./Loop-Factory
# scaffold the factory/ folders in your target project
cd your-project
loop-factory init
loop-factory doctor # confirm git + agent CLIs are wired up
No runtime dependencies beyond Python 3.10+. If you are already inside the Loop-Factory repo, you can skip the install and run python3 bin/loop-factory <command> directly. Full install notes, agent-CLI setup, and how to copy the native agent adapters: references/install.md.
The loop
- Inspect the queue. Run
loop-factory scanto see inbox and active specs. - Grill new specs first. Before dispatching a fresh spec, interrogate it one question at a time (who owns this decision, what's out of scope, riskiest assumption, smallest acceptable version). Record answers under a
# Grill Gatesection. A vague spec produces vague code. - Dispatch. Generate the implementation prompt and move the spec to
active/:
This writes a prompt toloop-factory dispatch --agent claude --limit 1 --stagefactory/prompts/and a run record tofactory/runs/. It does not run the AI unless you add--execute. - Implement. Build only the acceptance criteria. Match existing code style. Stay scoped.
- Verify. Run every command listed in the spec's
verification:frontmatter. Capture the output as evidence. - Review. Generate a review prompt and check the diff against the criteria:
Pass → archive. Fail → leave the spec inloop-factory review <spec-id> --agent claudeactive/for another pass. - Archive accepted work.
loop-factory archive <spec-id> --accepted--acceptedis required on purpose — nothing leavesactive/without a confirmed pass. - Backpropagate. If building the feature changed how the system actually works, sync that back into specs/docs without changing product intent:
loop-factory backprop --agent claude
Autonomous mode
Run a single self-contained pass that drains the inbox with no human present. Trigger it when invoked with "autonomous" / "drain the inbox", by a scheduled cron, or repeatedly by /loop (e.g. /loop 30m /loop-factory).
A pass does exactly this:
- Scan
factory/specs/inbox/. - Filter to ready specs only. A spec is ready when its grill gate is complete —
grill: completedin frontmatter, or a filled-in# Grill Gatesection. Skip anything else and log it as "needs grilling." Never grill autonomously: the grill gate needs human answers, and inventing them would be deciding product direction. - For each ready spec: stage → implement against acceptance criteria → run verification.
- Stop at the review gate. Leave built specs in
active/. Do not archive — acceptance stays a human decision. - If verification fails, leave the spec in
active/with a note infactory/runs/. Do not retry in a loop or weaken the criteria to make it pass. - Report: built, skipped (needs grilling), failed-verification — and stop.
This keeps the boundary intact: the loop is a tireless builder, never a silent decider.
Two ways to fire it on a recurring basis:
/loop(local, recommended for active work) —/loop 30m /loop-factoryre-runs this skill on any interval against your local working tree. Built specs land inactive/; no git push or PR needed. Only runs while a Claude Code session is open.- Cron (cloud, unattended) — a scheduled routine that runs whether or not you're online (minimum 1-hour interval) and returns work as a pul
Установить loop-factory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл loop-factory?
Run a spec-driven agent loop where coding tasks live as markdown specs that move through inbox → active → archive, get implemented by Claude Code or Codex, and pass a review gate before they count as done. Use when the user mentions "loop factory", a "spec-driven loop", an "agent factory", wants repeatable/reviewable agent work, or when a repo has a factory/specs/inbox or factory/specs/active directory. Also covers installing and scaffolding the loop-factory CLI into a project.
Как установить скилл loop-factory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл loop-factory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic