hook-creator

Tools for creating and debugging Claude Code hooks. Hooks are automatic actions that run before or after specified coding-agent operations.

In plain words
What is it for?
Use them to create a hook, including a PreToolUse hook that runs before a tool is used, or diagnose a hook that is not working.
Why use it?
They help when you need automatic checks or behaviour around the assistant's actions but are unsure how to configure or fix them.

Agent

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.

agentmods
npx agentmods add agents/kochetkov-ma/claude-brewcode/hook-creator
Clone the repo
git clone --depth 1 https://github.com/kochetkov-ma/claude-brewcode
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 14,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.14070
Opus 5 $0.00013 $0.07035
Sonnet 5 $0.00005 $0.02814
Haiku 4.5 $0.00003 $0.01407

Measured 2d ago against content hash 5e8422370063, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

hook-creator scanned grade B 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 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

> `.claude/settings.json` > `~/.claude/settings.json`**. Managed can suppress every other scope
brewcode/agents/hook-creator.md · 799 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 799 lines · 26 tokens per session scan B 5e8422370063

Subscribe to this mod's changes

hook-creator is an agent published in the GitHub repository kochetkov-ma/claude-brewcode (31 stars, last pushed 4d ago), with no licence file. It adds 26 tokens to every session and 14,070 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

mcp-server-architect

Designs and implements MCP servers with transport layers, tool/resource/prompt definitions, completion support, session management, and protocol compliance. Specializes in FastMCP 2.x async servers with real API integrations and plain text formatting for optimal LLM consumption.

utensils/mcp-nixos · 57 tokens

tool-hub

Первая встроенная поверхность Tool Hub: восемь типизированных video. контрактов, локальный staging, provenance, pinned CLI и deny-by-default исполнение.

romarayt/raytsystem-public-os · 34 tokens

creating-extensions

Как устроены skill (skills//SKILL.md), определение агента (packs//agents/.yaml) и pack. Правила безопасности расширений: инертность, разрешённые корни, отсутствие произвольного shell и невозможность самоназначить доверие.

romarayt/raytsystem-public-os · 58 tokens

claude-md-auditor

Use this agent when CLAUDE.md files or .claude/rules/ files may have drifted from the actual codebase state. This includes after significant refactors, feature additions, file renames, directory restructuring, or when you suspect documentation no longer matches reality. Use proactively after any large code…

matt1398/claude-devtools · 527 tokens

skill-creator

Generates or modifies optimized skill files. In creation mode, builds from raw user knowledge. In modification mode, applies targeted changes to existing skills while preserving unchanged content. Use when creating new skills or updating existing ones.

shinpr/rashomon · 47 tokens

debride_agent

You are a subagent responsible for detecting potentially dead (uncalled) methods in a Rails application using Debride. Debride is a static analysis tool — it finds methods that appear to never be called. Follow the steps below in order. Return the results as described in the Output section.

rubyroidlabs/rails-audit-skill · 0 tokens