bootstrap-install-hook

bootstrap-install-hook is a skill for Claude Code from Senavictors/bootstrap-agent-architecture-plugin. It costs 138 tokens per session (1,046 once invoked), scanned A, original, MIT.

An optional Git pre-commit hook that checks staged changes for common secret patterns, such as AWS keys, private keys, and assigned API keys, tokens, or passwords.

In plain words
What is it for?
Use it to install a local guard before commits. Each person must install it separately because Git does not copy hooks when a repository is cloned.
Why use it?
It can stop a commit from including recognizable secrets, including commits made manually outside an AI session.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bootstrap-agent-architecture plugin — 9 skills, 1 agent shipped together

Good fit Use it to install a local guard before commits. Each person must install it separately because Git does not copy hooks when a repository is cloned.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook
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 Senavictors/bootstrap-agent-architecture-plugin --skill bootstrap-install-hook
Clone the repo
git clone --depth 1 https://github.com/Senavictors/bootstrap-agent-architecture-plugin

Made for: Claude Code.

Or install bootstrap-agent-architecture, the plugin that ships this one along with the rest of its 9 skills, 1 agent.

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 bootstrap-install-hook

README.md
[![agentmods](https://agentmods.dev/badge/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook/github.svg)](https://agentmods.dev/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook)
Your own site
<a href="https://agentmods.dev/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook"><img src="https://agentmods.dev/badge/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook/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.

agentmods 80×15 button for bootstrap-install-hook

Your own site · 80×15
<a href="https://agentmods.dev/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook"><img src="https://agentmods.dev/badge/skills/senavictors/bootstrap-agent-architecture-plugin/bootstrap-install-hook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 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.00138 $0.01046
Opus 5.5 $0.00055 $0.00418
Sonnet 5.5 $0.00028 $0.00209
Haiku 4.5 $0.00014 $0.00105

Measured 3mo ago against content hash a025c1363245, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bootstrap-install-hook 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/pre-commit-guardrail.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugin/skills/bootstrap-install-hook/SKILL.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

bootstrap-install-hook — guardrail anti-vazamento como hook de git real

Diferença central em relação ao guardrail de bootstrap-audit: aquele só bloqueia um commit/handoff que o próprio agente executa dentro da conversa. Este hook roda para qualquer git commit, inclusive um rodado manualmente pelo usuário num terminal separado, fora de qualquer sessão de IA. É por isso que é opt-in — mexe em .git/hooks/, que fica fora do que esta arquitetura normalmente toca.

Antes de instalar — avise o usuário sobre as limitações

Diga isso explicitamente antes de instalar, não depois:

  • .git/hooks/ nunca é versionado pelo Git — mesmo que o script de lógica (.agents/scripts/pre-commit-guardrail.sh) seja commitado e chegue a outro desenvolvedor via git clone, o hook em si (.git/hooks/pre-commit) não é ativado automaticamente nessa cópia nova. Cada pessoa que clonar o repositório precisa rodar esta skill (ou o passo manual equivalente) uma vez, na própria máquina.
  • É um filtro por padrões conhecidos via grep (chave AWS, cabeçalho de chave privada, secret/token/password/api key atribuídos) — não é uma solução completa de detecção de segredo. Falso negativo é possível para um segredo que não bate nenhum desses padrões; falso positivo é possível (raro, testado contra os casos comuns antes de entregar).
  • git commit --no-verify sempre pula qualquer hook — isso é um comportamento do Git, não uma falha desta implementação. Documente isso para o usuário para que ele saiba que o hook não é uma garantia absoluta.

Procedimento

  1. Verifique se já existe um hook pre-commit em .git/hooks/pre-commit no repositório do usuário.
    • Se não existir: crie .agents/scripts/pre-commit-guardrail.sh (copiando assets/pre-commit-guardrail.sh desta skill), dê permissão de execução (chmod +x), e crie .git/hooks/pre-commit com um shim mínimo:
      #!/usr/bin/env sh
      exec .agents/scripts/pre-commit-guardrail.sh
      
      Dê permissão de execução também no shim.
    • Se já existir (ex.: Husky, ou outro hook do próprio usuário): não sobrescreva. Copie assets/pre-commit-guardrail.sh para .agents/scripts/pre-commit-guardrail.sh mesmo assim, mas mostre ao usuário a linha exata que ele precisa adicionar ao hook existente (.agents/scripts/pre-commit-guardrail.sh || exit 1) e pergunte se quer que você edite o arquivo existente ou prefere fazer isso manualmente.

Read the full file on GitHub · 38 lines

Files

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.

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. 3mo ago First seen · 38 lines · 138 tokens per session scan A a025c1363245

Subscribe to this mod's changes

bootstrap-install-hook is a skill published in the GitHub repository Senavictors/bootstrap-agent-architecture-plugin (5 stars, last pushed 3mo ago), licensed MIT. It adds 138 tokens to every session and 1,046 once invoked, about $0.0006 per session on Opus 5.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

bootstrap-install-hook compared with skills from other repositories

bootstrap-install-hook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bootstrap-install-hookSenavictors/bootstrap-agent-architecture-pluginSkill53mo agoMITA138Claude Code
commit-messagexobotyi/cc-foundrySkill23todayMITA23Claude Code
codingxobotyi/cc-foundrySkill23todayMITB26Claude Code
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
ax-extract-workflowsickn33/agentic-awesome-skillsSkill51kyesterdayMITA35Claude Code
work-unit-commitsGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA31Claude Code, Codex
review-deltatirth8205/code-review-graphSkill33k15d agoMITA24Claude Code