Stop

Stop is a hook for Claude Code from Jeffallan/claude-skills. Its token cost is not measured, scanned A, a copy of PreToolUse, MIT.

A stop check that runs when the coding agent finishes a response. During an active ticket, it invokes the ticket guard to check whether the work may stop and whether the tests are passing.

In plain words
What is it for?
Use it to enforce end-of-turn checks for ticket work, including the final passing-test check.
Why use it?
It helps prevent an agent from ending a ticket with unverified work. It also reports when the guard could not run because its required command runner is unavailable.

Hook for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR variable. Also seen: positional $N argument; mentions Claude Code.

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 fullstack-dev-skills plugin — 71 skills, 2 commands, 8 agents, 4 hooks shipped together

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

Good fit Use it to enforce end-of-turn checks for ticket work, including the final passing-test check.

Compare 6 hooks from other repositories ↓
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 12,556 stars · on GitHub

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 Jeffallan/claude-skills
Claude Code
/plugin install fullstack-dev-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 71 skills, 2 commands, 8 agents, 4 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/jeffallan/claude-skills/stop/github.svg)](https://agentmods.dev/hooks/jeffallan/claude-skills/stop)
Your own site
<a href="https://agentmods.dev/hooks/jeffallan/claude-skills/stop"><img src="https://agentmods.dev/badge/hooks/jeffallan/claude-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/jeffallan/claude-skills/stop"><img src="https://agentmods.dev/badge/hooks/jeffallan/claude-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 80% copy Near-identical to another mod 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 6d 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.

Origin

This is a copy

80% identical to PreToolUse — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugin/hooks/hooks.json · 12 lines

What it actually says

{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "m=\"$(git -C \"${CLAUDE_PROJECT_DIR:-.}\" rev-parse --absolute-git-dir 2>/dev/null)/ticket-guard/marker.json\"; [ -f \"$m\" ] || exit 0; u=\"$(command -v uv)\"; for c in \"$HOME/.local/bin/uv\" \"$HOME/.cargo/bin/uv\"; do [ -n \"$u\" ] || { [ -x \"$c\" ] && u=\"$c\"; }; done; [ -n \"$u\" ] || { e=\"ticket-guard: uv not found on the PATH Claude Code runs hooks with, or in ~/.local/bin or ~/.cargo/bin, so the guard did not run and GREEN was not checked. A ticket is in progress, so the guard blocks one stop per ticket; the next stop goes through unchecked. Put uv on that PATH and retry (see Goal Runs, 'When something goes wrong').\"; set -- $(cksum <\"$m\"); f=\"${m%/*}/uv-missing-stop.$1\"; [ -n \"$1\" ] && [ -f \"$f\" ] && { printf '{\"systemMessage\":\"%s\"}\\n' \"$e\"; exit 0; }; echo \"$e\" >&2; [ -z \"$1\" ] || true 2>/dev/null >\"$f\"; exit 2; }; exec \"$u\" run -q --no-project --python \">=3.11\" \"${CLAUDE_PLUGIN_ROOT}/runtime/guard.pyz\" hook stop"
        }
      ]
    }
  ]
}
Same file

What else hooks.json configures

This page is one entry in a file that holds 4. 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. 6d ago First seen · 12 lines scan A d5537733b86c

Subscribe to this mod's changes

Stop is a hook published in the GitHub repository Jeffallan/claude-skills (12,556 stars, last pushed today), 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. It is 80% identical to PreToolUse, differing in 5 lines, and is treated as a copy.

Related

Stop compared with hooks from other repositories

Stop next to 6 hooks from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
StopJeffallan/claude-skillsHook13ktodayMITA—Claude Code
SessionStartsupabase/supabaseHook116ktodayApache-2.0A—Claude Code
PostToolUsesupabase/supabaseHook116ktodayApache-2.0A—Claude Code
SessionStartgoogle-gemini/gemini-cliHook109ktodayApache-2.0A—Claude Code
PreToolUseapache/supersetHook76ktodayApache-2.0A—Claude Code
PreToolUseheygen-com/hyperframesHook93ktodayApache-2.0A—Claude Code
PostToolUseanthropics/claude-plugins-officialHook49kyesterdayApache-2.0A—Claude Code