skill-iterative-loop

Featured

Run tasks in a loop until goals are met — use for iterative refinement, polling, or convergence

AI & Automation 4,099 stars 385 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Iterative Loop Execution ## Overview Systematic iterative execution with clear goals, exit conditions, and progress tracking. **Core principle:** Define goal → Set max iterations → Execute → Evaluate → Loop or complete. --- ## When to Use **Use this skill when user wants to:** - Execute a task multiple times with refinements - Loop until a condition is met - Iteratively improve something (code, tests, performance) - Retry operations with modifications - Progressive enhancement in rounds **Do NOT use for:** - Single execution ("run tests once") - Manual step-by-step work - Infinite loops without bounds - Simple retry logic (use skill-debug) --- ## The Process ### Phase 1: Loop Setup #### Step 1: Understand the Intent ```markdown **Loop Intent:** Goal: [what should be achieved] Success criteria: [how do we know we're done] Max iterations: [safety limit] Per-iteration tasks: [what to do each loop] ``` #### Step 2: Clarify Parameters Use AskUserQuestion if unclear: - **Max iterations:** How many times maximum? - **Success condition:** What indicates we can stop early? - **Per-iteration actions:** What exactly to do each round? - **Failure handling:** What if it never succeeds? #### Step 3: Safety Checks ```markdown **Safety Validation:** - [ ] Max iterations defined (no infinite loops) - [ ] Success condition is measurable - [ ] Each iteration makes progress - [ ] Failure exit strategy exists - [ ] User aware of potential duration ``` **Never proceed without...

Details

Author
nyldn
Repository
nyldn/claude-octopus
Created
8 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

loop-engineering

Use to design or add a new bounded loop to the kit's SDLC orchestration ("design a new loop", "is this worth a loop"), or mentions the Karpathy loop / autoresearch / hill-climb / search-and-select prompt or parameter tuning. NOT for a one-off in-session Stop-hook goal (use goal-craft), NOT for the debug loop (already exists, use /kit:debug), NOT for building the loop's actual code.

10 Updated today
dwarvesf
AI & Automation Featured

skill-iter-tune

Iterative skill tuning via execute-evaluate-improve feedback loop. Uses maestro delegate Claude to execute skill, Agy to evaluate quality, and Agent to apply improvements. Iterates until quality threshold or max iterations. Triggers on "skill iter tune", "iterative skill tuning", "tune skill".

558 Updated 2 days ago
catlog22
AI & Automation Listed

goal-loop

Runs an iterative implement-evaluate-improve loop toward a measurable goal, treating it like gradient descent — attempt, evaluate, diagnose specifically what to fix, revise, repeat — with momentum across iterations and early stopping when progress plateaus. Splits success criteria into checks the implementer sees and held-out checks it never sees, so passing the visible ones while failing the held-out ones is caught and reported as gaming, not success. Use for "keep going until this actually works" tasks, or anywhere you don't fully trust that green visible tests mean the underlying goal was really met.

0 Updated 3 weeks ago
jsvillalbat