Agent skill

Building Hooks

by aiskillstore in aiskillstore/marketplace

Expert at creating and modifying Claude Code event hooks for automation and policy enforcement.

No licenceAuto-check: notesBackend & APIs

Install Building Hooks

skills CLI
$ npx skills add aiskillstore/marketplace --skill building-hooks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace building-hooks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/c0ntr0lledcha0s/building-hooks .claude/skills/building-hooks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
building-hooks
GitHub stars
430
Token cost
~4.2k tokens
SKILL.md length
1,147 words
Files
7 (incl. scripts, references)
Skills in repo
1,044
Repo updated
First seen
Licence
None found

At a glance

Expert at creating and modifying Claude Code event hooks for automation and policy enforcement.

  • Works in 6 steps: Identify the Need → Choose Event and Matcher → Design the Hook Logic → …
  • Wants to create
  • SKILL.md covers When to Create Hooks, Hook Schema & Structure, Event Types and Matcher Patterns, plus 5 more sections
  • Runs Python and Shell scripts from its folder; calls black, prettier and python3

What it does

Building Hooks is an agent skill from aiskillstore/marketplace. Expert at creating and modifying Claude Code event hooks for automation and policy enforcement. Auto-invokes when the user wants to create, update, modify, enhance, validate, or standardize hooks, or when modifying hooks.json configuration, needs help with event-driven automation, or wants to understand hook patterns. Also auto-invokes proactively when Claude is about to write hooks.json files, or implement tasks that involve creating event hook configurations.

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/hook-checklist.md`, `references/hook-maintenance-guide.md` and `scripts/validate-hooks.py`).

It sits in Backend & APIs, covering Event-driven systems. It works with Bash. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Wants to create
  • Standardize hooks
  • Modifying hooks.json configuration
  • Needs help with event-driven automation

Example prompts

  • “/building-hooks”

Requirements

  • Python 3
  • A Bash shell
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify the Need
  2. Choose Event and Matcher
  3. Design the Hook Logic
  4. Create hooks.json
  5. Implement Hook Script
  6. Test the Hook

What it can do on your machine

Read from SKILL.md and the folder at commit 755bc35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • black
    • prettier
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Building Hooks loads about 4.2k tokens when it runs, and up to ~8.9k if it reads all its reference files. Until then it costs about 120 tokens; SKILL.md has 1,147 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Grep, Glob, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,147 words (~4,152 tokens).

“You are an expert at creating Claude Code event hooks. Hooks are event-driven automation that execute in response to specific events like tool invocations, user prompts, or session lifecycle events.”

— opening of SKILL.md by aiskillstore
name
building-hooks
allowed-tools
Read, Write, Edit, Grep, Glob, Bash
version
2.0.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in skills/c0ntr0lledcha0s/building-hooks of aiskillstore/marketplace.

  • SKILL.md
  • references/hook-checklist.md
  • references/hook-maintenance-guide.md
  • scripts/validate-hooks.py
  • skill-report.json
  • templates/hooks-template.json
  • templates/validation-hook.sh

Open the folder on GitHubat commit 755bc35

Compare with similar skills

Building Hooks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Building Hooks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Building Hooks this skillaiskillstore/marketplace430—~4.2kAutomated safety check: NotesNone
Stripe Projectsfossasia/eventyay1.7k5 repos~2kAutomated safety check: NotesApache-2.0
MQTTX CLIemqx/MQTTX5.1k—~1.9kAutomated safety check: PassApache-2.0
AWS Serverless Edazxkane/aws-skills3674 repos~3.2kAutomated safety check: PassMIT
Windmill Trigger Type Checklistwindmill-labs/windmill18k—~4.7kAutomated safety check: PassCustom licence
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0

Similar skills

  • Stripe Projects

    fossasia/eventyay

    A skill your agent uses when the user wants to provision infrastructure or third-party services using Stripe Projects.

    1.7k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check: notes
  • MQTTX CLI

    emqx/MQTTX

    Operates the `mqttx` command line client to connect, publish, subscribe, benchmark and simulate data against an MQTT broker, with TLS and MQTT 5 support.

    5.1k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • AWS Serverless Eda

    zxkane/aws-skills

    AWS serverless and event-driven architecture expert based on Well-Architected Framework.

    367 GitHub starsUsed in 4 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Windmill Trigger Type Checklist

    windmill-labs/windmill

    Checklist of every backend, frontend, CLI and capture change needed to add a new TriggerCrud-based trigger type, such as Azure, GCP or Kafka, to Windmill.

    18k GitHub stars~4.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Homerail Dag Ops

    xiaotianfotos/homerail

    Design, start, supervise, inspect, and continue HomeRail DAG workflows from any agent with CLI or HTTP access.

    992 GitHub stars~1.5k tokensUpdated 13 days ago
    Backend & APIsAuto-check passed

More from aiskillstore/marketplace

All 1,044 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 1 repo~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Project Planner

    aiskillstore/marketplace

    Detects stale project plans and suggests session commands. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Works with

Categories

Questions about Building Hooks

What does Building Hooks do?

Expert at creating and modifying Claude Code event hooks for automation and policy enforcement. Building Hooks is an agent skill from aiskillstore/marketplace. Expert at creating and modifying Claude Code event hooks for automation and policy enforcement.

When should I use Building Hooks?

Building Hooks fits situations like: wants to create; standardize hooks; modifying hooks.json configuration; needs help with event-driven automation.

How do I install Building Hooks in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill building-hooks -a claude-code`. Or copy the skill folder (skills/c0ntr0lledcha0s/building-hooks in aiskillstore/marketplace) into .claude/skills/building-hooks in your project. Claude Code loads it when a task matches its description.

How do I install Building Hooks in Codex?

Run `npx skills add aiskillstore/marketplace --skill building-hooks -a codex`. Or copy the skill folder (skills/c0ntr0lledcha0s/building-hooks in aiskillstore/marketplace) into .agents/skills/building-hooks in your project. Codex loads it when a task matches its description.

Can I use Building Hooks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill building-hooks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/building-hooks, .gemini/skills/building-hooks, .github/skills/building-hooks and .opencode/skills/building-hooks in your project.

What does Building Hooks need to run?

Going by SKILL.md and its folder, Building Hooks needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (black, prettier and python3). Our summary lists: Python 3; A Bash shell. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash.

Does Building Hooks access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Building Hooks safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Building Hooks use?

No licence was found for Building Hooks or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Building Hooks use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.8k tokens, read only when the agent opens those files.

What are the alternatives to Building Hooks?

Skills that share tags, products or a category with Building Hooks: Stripe Projects (fossasia/eventyay, 1.7k stars), MQTTX CLI (emqx/MQTTX, 5.1k stars), AWS Serverless Eda (zxkane/aws-skills, 367 stars) and Windmill Trigger Type Checklist (windmill-labs/windmill, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Building Hooks?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,044 skills in this directory. The repository was last updated on October 9, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.