mcpbeat

Ac Stop Hook Analyzer

majiayu000/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.

458 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
532
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/majiayu000/claude-skill-registry --skill ac-stop-hook-analyzer

What comes with it

877 bytes besides the instruction
metadata.json

The instruction itself

5 sections, as written by the author

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

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.

How to use it

Copy the folder

Take majiayu000/ac-stop-hook-analyzer from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.