Agent skill

Claude Code Hooks

by aiskillstore in aiskillstore/marketplace

Claude Code hook system for pre/post tool execution. An agent skill from aiskillstore/marketplace.

No licenceAuto-check: notesAgent Workflows

Install Claude Code Hooks

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

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

GitHub CLI
$ gh skill install aiskillstore/marketplace claude-code-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/0xdarkmatter/claude-code-hooks .claude/skills/claude-code-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
claude-code-hooks
GitHub stars
430
Used in
1 other repo
Token cost
~742 tokens
SKILL.md length
177 words
Files
5 (incl. references)
Skills in repo
1,085
Repo updated
First seen
Licence
None found

At a glance

Claude Code hook system for pre/post tool execution. An agent skill from aiskillstore/marketplace.

  • Tool validation
  • SKILL.md covers Quick Reference, Basic Configuration, Matcher Patterns and Hook Script Requirements, plus 5 more sections
  • Calls jq and claude
  • Tasks that involve Hooks and plugins

What it does

Claude Code Hooks is an agent skill from aiskillstore/marketplace. Claude Code hook system for pre/post tool execution. Triggers on: hooks, PreToolUse, PostToolUse, hook script, tool validation, audit logging.

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/configuration.md`, `references/hook-events.md` and `references/security-patterns.md`). Compatibility notes: Claude Code CLI with settings.json support

It sits in Agent Workflows, covering Hooks and plugins. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Tool validation
  • Tasks that involve Hooks and plugins

Example prompts

  • “/claude-code-hooks”

Requirements

  • Compatibility (from SKILL.md): Claude Code CLI with settings.json support
  • Pre-approved tools (allowed-tools): Bash, Read, Write

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. 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:

    • Bash
    • Read
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq
    • claude

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

  • Network

    Links to these hosts (documentation or services it may open):

    • code.claude.com

    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.

  • Compatibility

    Claude Code CLI with settings.json support

    From compatibility in the SKILL.md frontmatter.

Context cost

Claude Code Hooks loads about 742 tokens when it runs, and up to ~4.3k if it reads all its reference files. Until then it costs about 40 tokens; SKILL.md has 177 words of instructions outside code blocks.

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

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: Bash, Read, Write

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); files beside SKILL.md are not scanned.

SKILL.md

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

“Execute custom scripts before/after Claude Code tool invocations.”

— opening of SKILL.md by aiskillstore
name
claude-code-hooks
allowed-tools
Bash, Read, Write
compatibility
Claude Code CLI with settings.json support
related-skills
claude-code-debug, claude-code-headless

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (references) in skills/0xdarkmatter/claude-code-hooks of aiskillstore/marketplace.

  • SKILL.md
  • references/configuration.md
  • references/hook-events.md
  • references/security-patterns.md
  • skill-report.json

Open the folder on GitHubat commit 4ac52da

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aiskillstore/marketplace, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Claude Code 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.

Claude Code Hooks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Claude Code Hooks this skillaiskillstore/marketplace4301 repos~742Automated safety check: NotesNone
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official37k11 repos~4.1kAutomated safety check: NotesApache-2.0
Claude Code Agent Developmentanthropics/claude-plugins-official37k8 repos~2.8kAutomated safety check: PassApache-2.0
Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase10k10 repos~3.5kAutomated safety check: PassMIT
Plugin Settings Patternanthropics/claude-plugins-official37k7 repos~3kAutomated safety check: PassApache-2.0
MCP Integration for Pluginsanthropics/claude-plugins-official37k11 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    37k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    37k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Skill Developer Guide

    diet103/claude-code-infrastructure-showcase

    A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.

    10k GitHub starsUsed in 10 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    37k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    37k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    37k GitHub starsUsed in 10 repos~4.8k tokens
    Agent WorkflowsAuto-check passed

More from aiskillstore/marketplace

All 1,085 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 2 repos~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
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Categories

Questions about Claude Code Hooks

What does Claude Code Hooks do?

Claude Code hook system for pre/post tool execution. An agent skill from aiskillstore/marketplace. Claude Code Hooks is an agent skill from aiskillstore/marketplace. Claude Code hook system for pre/post tool execution.

When should I use Claude Code Hooks?

Claude Code Hooks fits situations like: tool validation; tasks that involve Hooks and plugins.

How do I install Claude Code Hooks in Claude Code?

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

How do I install Claude Code Hooks in Codex?

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

Can I use Claude Code 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 claude-code-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/claude-code-hooks, .gemini/skills/claude-code-hooks, .github/skills/claude-code-hooks and .opencode/skills/claude-code-hooks in your project.

What does Claude Code Hooks need to run?

Going by SKILL.md and its folder, Claude Code Hooks needs the command-line tools its instructions call (jq and claude). Its frontmatter pre-approves these tools: Bash, Read, Write. Compatibility (from SKILL.md): Claude Code CLI with settings.json support.

Does Claude Code Hooks access the network?

SKILL.md names 1 domain. As links in the text: code.claude.com. This is read from the text; nothing was executed.

Is Claude Code 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. Review the folder before installing.

What licence does Claude Code Hooks use?

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

How many tokens does Claude Code Hooks use?

About 742 tokens (SKILL.md is roughly 3k 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 3.5k tokens, read only when the agent opens those files.

What are the alternatives to Claude Code Hooks?

Skills that share tags, products or a category with Claude Code Hooks: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Claude Code Agent Development (anthropics/claude-plugins-official, 37k stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars) and Plugin Settings Pattern (anthropics/claude-plugins-official, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Claude Code Hooks?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 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.