返回顶部
L

Loop

Run iterative agent loops until success criteria are met. Controlled autonomous iteration.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
1,299
下载量
2
收藏
概述
安装方式
版本历史

Loop

## Data Storage ``` ~/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` ## Scope This skill: - ✅ Runs iterative attempts toward defined success criteria - ✅ Logs each iteration with learnings - ✅ Exits on success, max iterations, or unrecoverable error - ❌ NEVER makes Git commits automatically - ❌ NEVER deploys to production - ❌ NEVER modifies system configuration - ❌ NEVER runs indefinitely (max 10 iterations hard limit) ## Quick Reference | Topic | File | |-------|------| | Loop examples | `examples.md` | | Memory between iterations | `memory.md` | ## Core Rules ### 1. Pattern ``` Task + Criteria → Execute → Verify → [Pass? Exit : Retry] ``` ### 2. Required Setup | 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` | ### 3. When to Propose - Task has clear success criteria but uncertain path - Previous attempt failed but error is fixable - User says "keep trying until..." **NOT for:** One-shot tasks, undefined goals, exploratory work ### 4. Each Iteration 1. **Fresh context** — Only carry: task, criteria, count, learnings 2. **Execute** — Attempt the task 3. **Verify** — Check success criteria 4. **Record** — Append to history: what worked, what failed 5. **Decide** — Pass? Exit. Fail? Retry if under limit. ### 5. Stopping Conditions - ✅ Success criteria met - ❌ Max iterations reached - ⚠️ Unrecoverable error (missing dependency, permission denied) ### 6. On Failure If max reached without success: - Summarize all attempts - Identify common failure pattern - Recommend manual intervention or different approach ### 7. Safety - Hard limit: 10 iterations maximum - No destructive actions without explicit per-action approval - Log everything to ~/loop/history/

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 loop-1776420066 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 loop-1776420066 技能

通过命令行安装

skillhub install loop-1776420066

下载 Zip 包

⬇ 下载 Loop v1.0.2

文件大小: 2.91 KB | 发布时间: 2026-4-17 20:13

v1.0.2 最新 2026-4-17 20:13
Fixed internal contradiction about Git commits in memory.md

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部