Skillquality 0.47

prevent-continuation-stop-hook-contract

Return a narrow stop-hook result that can halt the query loop without throwing, while still surfacing blocking errors separately.

Price
free
Protocol
skill
Verified
no

What it does

SKILL: Prevent Continuation Stop-Hook Contract

Domain: tool-orchestration
Trigger: Apply when post-response hooks may decide that the query loop must stop, but the caller still needs a structured non-exception contract. Source Pattern: Distilled from reviewed tool-loop and result-shaping patterns.

Core Method

Represent stop-hook outcomes with a compact return contract instead of control-flow exceptions. Separate hard blocking errors from the boolean that says continuation should stop, and let the loop interpret that result after hooks, teammate callbacks, and summary messages have all been emitted. This keeps hook orchestration observable and composable while still allowing hooks to end the turn decisively.

Key Rules

  • Return a small structured result such as { blockingErrors, preventContinuation } rather than throwing for normal stop decisions.
  • Preserve the distinction between “there were blocking error messages” and “hooks intentionally stopped continuation.”
  • Let hook attachments and summary messages be emitted before returning the stop decision so the stop remains visible in transcripts.
  • Reuse the same contract across related hook families so teammate and task-completed hooks can short-circuit the loop in the same shape.

Example Application

If a stop hook determines that a teammate should pause after reaching idle state, emit the relevant hook summary and return preventContinuation: true. The query loop can then stop cleanly without mistaking that decision for a crash.

Anti-Patterns (What NOT to do)

  • Do not throw exceptions for ordinary hook-driven stop decisions; callers lose the chance to emit hook summaries and structured attachments.
  • Do not collapse blocking errors and stop signals into one field; the loop needs to know whether to surface errors or just stop.

Capabilities

skillsource-ychampionskill-prevent-continuation-stop-hook-contracttopic-agent-skillstopic-ai-agentstopic-clitopic-coding-agentstopic-context-engineeringtopic-developer-toolstopic-mcptopic-multi-agenttopic-terminal-ui

Install

Quality

0.47/ 1.00

deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,841 chars)

Provenance

Indexed fromgithub
Enriched2026-04-22 00:56:54Z · deterministic:skill-github:v1 · v1
First seen2026-04-18
Last seen2026-04-22

Agent access