loop engineering
The skill

Put a loop architect inside your agent.

loop-engineering is a portable Agent Skill. Install it once and your coding agent stops waiting for prompts: it interviews you, writes a loop contract, picks honest stop conditions, and scaffolds the files — so the loop runs your recurring work instead of you.

Run this in your project
npx github:invincible04/awesome-loop-engineering

It asks which agent you use and whether to install for this project or everywhere, then copies the skill into the right folder. No build, no account.

  • Claude Code
  • Cursor
  • Codex
  • OpenCode
  • + any Agent Skills client
What it does

It designs the loop, you stay the engineer

The skill loads only when you ask for help with a recurring task. Then it walks a fixed path — the same one the chapters teach — and leaves you with files you own.

1
Interviews you
Asks the trigger, the maker, the verifiable done-condition, the budget, and where state lives. No loop without these answers.
2
Writes the loop contract
Fills an eleven-part contract: trigger, discover, delegate, act, verify, persist, decide, plus the stop conditions and budget.
3
Picks honest stops
Bakes in the four reasons a loop is allowed to halt: goal met, budget spent, stalled, or needs a human.
4
Scaffolds the files
Generates the maker and checker prompts, a STATE file for memory, and the command that drives the loop in your tool.

The skill never marks its own work done. It builds the separate checker first, because that is the part you keep.

Where it lands

One folder, read by every major agent

A skill is just a folder with a SKILL.md, per the open Agent Skills standard. The installer drops it where your tool looks. Pick project to share it with your team through git, or personal to carry it across every project.

AgentProjectPersonal
Claude Code.claude/skills/~/.claude/skills/
Cursor.cursor/skills/~/.cursor/skills/
Codex.agents/skills/~/.agents/skills/
OpenCode.opencode/skills/~/.config/opencode/skills/
Any client.agents/skills/~/.agents/skills/

Target one directly when you want to skip the prompts:

npx github:invincible04/awesome-loop-engineering --tool=claude --scope=personal
Without npx

Other ways to install

The skill is plain files. Copy them however you like.

Copy the folder

Pull just the skill directory into place with degit:

npx degit invincible04/awesome-loop-engineering/skill/loop-engineering .claude/skills/loop-engineering
By hand
  • Download the skill (.zip), or clone the repo.
  • Copy the skill/loop-engineering/ folder into your agent's skills folder from the table above.
  • On claude.ai, zip that folder and upload it under Settings › Features.
  • Restart the agent so it rediscovers skills.
Then what

Ask it to design a loop.

Open your agent and say what recurring task is eating your turns. The skill takes it from there — and you get a loop you can read, run, and walk away from.