skill-iterative-loop

Featured

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

AI & Automation 3,887 stars 365 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/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
6 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