Loop

GitHub

提供迭代改进循环能力,对目标进行多轮算法周期优化。每轮保留上下文与死胡同记录,支持人工审核或自主研究模式,确保每次迭代基于上一轮结果持续优化直至达到理想状态。

LifeOS/install/skills/Loop/SKILL.md danielmiessler/LifeOS

Trigger Scenarios

需要对文件或技能进行多次迭代优化 需要保留历史尝试记录避免重复探索 需要人工介入指导迭代方向

Install

npx skills add danielmiessler/LifeOS --skill Loop -g -y
More Options

Non-standard path

npx skills add https://github.com/danielmiessler/LifeOS/tree/main/LifeOS/install/skills/Loop -g -y

Use without installing

npx skills use danielmiessler/LifeOS@Loop

指定 Agent (Claude Code)

npx skills add danielmiessler/LifeOS --skill Loop -a claude-code -g -y

安装 repo 全部 skill

npx skills add danielmiessler/LifeOS --all -g -y

预览 repo 内 skill

npx skills add danielmiessler/LifeOS --list

SKILL.md

Frontmatter
{
    "name": "Loop",
    "version": "1.0.9",
    "description": "Iterative improvement loop — refine a target across multiple Algorithm cycles toward ideal state. USE WHEN loop, iterate, refine, multiple passes, keep improving, revisit, rework.",
    "disable-model-invocation": true
}

/loop — Iterative Improvement

What It Does

/loop runs the Algorithm as a loop — multiple full Algorithm cycles on the same target, each iteration building on the last. By default a human reviews and redirects between iterations. Unlike /optimize (an autonomous mutation loop), /loop runs full Algorithm passes with that human review in the seam.

The Problem

Some work doesn't finish in one pass. A skill, a prompt, a diagram, a piece of writing gets meaningfully better each time you run a full cycle on it — but only if each cycle remembers what the last one learned and what it already tried. Run the cycles by hand and you lose that thread: you re-explore dead ends, forget which approaches got rejected, and have no record of whether the score actually moved. /loop carries ISC criteria and a dead-ends ledger across iterations so each pass starts from where the last one ended.

How It Works

Each iteration is a full Algorithm cycle (OBSERVE → LEARN). The LEARN phase of one cycle feeds the OBSERVE phase of the next, the ISA tracks iteration count and cumulative improvements, and a human approves or redirects between iterations unless autoresearch mode is enabled.

Invocation

/loop --target "path/to/target" --iterations 5
/loop --target "~/.claude/skills/Art/Workflows/TechnicalDiagrams.md" --goal "make diagrams more consistent"
/loop --resume       # Resume a previous loop
/loop --status       # Show iteration history

What Happens

Each iteration is a full Algorithm cycle (articulate → climb → verify → learn) with:

  • ISC criteria that evolve between iterations
  • Each cycle's learnings inform the next cycle's scaffold
  • ISA tracks iteration count and cumulative improvements
  • Human approves/redirects between iterations

Arguments

Argument Required Default Description
--target PATH yes What to improve (file, directory, skill)
--goal TEXT inferred What "better" means for this target
--iterations N 3 Maximum number of Algorithm cycles
--resume Resume a previous loop
--status Show iteration history
--autoresearch off Opt-in autonomous mode — see below

Algorithm Integration

The iteration field tracks cycle count. (mode: is retired — never write it.) Each cycle re-enters the Algorithm with accumulated context from prior iterations.

Autoresearch Mode (opt-in)

--autoresearch switches /loop from supervised multi-pass improvement to autonomous iteration, borrowing three patterns from pi-autoresearch (davebcn87, MIT):

  1. No human review between cycles — each iteration's LEARN feeds directly into the next OBSERVE. Cycle continues until --iterations reached, target met, or explicit interrupt.
  2. Dead-ends ledger — ISA maintains a ## Dead Ends section. Every failed iteration appends one line with the rejected approach and reason. Resumes read this to avoid retrying rejected paths.
  3. MAD confidence on iteration score — if the target has a measurable score, compute |delta|/MAD(iteration_scores) per cycle. Flag red (<1.0×) iterations as noise-floor and log marginal; do not update baseline. See LIFEOS/ALGORITHM/optimize-loop.md → Confidence Gating.

