install-hooks

install-hooks is a skill for Claude Code from rvdbreemen/adr-kit. It costs 20 tokens per session (158 once invoked), scanned A, original, MIT.

A procedure for installing or removing a Git pre-commit hook that checks Architecture Decision Records (ADRs) before commits.

In plain words
What is it for?
Use it to install ADR Kit's pre-commit gate in a repository or remove that gate and restore the previous hook setup.
Why use it?
It adds an automatic check at commit time without changing the coding agent's configuration. It also preserves unrelated existing hooks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; $skill-name invocation.

Part of the adr-kit plugin — 17 skills, 1 command, 1 agent, 6 hooks, 1 MCP server shipped together

Good fit Use it to install ADR Kit's pre-commit gate in a repository or remove that gate and restore the previous hook setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rvdbreemen/adr-kit/install-hooks
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.

Any agent
npx skills add rvdbreemen/adr-kit --skill install-hooks
Clone the repo
git clone --depth 1 https://github.com/rvdbreemen/adr-kit

Made for: Claude Code.

Or install adr-kit, the plugin that ships this one along with the rest of its 17 skills, 1 command, 1 agent, 6 hooks, 1 MCP server.

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 install-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/rvdbreemen/adr-kit/install-hooks.svg)](https://agentmods.dev/skills/rvdbreemen/adr-kit/install-hooks)
Your own site
<a href="https://agentmods.dev/skills/rvdbreemen/adr-kit/install-hooks"><img src="https://agentmods.dev/badge/skills/rvdbreemen/adr-kit/install-hooks.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00020 $0.00158
Opus 5 $0.00010 $0.00079
Sonnet 5 $0.00004 $0.00032
Haiku 4.5 $0.00002 $0.00016

Measured 7d ago against content hash adc8b7bbc7d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

install-hooks 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 7d 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.

codex/skills/install-hooks/SKILL.md · 18 lines

What it actually says

Install ADR enforcement hooks (the hooks mode of setup)

Invoke explicitly with $adr-kit:install-hooks when needed. Resolve <plugin-root> from this installed skill. Use only bundled, local ADR Kit tools and follow this canonical workflow:

  1. Inspect core.hooksPath and preserve unrelated hooks by chaining them.
  2. Install only ADR Kit's wrapper at .githooks/pre-commit; uninstall only owned state and restore prior configuration.

Do not contact another model or mutate user-owned instructions.

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. 7d ago First seen · 18 lines · 20 tokens per session scan A adc8b7bbc7d6

Subscribe to this mod's changes

install-hooks is a skill published in the GitHub repository rvdbreemen/adr-kit (6 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 158 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

review-gate

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness.…

majiayu000/spellbook · 95 tokens

push-all

Use when the user explicitly asks to stage all current changes, create a commit, and push to the remote after safety checks.

majiayu000/spellbook · 28 tokens

levelup-publish

Compile accepted Context Directive Records (CDRs) into team-ai-directives artifacts and create a draft PR. Builds context modules, evals goldensets, and/or skills based on CDR context types.

tikalk/adlc-team-skills · 46 tokens

commit

Stage the appropriate changes and commit them with a Conventional Commits message.

decodingai-magazine/building-a-coding-agent-from-scratch-course · 16 tokens

git-commits-and-prs

Load BEFORE creating a git commit or a GitHub pull request. Step-by-step protocol for drafting commit messages, staging safely, amend rules, and gh pr create choreography.

sergezuber/FABULA-LLM-5 · 42 tokens

setup-git-hooks

Configure two-stage git hooks (pre-commit + pre-push) for quality automation, with either pre-commit or lefthook as the hook manager. Use after bootstrap-project and setup-adrs, when adding quality gates to an existing project, or when standardizing quality automation.

jrjsmrtn/project-orchestration-skills · 62 tokens