Loop engineering
Skill build-with-dhiraj/ai-workflow-framework-portability-kit/Skills/loop-engineering
Design and operate loop-engineered agent systems in Claude Code and Cursor. Use for loop engineering, harness design, Ralph loops, /loop, /goal, agent hub, self-improving agents, SKILL.md optimization, or choosing installable loop tooling from the research corpus.From its SKILL.md
npx -y skills add build-with-dhiraj/ai-workflow-framework-portability-kit --skill loop-engineeringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.3 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Loop Engineering
Operational skill distilled from 125-source full ingest (93 non-GitHub line-indexed + 33 GitHub code audits). Load REFERENCE.md for doctrine; INSTALL.md for code-backed installs; CORPUS_INDEX.md for source digests.
v2 requirement — evidence before recommendation
Before recommending any repo or install path:
- Run
python3 scripts/load-digest.py --repo {slug}OR readdata/repo-audits/{owner__repo}.md - Cite evidence IDs (E###) or audit locators (
file:line) in your answer - Flag README-vs-code mismatches when audit notes them
Do not recommend installs from REFERENCE.md alone.
When to use
- User asks to design a loop, harness, or agent workflow
- Choosing between
/loop,/goal, Routines, Ralph, or custom bash engines - Picking an installable repo vs custom skill/agent
- Wiring verification, state write-back, or human-in-the-loop gates
Decision tree
Need recurring agent work?
├─ Yes → Stop condition verifiable?
│ ├─ Yes → Maturity path (below)
│ └─ No → Fix stop condition first; do not schedule
└─ No → Single-shot skill dispatch; not a loop
Maturity path (jpoindexter / corpus consensus):
1. Reliable manual run (one skill, one outcome)
2. Encode as SKILL.md
3. Add state file or kernel write-back
4. Wrap in gated loop (mechanical + human gate)
5. Schedule via /loop or /goal
Loop contract template
Every loop design MUST specify:
| Field | Question |
|---|---|
| Trigger | Schedule, event, or human /loop |
| Input state | What the agent reads (files, DB, kernel) |
| Skill/playbook | Which SKILL.md stages run |
| Verifier | Separate checker sub-agent or mechanical gate |
| Stop condition | Boolean test — not vibes |
| Write-back | What persists after each cycle |
| Human gate | When human must approve before next cycle |
Harness primitives (use first)
| Primitive | Use when |
|---|---|
/loop | Fixed interval re-run of prompt or slash-command |
/goal | Run until separate model grades "done" |
| Routines | Anthropic-documented recurring workflows |
| Sub-agents | Maker builds; checker verifies (never same agent) |
| Context kernel | Cross-session state at .kernel/KERNEL.md |
See portability kit Automations/README.md for heartbeat layer.
Repo recommendation (code-backed)
Required: load audit before recommending.
python3 ~/.claude/skills/loop-engineering/scripts/load-digest.py --repo cobusgreyling/loop-engineering
python3 ~/.claude/skills/loop-engineering/scripts/load-digest.py --source S02
python3 ~/.claude/skills/loop-engineering/scripts/repo-pick.py --task "loop init"
Default layered stack (v2 code audit confirmed):
- Harness
/loop+/goal(built-in) cobusgreyling/loop-engineering— 201 files read, score 9.62- Optional harness:
earendil-works/pi(843 files) - Optional registry:
xpriment626/pi-factory(68 files, SQLite blackboard)
Dispatch rules
- Loop architecture design → dispatch
loop-engineering-architectagent - Implementation → dispatch domain specialist (never orchestrator)
- Verification →
superpowers:verification-before-completion+ code-reviewer - Skill authoring from loop learnings →
write-a-skillafter one reliable manual run
Anti-patterns
- Unattended loops without stop conditions
- Self-grading (same agent verifies its own work)
- Re-prompting full context each cycle instead of skills + state
- Confusing emosamastudio/agent-hub (job scheduler) with Sewell Agent Hub (entity registry)
Refresh
Re-run when corpus grows:
python3 research/loop-engineering-agent-hub-2026/scripts/ingest_corpus_full.py
python3 research/loop-engineering-agent-hub-2026/scripts/audit_github_repos.py
python3 research/loop-engineering-agent-hub-2026/scripts/build_evidence_v2.py
python3 research/loop-engineering-agent-hub-2026/scripts/synthesize_doctrine_v2.py
Copy updated synthesis → REFERENCE.md, INSTALL.md, CORPUS_INDEX.md.
What ships with it: 40 files
220.9 KB alongside SKILL.md, 2 of them executable
data/
- corpus-index.json27.6 KB
- repo-audits/agentic-in__inferoa.md4.1 KB
- repo-audits/alchaincyf__harness-engineering-orange-book.md1.3 KB
- repo-audits/alchaincyf__loop-engineering-orange-book.md2.8 KB
- repo-audits/AlexDuchDev__AgenticMind.md3.8 KB
- repo-audits/bhavinkotak__agentforge.md2.9 KB
- repo-audits/blazov__living-board.md5.0 KB
- repo-audits/ChaoYue0307__awesome-loop-engineering.md5.1 KB
- repo-audits/cobusgreyling__loop-engineering.md4.8 KB
- repo-audits/colbymchenry__codegraph.md4.0 KB
- repo-audits/DreamChaserEric__claude-lights-out.md2.8 KB
- repo-audits/Dryxio__auto-re-agent.md3.0 KB
- repo-audits/earendil-works__pi.md5.3 KB
- repo-audits/emosamastudio__agent-hub.md3.6 KB
- repo-audits/Forward-Future__loop-library.md3.6 KB
- repo-audits/Fractera__Agent-Engineering-Infrastructure.md4.7 KB
- repo-audits/FUY25__Loop.md4.2 KB
- repo-audits/jpoindexter__ai-agent-skills.md3.8 KB
- repo-audits/juliusbrussee__caveman.md3.5 KB
- repo-audits/microsoft__SkillOpt.md4.1 KB
- repo-audits/mikulgohil__se-agent-platform.md2.7 KB
- repo-audits/ordinary9843__gitizens.md2.6 KB
- repo-audits/pgmnemo__pgmnemo.md2.5 KB
- repo-audits/rlaope__oh-my-hermes.md4.7 KB
- repo-audits/rtk-ai__rtk.md3.1 KB
- repo-audits/sneg55__agent-starter.md2.6 KB
- repo-audits/Stahl-G__briefloop.md5.3 KB
- repo-audits/thu-nmrc__openloop.md2.6 KB
- repo-audits/valkor-ai__loom.md5.8 KB
- repo-audits/vinnylarouge__skill-opt-skill.md5.1 KB
- repo-audits/WAPA0012__cc-loop-engineering.md2.7 KB
- repo-audits/Windy3f3f3f3f__how-claude-code-works.md4.6 KB
- repo-audits/wquguru__harness-books.md5.0 KB
- repo-audits/xpriment626__pi-factory.md2.2 KB
- repo-scorecard.json31.7 KB
scripts/
- load-digest.pyruns2.4 KB
- repo-pick.pyruns3.1 KB
- CORPUS_INDEX.md28.0 KB
- INSTALL.md931 B
- REFERENCE.md3.4 KB