Agent skill
loop-agent
Execute workflow agents iteratively for refinement and progressive improvement until quality criteria are met. Use when tasks require repetitive refinement, multi-iteration improvements, progressive optimization, or feedback loops until convergence.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/loop-agent-d-o-hub-rust-self-learning-m-2
SKILL.md
Loop Agent Skill
Execute workflow agents iteratively for refinement and progressive improvement until quality criteria are met.
Quick Reference
- Modes - Loop termination modes (fixed, criteria, convergence, hybrid)
- Patterns - Common loop patterns (refinement, test-fix, optimization)
- Configuration - Loop setup and templates
- Examples - Complete loop examples
When to Use
- Code needs iterative refinement until quality standards met
- Tests need repeated fix-validate cycles
- Performance requires progressive optimization
- Quality improvements need multiple passes
- Feedback loops necessary for convergence
NOT Appropriate For
- Single-pass tasks (use specialized agent)
- Purely parallel work (use parallel-execution)
- Simple linear workflows (use sequential)
- One-time analysis
Core Concepts
Loop Termination Modes
| Mode | Description | Use When |
|---|---|---|
| Fixed | Run exactly N iterations | Known number of passes needed |
| Criteria | Until success criteria met | Specific quality/performance targets |
| Convergence | Stop at diminishing returns | Optimal result unknown |
| Hybrid | Combine multiple conditions | Complex requirements |
See modes.md for detailed mode documentation and patterns.md for common loop patterns.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?