Stop

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

A stop hook that runs checks when the coding agent finishes a response. It includes checks for debug logging and a prompt to save reusable session patterns.

In plain words
What is it for?
Audit changed JS/TS files for console.log and trigger an end-of-session learning step.
Why use it?
It catches unwanted console.log statements in changed JavaScript or TypeScript files before work ends and can prompt learning from the session.

Hook for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the devflow plugin — 38 skills, 13 agents, 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 Audit changed JS/TS files for console.log and trigger an end-of-session learning step.

Compare 6 hooks from other repositories ↓
Install with agentmods
npx agentmods add hooks/mhylle/claude-skills-collection/stop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mhylle/claude-skills-collection

Made for: Claude Code.

Or install devflow, the plugin that ships this one along with the rest of its 38 skills, 13 agents, 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/mhylle/claude-skills-collection/stop/github.svg)](https://agentmods.dev/hooks/mhylle/claude-skills-collection/stop)
Your own site
<a href="https://agentmods.dev/hooks/mhylle/claude-skills-collection/stop"><img src="https://agentmods.dev/badge/hooks/mhylle/claude-skills-collection/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/mhylle/claude-skills-collection/stop"><img src="https://agentmods.dev/badge/hooks/mhylle/claude-skills-collection/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 1 finding. 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 1 finding 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 9d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

"command": "node -e \"const{execSync}=require('child_process');const fs=require('fs');try{execSync('git rev-parse --git-dir',{stdio:'pipe'})}catch{process.exit(0)}try{const files=execSync('git diff --name-only HEAD',{enc
hooks/hooks.json · 33 lines

What it actually says

{
  "Stop": [
    {
      "name": "console-log-audit",
      "matcher": "*",
      "hooks": [
        {
          "type": "command",
          "command": "node -e \"const{execSync}=require('child_process');const fs=require('fs');try{execSync('git rev-parse --git-dir',{stdio:'pipe'})}catch{process.exit(0)}try{const files=execSync('git diff --name-only HEAD',{encoding:'utf8',stdio:['pipe','pipe','pipe']}).split('\\n').filter(f=>/\\.(ts|tsx|js|jsx)$/.test(f)&&fs.existsSync(f));let hasConsole=false;for(const f of files){if(fs.readFileSync(f,'utf8').includes('console.log')){console.error('[Hook] WARNING: console.log found in '+f);hasConsole=true}}if(hasConsole)console.error('[Hook] Remove console.log statements before committing')}catch(e){}\""
        }
      ],
      "description": "Audit modified JS/TS files for console.log before session ends"
    },
    {
      "name": "continuous-learning",
      "matcher": "*",
      "hooks": [
        {
          "type": "prompt",
          "prompt": "The session is ending. Invoke the continuous-learning skill to extract reusable patterns from this session into ~/.claude/skills/learned/. Skip silently if nothing in the session is worth promoting."
        }
      ],
      "config": {
        "threshold": 0.7,
        "interactive": false,
        "summary": true,
        "max_patterns": 10,
        "auto_merge": true
      },
      "description": "Extract valuable patterns from session before exit (runs the continuous-learning skill)"
    }
  ]
}
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. 9d ago First seen · 33 lines scan A fa305fb00a79

Subscribe to this mod's changes

Stop is a hook published in the GitHub repository mhylle/claude-skills-collection (18 stars, last pushed 6d ago), 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 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.