Agent skill

Loop Factory

by JuliusBrussee in JuliusBrussee/skills

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…

MITAuto-check passedAgent Workflows

Install Loop Factory

skills CLI
$ npx skills add JuliusBrussee/skills --skill loop-factory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JuliusBrussee/skills loop-factory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JuliusBrussee/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/loop-factory .claude/skills/loop-factory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
loop-factory
GitHub stars
162
Token cost
~2k tokens
SKILL.md length
893 words
Files
5 (incl. references)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

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…

  • Works in 8 steps: Inspect the queue. Run loop-factory scan… → Grill new specs first. Before… → Dispatch. Generate the implementation… → …
  • The user mentions loop factory
  • SKILL.md covers When to use this skill, Setup (first time in a repo), The loop and Autonomous mode, plus 4 more sections
  • Calls python3 and git; reaches github.com

What it does

Loop Factory is an agent skill from JuliusBrussee/skills. 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.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/autonomous.md`, `references/commands.md` and `references/install.md`).

It sits in Agent Workflows, covering Email management, Spec-driven development and Project scaffolding. The licence is MIT.

When your agent uses it

  • The user mentions loop factory
  • A spec-driven loop
  • An agent factory
  • Wants repeatable/reviewable agent work

Example prompts

  • “loop factory”
  • “spec-driven loop”
  • “agent factory”
  • “/loop-factory”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Inspect the queue. Run loop-factory scan to see inbox and active specs.
  2. Grill new specs first. Before dispatching a fresh spec, interrogate it one question at a time (who owns this decision, what's out of…
  3. Dispatch. Generate the implementation prompt and move the spec to active/
  4. Implement. Build only the acceptance criteria. Match existing code style. Stay scoped.
  5. Verify. Run every command listed in the spec's verification: frontmatter. Capture the output as evidence.
  6. Review. Generate a review prompt and check the diff against the criteria
  7. Archive accepted work.
  8. Backpropagate. If building the feature changed how the system actually works, sync that back into specs/docs without changing product intent

What it can do on your machine

Read from SKILL.md and the folder at commit 8470b26. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Loop Factory loads about 2k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 124 tokens; SKILL.md has 893 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~124
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from JuliusBrussee/skills at commit 8470b26, republished under its MIT licence (© JuliusBrussee). 893 words, ~1,975 tokens.

Download SKILL.mdSave it as .claude/skills/loop-factory/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
loop-factory
description
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

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:

bash
# 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

  1. Inspect the queue. Run loop-factory scan to see inbox and active specs.
  2. 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 Gate section. A vague spec produces vague code.
  3. Dispatch. Generate the implementation prompt and move the spec to active/:
    bash
    loop-factory dispatch --agent claude --limit 1 --stage
    This writes a prompt to factory/prompts/ and a run record to factory/runs/. It does not run the AI unless you add --execute.
  4. Implement. Build only the acceptance criteria. Match existing code style. Stay scoped.
  5. Verify. Run every command listed in the spec's verification: frontmatter. Capture the output as evidence.
  6. Review. Generate a review prompt and check the diff against the criteria:
    bash
    loop-factory review <spec-id> --agent claude
    Pass → archive. Fail → leave the spec in active/ for another pass.
  7. Archive accepted work.
    bash
    loop-factory archive <spec-id> --accepted
    --accepted is required on purpose — nothing leaves active/ without a confirmed pass.
  8. Backpropagate. If building the feature changed how the system actually works, sync that back into specs/docs without changing product intent:
    bash
    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:

  1. Scan factory/specs/inbox/.
  2. Filter to ready specs only. A spec is ready when its grill gate is complete — grill: completed in frontmatter, or a filled-in # Grill Gate section. 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.
  3. For each ready spec: stage → implement against acceptance criteria → run verification.
  4. Stop at the review gate. Leave built specs in active/. Do not archive — acceptance stays a human decision.
  5. If verification fails, leave the spec in active/ with a note in factory/runs/. Do not retry in a loop or weaken the criteria to make it pass.
  6. 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-factory re-runs this skill on any interval against your local working tree. Built specs land in active/; 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 pull request.

Both, plus the safety knobs, are in references/autonomous.md.

Show full SKILL.md (248 more words)Show less

Core commands

bash
loop-factory scan                              # list inbox + active specs
loop-factory dispatch --agent <claude|codex> --stage   # prompt + move to active
loop-factory review <spec-id> --agent <claude|codex>   # generate review prompt
loop-factory archive <spec-id> --accepted      # archive a passed spec
loop-factory backprop --agent <claude|codex>   # sync docs/specs with code
loop-factory doctor                            # health-check setup

Swap --agent claude for --agent codex anywhere — the loop is identical. Default behavior writes prompt files; add --execute only when the local codex/claude CLI is installed and the user asked for live execution. Full flag reference: references/commands.md.

Writing specs

A spec is markdown with frontmatter (id, title, agent, risk, verification) and a body covering Context, Acceptance Criteria, Constraints, and Review Notes. The acceptance criteria are the contract — they're what the agent builds toward and what the reviewer checks against, so make them concrete and testable. Format, examples, and the grill-gate questions: references/spec-authoring.md.

Boundaries

  • Only a human or an explicit CLI command moves a spec from inbox to active.
  • Only an accepted review moves a spec from active to archive.
  • A failed review leaves the spec active — it does not get deleted or silently re-dispatched.
  • Backprop may update specs/docs but must never change product intent on its own.
  • Generated files under factory/prompts/, factory/runs/, and factory/reviews/ are artifacts and audit trail — read them, don't treat them as source of truth. The spec is the source of truth.

Working with subagents

When isolation helps, hand stages to dedicated subagents instead of doing everything in one context:

  • a spec-implementer to write the code for one active spec,
  • a spec-reviewer (context-isolated) to judge the diff,
  • a spec-backpropagator to fold learnings back into specs/docs.

Use one agent when work is sequential, touches the same files, or is high-risk. Fan out to multiple only when specs are independent or review should stay context-isolated.

© JuliusBrussee, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/loop-factory of JuliusBrussee/skills.

  • SKILL.md
  • references/autonomous.md
  • references/commands.md
  • references/install.md
  • references/spec-authoring.md

Open the folder on GitHubat commit 8470b26

Compare with similar skills

Loop Factory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Loop Factory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Loop Factory this skillJuliusBrussee/skills162—~2kAutomated safety check: PassMIT
Spec-Driven Development v2LichAmnesia/lich-skills234—~3.1kAutomated safety check: PassMIT
Spektacular Plan Implementationjumppad-labs/jumppad263—~1.8kAutomated safety check: PassMPL-2.0
Autonomous Agent Patternsdavila7/claude-code-templates32k7 repos~5.6kAutomated safety check: PassMIT
Show Me Your Work Decision Logcursor/plugins10k8 repos~1.6kAutomated safety check: PassNone
Nonstop Autonomous Modeandylizf/nonstop263—~2kAutomated safety check: WarnMIT

Similar skills

  • Spec-Driven Development v2

    LichAmnesia/lich-skills

    Organizes long-running agent work into a Project, Sprint and Task hierarchy with per-task state files, isolated worktrees, review loops and script-checked rules.

    234 GitHub stars~3.1k tokensUpdated 4 mo ago
    Agent WorkflowsAuto-check passed
  • Executes an approved plan step by step through the spektacular CLI, which acts as the state machine, producing code, tests and a changelog.

    263 GitHub stars~1.8k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Autonomous Agent Patterns

    davila7/claude-code-templates

    Design patterns for building autonomous coding agents. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 7 repos~5.6k tokens
    Agent WorkflowsAuto-check passed
  • Official

    Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.

    10k GitHub starsUsed in 8 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Nonstop Autonomous Mode

    andylizf/nonstop

    Lets Claude keep working while you are away, after a pre-flight that surfaces blockers, risky operations and open decisions, with a stop hook scoped to the session.

    263 GitHub stars~2k tokensUpdated 6 mo ago
    Agent WorkflowsAuto-check: warnings
  • Smithers Agent Runtime

    smithersai/smithers

    Guides changes to the Smithers agent loop's host wiring: credentialed model seats, budget accounting, sandbox limits and flow-call authorization.

    430 GitHub stars~765 tokensUpdated today
    Agent WorkflowsAuto-check passed

More from JuliusBrussee/skills

  • Context Canary

    JuliusBrussee/skills

    Install a per-turn canary signal (e.g. An agent skill from JuliusBrussee/skills.

    162 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Junior To Senior

    JuliusBrussee/skills

    Adversarial senior-engineer review for agent-generated plans, designs, and architectures.

    162 GitHub stars~2.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Interface Kit

    JuliusBrussee/skills

    Authoritative guide for implementing stunning, accessible, performant UI.

    162 GitHub starsUsed in 1 repo~5.3k tokens
    Auto-check passed
  • Grill Me

    JuliusBrussee/skills

    Calibrated grilling session for stress-testing a plan, design, idea, or decision.

    162 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Deslopify

    JuliusBrussee/skills

    De-slop pass for any text. An agent skill from JuliusBrussee/skills.

    162 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Loop Factory

What does Loop Factory do?

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…. Loop Factory is an agent skill from JuliusBrussee/skills. 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.

When should I use Loop Factory?

Loop Factory fits situations like: the user mentions loop factory; A spec-driven loop; an agent factory; wants repeatable/reviewable agent work.

How do I install Loop Factory in Claude Code?

Run `npx skills add JuliusBrussee/skills --skill loop-factory -a claude-code`. Or copy the skill folder (skills/loop-factory in JuliusBrussee/skills) into .claude/skills/loop-factory in your project. Claude Code loads it when a task matches its description.

How do I install Loop Factory in Codex?

Run `npx skills add JuliusBrussee/skills --skill loop-factory -a codex`. Or copy the skill folder (skills/loop-factory in JuliusBrussee/skills) into .agents/skills/loop-factory in your project. Codex loads it when a task matches its description.

Can I use Loop Factory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JuliusBrussee/skills --skill loop-factory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/loop-factory, .gemini/skills/loop-factory, .github/skills/loop-factory and .opencode/skills/loop-factory in your project.

What does Loop Factory need to run?

Going by SKILL.md and its folder, Loop Factory needs the command-line tools its instructions call (python3 and git). Our summary lists: Python 3.

Does Loop Factory access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Loop Factory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Loop Factory use?

Loop Factory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Loop Factory use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.8k tokens, read only when the agent opens those files.

What are the alternatives to Loop Factory?

Skills that share tags, products or a category with Loop Factory: Spec-Driven Development v2 (LichAmnesia/lich-skills, 234 stars), Spektacular Plan Implementation (jumppad-labs/jumppad, 263 stars), Autonomous Agent Patterns (davila7/claude-code-templates, 32k stars) and Show Me Your Work Decision Log (cursor/plugins, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Loop Factory?

JuliusBrussee (a GitHub user) maintains it in JuliusBrussee/skills, which has 162 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 7, 2026.

Source: JuliusBrussee/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.