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.
npx skills add DominikTobureto/awesome-grok-build --skill hooksmithgit clone --depth 1 https://github.com/DominikTobureto/awesome-grok-buildWrote 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/skills/dominiktobureto/awesome-grok-build/hooksmith)<a href="https://agentmods.dev/skills/dominiktobureto/awesome-grok-build/hooksmith"><img src="https://agentmods.dev/badge/skills/dominiktobureto/awesome-grok-build/hooksmith/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/skills/dominiktobureto/awesome-grok-build/hooksmith"><img src="https://agentmods.dev/badge/skills/dominiktobureto/awesome-grok-build/hooksmith.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00035 | $0.00618 |
| Opus 5 | $0.00017 | $0.00309 |
| Sonnet 5 | $0.00007 | $0.00124 |
| Haiku 4.5 | $0.00003 | $0.00062 |
Grade A, and why
hooksmith 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 11d 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.
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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hooksmith
Design hooks as deterministic safety rails around agent work.
Grok Build Mode
- Start with read-only analysis unless the user explicitly asks to create hook files.
- Use Plan Mode before adding project hooks because Grok requires trust for
.grok/hooks/. - Use subagents for hook reviews:
security: command injection, secrets, network exfiltration.dx: runtime, noise, failure messages.portability: Windows/macOS/Linux shell compatibility.
- Arena-style comparison: compare 2-3 hook designs and choose the least powerful one that solves the workflow.
Mental Model
Hooks are automation triggered by agent lifecycle or tool events. They should be boring, transparent, and easy to disable.
Workflow
- Identify the event that should trigger the hook.
- Decide whether the hook should be:
- read-only check;
- formatter;
- test runner;
- notification;
- policy guard.
- Prefer the smallest command that proves the intended condition.
- Document:
- trigger event;
- command;
- files touched;
- expected runtime;
- failure behavior;
- how to disable it.
- If the hook mutates files, make the mutation obvious and limited.
Safe Hook Ideas
- After edit: run formatter on touched files.
- After edit: run lint on touched files.
- Before shell command: block commands matching dangerous patterns.
- Stop event: summarize changed files and verification status.
- Notification: send a local desktop notification when a long task completes.
Auto Lint/Test Pattern
Prefer repository-native commands discovered from config files:
- Find lint/test/typecheck commands.
- Start with a reporting hook.
- Add auto-format only after the team trusts it.
- Keep runtime short enough that agents do not learn to ignore it.
Red Flags
- Hooks that run network commands without explanation.
- Hooks that read
.envor credential stores. - Hooks that rewrite broad directories.
- Hooks that auto-commit or push.
- Hooks that hide output from the user.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 91 lines · 35 tokens per session scan A cfec5f8f7583
hooksmith is a skill published in the GitHub repository DominikTobureto/awesome-grok-build (61 stars, last pushed 18d ago), licensed MIT. It adds 35 tokens to every session and 618 once invoked, about $0.0002 per session on Opus 5. 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-30.
Other skills, from other repositories
ci-flaky-patrol
Classify a bounded batch of stale PR CI failures and choose the safest response.
cua-driver
Drive a native GUI app (macOS, Windows, Linux) via the Qwen Cua Driver CLI (default) or MCP server; snapshot its accessibility tree, act through snapshot-bound element tokens, native menu paths, exact window geometry, or pixel coordinates, and verify from fresh state. Use when the user asks you to operate, drive…
codegraph
Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection…
goal-draft
Turn a fuzzy intention into a /goal objective the Goal verifier can actually judge - one outcome, numbered binary "Done when" checks that leave evidence in the transcript, guardrails, a budget, and a block protocol. Use when the user wants to set or define a goal, asks whether a goal is good enough, or says "keep…
stuck
Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.
e2e-testing
Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…