Skip to content
Back to skills

Loop Detector

ASecurity

Use when commands, searches, file reads, edits, tests, critics, plans, context reloads, or strategies repeat without new evidence or acceptance progress.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
ai-agents

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add ihabkhaled/AI-Psychiatry --skill loop-detector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Loop Detector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Loop Detector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ihabkhaled-loop-detector/badge)](https://www.skillsdirectory.com/skills/ihabkhaled-loop-detector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: loop-detector
description: Use when commands, searches, file reads, edits, tests, critics, plans, context reloads, or strategies repeat without new evidence or acceptance progress.
---

# Loop Detector

## Core principle

Detect semantic repetition, not only identical syntax; high activity plus flat outcome is probable livelock.

## Procedure

1. List recent actions and their intended evidence.
2. Group semantically equivalent actions.
3. Compare completed requirements, removed blockers, and newly passing tests.
4. Mark repeated actions that added no information.
5. Identify retry, tool, edit-revert, critic, replan, context, or oscillation patterns.
6. Trigger attention or strategy recovery at the configured threshold.

## Required output

Loop type, repeated strategy, unchanged outcome, threshold, and recovery action.

## Limits

Same strategy 3; critics 2; context reloads 2; stalled cycles 4.

## Common mistakes

Do not call renamed commands or alternate tools meaningful novelty when they test the same hypothesis.

## Stop condition

Stop when repetition is interrupted and a materially different bounded action is selected.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.