loop-architect

Design loop contracts with verification gates and hard stops for autonomous agent workflows.

4|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/pragmaticgrowth/flywheel --skill loop-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loop-architect
Source: https://github.com/pragmaticgrowth/flywheel/tree/main/skills/loop-architect
Command: npx skills add https://github.com/pragmaticgrowth/flywheel --skill loop-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you turn vague requests for ongoing or unattended work into concrete loop setups with clear verification, scope, and stop conditions, so agents keep making progress without drifting or running forever.

Core Features & Use Cases

  • Loop qualification: Checks whether a recurring or autonomous workflow is actually worth automating before committing to a loop.
  • Primitive selection: Chooses the right execution pattern for Claude Code or Droid, including goal runs, polling loops, routines, dispatch queues, and event-driven automation.
  • Contract design: Produces copy-pasteable prompts with measurable gates, hard stops, state tracking, and no-progress safeguards.
  • Use Case: A developer wants a background process that keeps improving a repo until tests pass, with clear verification commands and a recovery path if the same failure repeats.

Quick Start

Ask the assistant to design a loop contract for keeping a task moving autonomously, including the verification gate, state file, and stop conditions.

Frequently Asked Questions about loop-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design autonomous agent workflows that stop automatically?

To design autonomous agent workflows that stop automatically, you need a loop contract with measurable verification gates and explicit hard stops. This prevents agents from drifting or running forever by requiring persistent state tracking and no-progress safeguards.

What is the best way to automate background maintenance tasks with Claude Code?

The best way to automate background maintenance tasks with Claude Code is to use primitive execution patterns like polling loops, routines, or dispatch queues. You must define goal contracts with clear state tracking to ensure reliable unattended execution.

How do I set up verification gates for unattended Droid routines?

Setting up verification gates for unattended Droid routines requires defining measurable success criteria within a loop contract. The contract specifies runtime-specific execution primitives and no-progress safeguards to halt routines if the same failure repeats.

When should I use a loop contract for scheduled agent tasks?

You should use a loop contract for scheduled agent tasks when a recurring workflow passes loop qualification and is worth automating. Contracts are essential for long-running maintenance, dispatch queues, and event-driven automation to prevent infinite runtime.

How do I add a recovery path to an autonomous coding loop?

To add a recovery path to an autonomous coding loop, the loop contract must include state tracking and no-progress safeguards. These mechanisms detect repeating failures and trigger explicit hard stops, preventing the agent from endlessly retrying the same error.

Does loop-architect work with event-driven automation and dispatch queues?

Yes, loop-architect works with event-driven automation and dispatch queues by selecting the appropriate primitive execution pattern for Claude Code or Droid. It generates copy-pasteable prompts with measurable gates and persistent state tracking for these workflows.