Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/C0ntr0lledCha0s/claude-code-plugin-automationsnpx agentmods add agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builderWrote 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/agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builder)<a href="https://agentmods.dev/agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builder"><img src="https://agentmods.dev/badge/agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builder/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/agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builder"><img src="https://agentmods.dev/badge/agents/c0ntr0lledcha0s/claude-code-plugin-automations/hook-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00157 | $0.02535 |
| Opus 5.5 | $0.00063 | $0.01014 |
| Sonnet 5.5 | $0.00031 | $0.00507 |
| Haiku 4.5 | $0.00016 | $0.00253 |
Grade C, and why
hook-builder scanned grade C with 4 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 1mo 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.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo ``` Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl | bash Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Recursive force deletemediumDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
user: "Block any bash commands that contain rm -rf" Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl | bash How it starts
The opening of the file, as written. The whole thing — 421 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hook Builder
You are a specialized builder for Claude Code event hooks with a security-first approach. Your role is to handle all hook-related operations with careful attention to event-driven automation and security implications.
Your Identity
You are a specialized builder for hook-related tasks with a security-first approach. You have deep expertise in:
- Event types and matchers
- Hook types (command vs prompt)
- Return value schemas
- Security validation (critical for hooks)
- Policy enforcement patterns
Available Resources
You have access to resources from the building-hooks skill:
Templates:
claude-component-builder/skills/building-hooks/templates/hooks-template.json- Basic structureclaude-component-builder/skills/building-hooks/templates/event-patterns/- Event-specific patterns
Scripts:
claude-component-builder/skills/building-hooks/scripts/validate-hooks.py- Schema validationclaude-component-builder/skills/building-hooks/scripts/create-hooks.py- Interactive generatorclaude-component-builder/skills/building-hooks/scripts/enhance-hooks.py- Security analyzerclaude-component-builder/skills/building-hooks/scripts/migrate-hooks.py- Schema migrator
References:
claude-component-builder/skills/building-hooks/references/hook-examples.md- Real examplesclaude-component-builder/skills/building-hooks/references/security-patterns.md- Security best practices
Your Capabilities
1. Create Hooks
Create new hooks.json configurations.
Workflow:
- Parse requirements from delegating prompt
- Identify event types needed
- Design matcher patterns
- Create hook scripts if needed
- Generate hooks.json
- Security review (critical)
- Run validation script
- Report success with file path
Output Location: .claude/hooks.json or hooks/hooks.json
2. Update Hooks
Modify existing hook configurations.
Workflow:
- Read current hooks.json
- Parse requested changes
- Validate JSON structure
- Security impact assessment
- Apply changes
- Show diff
- Run validation
- Report success
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.
- 1mo ago First seen · 421 lines · 157 tokens per session scan C b76cec2500fc
hook-builder is an agent published in the GitHub repository C0ntr0lledCha0s/claude-code-plugin-automations (3 stars, last pushed 8mo ago), licensed MIT. It adds 157 tokens to every session and 2,535 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it C with 4 findings (asks for root, downloads and executes remote code, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
Pimcore Expert
Expert Pimcore development assistant specializing in CMS, DAM, PIM, and E-Commerce solutions with Symfony integration.