skill-iterative-loop

Control iterative task execution with goals, limits, and completion conditions.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/burgebj/claudeoctopus --skill skill-iterative-loop-burgebj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-iterative-loop
Source: https://github.com/burgebj/claudeoctopus/tree/main/.claude/skills/skill-iterative-loop
Command: npx skills add https://github.com/burgebj/claudeoctopus --skill skill-iterative-loop-burgebj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents unbounded or ineffective repetition by providing a structured approach for iterative execution with goals, limits, progress tracking, and stopping conditions.

Core Features & Use Cases

  • Controlled Iteration Management: Defines goals, success criteria, maximum iterations, and progress summaries for repeated tasks.
  • Convergence and Safety Controls: Detects stalled progress, repeated failures, cycles, and excessive changes while enforcing self-regulation safeguards.
  • Use Case: Improve code quality by repeatedly auditing, fixing, and testing a project until defined quality gates are met while avoiding endless retry cycles.

Quick Start

Ask the skill to iterate on a task with a clear goal, success condition, and maximum number of attempts.

Frequently Asked Questions about skill-iterative-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent infinite loops during automated testing and debugging cycles?

Prevent infinite loops in debugging cycles by enforcing bounded iteration limits, progress evaluation, and failure detection safety mechanisms. This defines maximum attempts and completion conditions to stop runaway execution while driving tasks to completion.

What is controlled iterative execution for task refinement?

Controlled iterative execution is a task refinement method that defines goals, limits, and evaluation criteria for repeated improvement workflows. It applies bounded iteration tracking and convergence controls to ensure repeated tasks progress effectively toward defined success conditions.

How do I set up an optimization loop with stopping conditions?

Set up an optimization loop by providing a clear goal, success condition, and maximum number of attempts. The execution framework applies progress summaries, detects stalled progress, and enforces self-regulation safeguards to prevent endless retry cycles.

Can I use bounded iteration tracking for code quality improvement?

Yes, bounded iteration tracking applies to code quality improvement by repeatedly auditing, fixing, and testing a project until defined quality gates are met. Convergence controls detect excessive changes and repeated failures to avoid ineffective repetition.

Why does my task refinement loop stall without making progress?

Task refinement loops stall when progress evaluation criteria fail to detect repeated failures or cycles. Applying convergence and safety controls identifies stalled progress, enforces self-regulation, and triggers stopping conditions to prevent ineffective repetition.