Invocation:

/loop --target "path" --goal "X" --iterations 20 --autoresearch

Default /loop behavior is unchanged — autoresearch is opt-in only. Intended for overnight runs on targets where human-in-the-loop review between cycles is too slow.

Examples

/loop --target "~/.claude/skills/Research" --goal "improve output quality" --iterations 5
/loop --target "prompts/summarize.md" --goal "more concise, less filler"

Gotchas

  • Loop runs multiple full Algorithm cycles. Each cycle is a complete OBSERVE→LEARN pass. This is expensive in time and tokens.
  • Set a clear exit condition. Without one, loops can run indefinitely.
  • Human review happens between cycles. Don't skip the review step — it's the feedback mechanism.

Version History

  • ce046f2 Current 2026-08-20 12:57

Same Skill Collection

LifeOS/install/skills/ApertureOscillation/SKILL.md
LifeOS/install/skills/ArXiv/SKILL.md
LifeOS/install/skills/Council/SKILL.md
LifeOS/install/skills/CreateCLI/SKILL.md
LifeOS/install/skills/ExtractWisdom/SKILL.md
LifeOS/install/skills/FirstPrinciples/SKILL.md
LifeOS/install/skills/Ideate/SKILL.md
LifeOS/install/skills/IterativeDepth/SKILL.md
LifeOS/install/skills/Novelty/SKILL.md
LifeOS/install/skills/Optimize/SKILL.md
LifeOS/install/skills/Prompting/SKILL.md
LifeOS/install/skills/RedTeam/SKILL.md
LifeOS/install/skills/RootCauseAnalysis/SKILL.md
LifeOS/install/skills/Science/SKILL.md
LifeOS/install/skills/SecurityMarketData/SKILL.md
LifeOS/install/skills/SystemsThinking/SKILL.md
LifeOS/install/skills/Telos/SKILL.md
LifeOS/install/skills/Upgrade/SKILL.md
LifeOS/install/skills/USMetrics/SKILL.md
LifeOS/install/skills/WorldThreatModel/SKILL.md
LifeOS/install/skills/Aphorisms/SKILL.md
LifeOS/install/skills/Apify/SKILL.md
LifeOS/install/skills/Art/SKILL.md
LifeOS/install/skills/AudioEditor/SKILL.md
LifeOS/install/skills/BeCreative/SKILL.md
LifeOS/install/skills/BiasCheck/SKILL.md
LifeOS/install/skills/BitterPillEngineering/SKILL.md
LifeOS/install/skills/BrightData/SKILL.md
LifeOS/install/skills/CMUX/SKILL.md
LifeOS/install/skills/Cortex/SKILL.md
LifeOS/install/skills/CreateSkill/SKILL.md
LifeOS/install/skills/Daemon/SKILL.md
LifeOS/install/skills/DetectAI/SKILL.md
LifeOS/install/skills/Evals/SKILL.md
LifeOS/install/skills/Fabric/SKILL.md
LifeOS/install/skills/Hardening/SKILL.md
LifeOS/install/skills/HTML/SKILL.md
LifeOS/install/skills/Interceptor/SKILL.md
LifeOS/install/skills/Interview/SKILL.md
LifeOS/install/skills/ISA/SKILL.md
LifeOS/install/skills/LifeOS/SKILL.md
LifeOS/install/skills/LocalIntelligence/SKILL.md
LifeOS/install/skills/Migrate/SKILL.md
LifeOS/install/skills/PrivateInvestigator/SKILL.md
LifeOS/install/skills/Remotion/SKILL.md
LifeOS/install/skills/Research/SKILL.md
LifeOS/install/skills/Sales/SKILL.md
LifeOS/install/skills/SuggestSkills/SKILL.md
LifeOS/install/skills/Teach/SKILL.md

Metadata

Files
0
Version
ce046f2
Hash
fe047b46
Indexed
2026-08-20 12:57

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 05:52
浙ICP备14020137号-1 $mapa de visitantes$