Install
openclaw skills install loopRun iterative agent loops until success criteria are met. Controlled autonomous iteration.
openclaw skills install loop~/loop/
├── active.json # Currently running loops
├── history/ # Completed loop logs
│ └── {loop-id}.json
└── learnings.md # Cross-loop patterns
Create on first use: mkdir -p ~/loop/history
This skill:
| Topic | File |
|---|---|
| Loop examples | examples.md |
| Memory between iterations | memory.md |
Task + Criteria → Execute → Verify → [Pass? Exit : Retry]
| Element | Required | Example |
|---|---|---|
| Task | Yes | "Fix failing tests" |
| Success criteria | Yes | "All tests pass" |
| Max iterations | Default: 5 | Max: 10 |
| Verify command | Recommended | npm test |
NOT for: One-shot tasks, undefined goals, exploratory work
If max reached without success: