Skip to content
Skills Library
AI & agents · Automation

loop-engineering

/loop-engineering

Design, scaffold, score, schedule, and govern autonomous agent loops. Use when building loop infrastructure — the mechanism layer that runs, monitors, and recovers agent loops. Complements loopy (loop content/design) with loop execution infrastructure. Covers loop scaffolding, health scoring, cron scheduling, governance policies, and failure recovery patterns.

Licence
MIT
Last repository change
12.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Design, scaffold, score, schedule, and govern autonomous agent loops. Use when building loop infrastructure — the mechanism layer that runs, monitors, and recovers agent loops. Complements loopy (loop content/design) with loop execution infrastructure. Covers loop scaffolding, health scoring, cron scheduling, governance policies, and failure recovery patterns.

Original author description

Design, scaffold, score, schedule, and govern autonomous agent loops. Use when building loop infrastructure — the mechanism layer that runs, monitors, and recovers agent loops. Complements loopy (loop content/design) with loop execution infrastructure. Covers loop scaffolding, health scoring, cron scheduling, governance policies, and failure recovery patterns.

How it works

  1. When to use
  2. Core concepts
  3. MCP integration
  4. Related skills
Original SKILL.md headings · 62 lines, 333 words
SKILL.md preview
---
name: loop-engineering
description: Design, scaffold, score, schedule, and govern autonomous agent loops. Use when building loop infrastructure — the mechanism layer that runs, monitors, and recovers agent loops. Complements loopy (loop content/design) with loop execution infrastructure. Covers loop scaffolding, health scoring, cron scheduling, governance policies, and failure recovery patterns.
---

# Loop Engineering

Build and operate the infrastructure that runs autonomous agent loops — the
mechanism layer that schedules, monitors, scores, and recovers loops. This is
the engineering counterpart to loopy (which designs loop content and
boundaries).

## When to use

- Building a new autonomous agent loop from scratch
- Adding scheduling, monitoring, or recovery to an existing loop
- Auditing loop infrastructure for reliability gaps
- Setting up loop governance (rate limits, budgets, approval gates)
- Debugging a loop that stalls, spins, or silently fails

## Core concepts

### Loop anatomy

Every loop has:
- **Trigger**: What starts it (cron, webhook, event, manual)
- **Body**: The work it does (triage → act → verify)
- **Gate**: What stops it (budget, time, approval, success signal)
- **Recovery**: What happens on failure (retry, escalate, pause, alert)

### Loop health scoring

Score loops on:
- **Completion rate**: % of runs that reach a terminal state
- **Budget adherence**: % of runs within token/cost budget
- **Action rate**: % of runs that produce a meaningful action (not just "no-op")
- **Recovery rate**: % of failures that self-recover without human intervention

### Governance patterns

- **Budget caps**: Hard limits on tokens, cost, or wall-clock time per run
- **Approval gates**: Human-in-the-loop for high-impact actions
- **Rate limits**: Max runs per hour/day, cooldown between runs
- **Audit trail**: Every run logs its trigger, actions, and outcome

## MCP integration

The loop-engineering MCP server (`@cobusgreyling/loop-mcp-server`) provides:
- Loop scaffolding and templating
- Health scoring and monitoring
- Cron-based scheduling
- Governance policy enforcement

Start the MCP server via `npx @cobusgreyling/loop-mcp-server` (stdio transport).

## Related skills

- **loopy**: Loop content design, discovery, and publication
- **loop-triage**: Triage recent changes for loop consumption
- **loop-constraints**: Enforce binding constraints before loop runs
- **loop-verifier**: Independent verification of loop-produced changes
- **loop-budget**: Token budget enforcement for loop runs
- **minimal-fix**: Produce smallest possible fix for loop-identified issues
- **continuous-agent-loop**: Patterns for long-running autonomous loops
- **autonomous-loops**: Architecture patterns for multi-agent loop systems

Versions

RepositoryScoreLicence
This page · JZKK720/cubecloud-skills-bundle-kit90MIT
dwarvesf/dwarves-kit100MIT
huytieu/cog-second-brain100MIT
jggomez/expert-ai-developer-skills100Apache-2.0
jggomez/expert-ai-developer-skills100Apache-2.0
bojieli/ai-agent-book100Apache-2.0
Mark393295827/third-brain-v7-skills100MIT
alvinunreal/oh-my-opencode-slim90MIT
telagod/code-abyss85MIT

Database snapshot: 13.11.2026 · package version de5093ff3263 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100loopy
    Discover, find, compare, audit, repair, adapt, craft, run, debrief, save, and prepare repeatable AI-agent loops for publication. Use when a user asks to analyze code or coding threads for recurring work, find a published loop, interview them to turn a goal into a bounded loop,…
  • 96generate-agentic-loop
    Design or implement bounded, self-correcting agent execution loops with verification, resource limits, and recoverable state. Use when a user asks to build or improve an agent loop or its execution harness.
  • 100loop-design-check
    Design a goal-oriented agent loop or review one for failure modes: spinning, Goodhart-gaming the verifier, or running a wrong answer to completion. Covers machine-decidable goals, loop types, plan/build/judge skeletons, and runaway prevention; mechanism wiring lives in…
  • 100goal-loop
    Draft /goal prompts and explain persistent agent loops. Use for goal or Ralph loops, autonomous run setup, monitoring, and troubleshooting.
  • 100autonomous-loop-patterns
    Use when designing, reviewing, or debugging an autonomous AI agent loop: repeated agent execution, completion signals, checkpoints, supervisor respawn, stall detection, safety caps, and human handoff rules. Covers the core loop patterns from simple bounded runs through…
  • 90ralph-loop
    Run, monitor, resume, merge, and debug Ralph loops. Use this skill whenever the user asks to operate `ralph run` or `ralph loops`, inspect loop state, recover suspended loops, analyze diagnostics, or unblock merge queue issues.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.