# Detector

> Intervention Detector Skill

- Skill: `masharratt/detector` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add masharratt/detector`
- Raw SKILL.md: https://api.skillmd.com/api/skills/masharratt/detector/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: masharratt (https://skillmd.com/u/masharratt)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/masharratt/detector

---

# Intervention Detector Skill

## Purpose
Detect problematic patterns in agent performance during CFN Loop iterations that may require intervention.

## Detection Mechanisms
1. **Confidence Plateau**:
   - Minimal confidence improvement over multiple iterations
   - Threshold: Δ < 0.05 for 2+ consecutive iterations

2. **Recurring Feedback**:
   - Same feedback theme repeated 3+ times
   - Indicates underlying issue not being addressed

3. **Deliverables Stuck**:
   - No new files created in 2+ consecutive iterations

## Configuration
- Configurable thresholds
- Flexible input parsing
- JSON output for easy integration

## Usage
```bash
./detect-intervention.sh \
  --iteration N \
  --confidence-history "0.72,0.75,0.76" \
  --feedback-history "theme1;theme2;theme3"
```

## Output Formats
- Trigger type
- Detailed reasoning
- Recommended action

## Implementation Notes
- Use bash for performance
- Minimize external dependencies
- Provide clear, actionable output
