Stop

Stop is a hook for Claude Code from es6kr/skills. Its token cost is not measured, scanned A, original, MIT.

A set of checks that runs when the coding agent finishes an answer. It uses shell scripts to inspect the session, tool calls, cleanup actions, and waiting behavior.

In plain words
What is it for?
Use it to enforce end-of-response rules, remove stale helper shells, validate cleanup prerequisites, and detect specific problems in the agent's final actions.
Why use it?
It helps catch malformed actions, unsafe cleanup, missing session context, and unnecessary waiting before the response is treated as finished.

Hook for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the es6kr plugin — 36 skills, 5 hooks shipped together

One of 5 entries in hooks.json upstream. Installing this one merges just its entry into your config; the other 4 are separate, each on its own page.

Good fit Use it to enforce end-of-response rules, remove stale helper shells, validate cleanup prerequisites, and detect specific problems in the agent's final actions.

Compare 6 hooks from other repositories ↓
View source ↗ es6kr/skills
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add es6kr/skills
Claude Code
/plugin install es6kr

Made for: Claude Code.

Or install es6kr, the plugin that ships this one along with the rest of its 36 skills, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Stop

README.md
[![agentmods](https://agentmods.dev/badge/hooks/es6kr/skills/stop/github.svg)](https://agentmods.dev/hooks/es6kr/skills/stop)
Your own site
<a href="https://agentmods.dev/hooks/es6kr/skills/stop"><img src="https://agentmods.dev/badge/hooks/es6kr/skills/stop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Stop

Your own site · 80×15
<a href="https://agentmods.dev/hooks/es6kr/skills/stop"><img src="https://agentmods.dev/badge/hooks/es6kr/skills/stop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

Stop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

hooks/hooks.json · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/check-absence-claim-single-probe.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/check-session-rag.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/cleanup/resources/block-cleanup-without-rag.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/cleanup/resources/block-cleanup-without-claudify.sh"
        },
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/check-self-task-open-at-wrapup.js"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-malformed-tool-call.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/reap-stale-wrapper-shells.sh"
        },
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/reap-orphaned-helper-procs.js",
          "async": true
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-idle-wait-without-short-cycle.sh",
          "timeout": 10
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/check-slash-command-skill-invoked.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-manual-handoff-web-task.sh"
        },
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/cleanup/resources/block-cleanup-missing-rename.sh"
        },
        {
          "

Read the full file on GitHub · 74 lines

Same file

What else hooks.json configures

This page is one entry in a file that holds 5. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +4 lines 36cb38c3cb9c
  2. 18d ago Changed · +4 lines d7403b53b8f6
  3. 24d ago Changed · +4 lines 70d24457664e
  4. 1mo ago Changed · +8 lines 8242de5979a1
  5. 1mo ago Changed 2acc139e8571
  6. 1mo ago Changed · +5 lines 3f3db1e9b9d4
  7. 1mo ago First seen · 49 lines scan A a277c3b93aea

Subscribe to this mod's changes

Stop is a hook published in the GitHub repository es6kr/skills (2 stars, last pushed yesterday), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.