loop-detection-prevention
Installation
SKILL.md
Loop Detection and Prevention
Overview
Monitor agent execution for repetitive patterns and stuck states. Detect when identical tool calls are repeated without progress, and trigger intervention strategies.
Core Principles
- Monitor tool call patterns: Track identical tool calls with same arguments
- Track progress metrics: Files edited, tests run, errors fixed
- Recognize stuck states: No progress in 5 minutes, 10+ identical calls
- Intervene when needed: Skip step, try alternative, or ask for help