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.
/plugin marketplace add es6kr/skills/plugin install es6krWrote 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.
[](https://agentmods.dev/hooks/es6kr/skills/pre-tool-use)<a href="https://agentmods.dev/hooks/es6kr/skills/pre-tool-use"><img src="https://agentmods.dev/badge/hooks/es6kr/skills/pre-tool-use/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.
<a href="https://agentmods.dev/hooks/es6kr/skills/pre-tool-use"><img src="https://agentmods.dev/badge/hooks/es6kr/skills/pre-tool-use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>Grade A, and why
PreToolUse 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.
{
"PreToolUse": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/check-excessive-ci-polling.sh"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/bash-guard.py"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-compound-commands.sh"
},
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-copilot-rate-limit.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-squash-subject-without-pr.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-bot-re-trigger.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-long-silent-watcher.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-prod-branch-autonomous-ops.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/hook-kit/resources/block-delegation-in-github-body.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/consolidate/resources/block-noncompliant-review-comment.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/consolidate/resources/block-review-post-without-receiving-code-review.sh"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/skills/consolidate/resources/block-summary-fabricWhat 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.
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.
- yesterday Changed · +5 lines 4f72b74568a2
- 4d ago Changed · +4 lines 114565af924c
- 10d ago Changed · +8 lines da39f19f31df
- 18d ago Changed · +4 lines 9ad5e8e97eed
- 24d ago Changed · +4 lines 7fc6dbddedc7
- 26d ago Changed · -7 lines 1c5fb1d8fdc2
- 1mo ago Changed · +4 lines c54b6eaa0bbb
- 1mo ago Changed · +15 lines 0b64a0b6b805
- 1mo ago Changed 30617d583763
- 1mo ago First seen · 244 lines scan A bd92f7032dff
PreToolUse 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.
Other hooks, from other repositories
PreToolUse
Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From apache/superset.
PreToolUse
Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From anthropics/claude-cookbooks.
PostToolUse
Runs after a tool call finishes for Bash tool calls, executing hooks.sh via sh (3 commands). From anthropics/claude-plugins-official.
PreCompact
Runs before the context is compacted for manual and auto tool calls, executing hook-handler.cjs via node (4 commands). From ruvnet/RuView.
PreToolUse
Runs before the agent uses a tool for Bash tool calls, running node -e ". From heygen-com/hyperframes.
SessionStart
Runs when a session starts, executing hook-handler.cjs and auto-memory-hook.mjs via node (2 commands). From ruvnet/RuView.