# Ac Stop Hook Analyzer

> Analyze context and decide on continuation via Stop hook. Use when determining if work should continue, analyzing completion status, making continuation decisions, or implementing the Two-Claude pattern.

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

---


# AC Stop Hook Analyzer

Analyze context to decide on continuation (Two-Claude Pattern).

## Purpose

Implements the Analyzer role in the Two-Claude Pattern, using Opus 4.5 to intelligently decide whether to continue autonomous operation.

## Quick Start

```python
from scripts.stop_hook_analyzer import StopHookAnalyzer

analyzer = StopHookAnalyzer(project_dir)
decision = await analyzer.should_continue()
# Returns: {"decision": "block", "reason": "Continue with api-003"}
```

## Decision Logic

- Check completion against objective
- Analyze remaining features
- Validate safety limits
- Return continue/stop decision

## API Reference

See `scripts/stop_hook_analyzer.py` for full implementation.

