hook-development SKILL.md skillA

This file is byte-identical to the first copy the registry indexed, one of 5 indexed copies. Same content hash, so the same checks give both the same grade.

hook-development from anthropics/claude-plugins-official is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add anthropics/claude-plugins-official/hook-development@v0.1.0

Pins v0.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
anthropics/claude-plugins-official
Path
plugins/plugin-dev/skills/hook-development/SKILL.md
Versions recorded
2
Latest version
v0.1.0, committed Feb 5, 2026
First version recorded
Nov 20, 2025
Size
16,246 bytes
Repository stars
43,118
License
Apache-2.0

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Hook Development for Claude Code Plugins

## Overview

Hooks are event-driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows.

**Key capabilities:**
- Validate tool calls before execution (PreToolUse)
- React to tool results (PostToolUse)
- Enforce completion standards (Stop, SubagentStop)
- Load project context (SessionStart)
- Automate workflows across the development lifecycle

## Hook Types

### Prompt-Based Hooks (Recommended)

Use LLM-driven decision making for context-aware validation:

```json
{
  "type": "prompt",
  "prompt": "Evaluate if this tool use is appropriate: $TOOL_INPUT",
  "timeout": 30
}
```

**Supported events:** Stop, SubagentStop, UserPromptSubmit, PreToolUse

**Benefits:**
- Context-aware decisions based on natural language reasoning
- Flexible evaluation logic without bash scripting
- Better edge case handling
- Easier to maintain and extend

### Command Hooks

Execute bash commands for deterministic checks:

```json
{
  "type": "command",
  "command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh",
  "timeout": 60
}
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add anthropics/claude-plugins-official/hook-development@sha256:f47e2d42f6360294

The line at the top of this page pins the label v0.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zpr4be24if5k2ezk.svg)](https://markdownregistry.com/a/art_zpr4be24if5k2ezk)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Nov 20, 2025 and Feb 5, 2026, about one every 77 days.

versioncommittedcommitsizeaudit
v0.1.0 latest2026-02-05 2438937 16,246 BA view · diff
v0.1.02025-11-20 4ca561f 16,246 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (16246 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

anthropics/claude-plugins-official · 43,118 stars · license Apache-2.0 · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zpr4be24if5k2ezk
GET https://markdownregistry.com/api/v1/resolve?ref=anthropics/claude-plugins-official/hook-development
GET https://markdownregistry.com/api/v1/blob/f47e2d42f6360294216a859ae0c30b93caafdd2b2e5ffc007489ba4ca447fa5c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from anthropics/claude-plugins-official

access SKILL.md skill
anthropics/claude-plugins-official · external_plugins/discord/skills/access/SKILL.md · Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair…
git:20260318.4796148 · audit A · 43,118 stars
configure SKILL.md skill
anthropics/claude-plugins-official · external_plugins/discord/skills/configure/SKILL.md · Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token…
git:20260320.8140fba · audit B · 43,118 stars
access SKILL.md skill
anthropics/claude-plugins-official · external_plugins/imessage/skills/access/SKILL.md · Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to…
git:20260318.1c95fc6 · audit A · 43,118 stars
configure SKILL.md skill
anthropics/claude-plugins-official · external_plugins/imessage/skills/configure/SKILL.md · Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set…
git:20260318.1c95fc6 · audit A · 43,118 stars
access SKILL.md skill
anthropics/claude-plugins-official · external_plugins/telegram/skills/access/SKILL.md · Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to…
git:20260813.1e96c6b · audit A · 43,118 stars
configure SKILL.md skill
anthropics/claude-plugins-official · external_plugins/telegram/skills/configure/SKILL.md · Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot…
git:20260813.1e96c6b · audit B · 43,118 stars
claude-automation-recommender SKILL.md skill
anthropics/claude-plugins-official · plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md · Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when…
git:20260528.fc49e68 · audit A · 43,118 stars
claude-md-improver SKILL.md skill
anthropics/claude-plugins-official · plugins/claude-md-management/skills/claude-md-improver/SKILL.md · Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix…
git:20260116.a86e346 · audit A · 43,118 stars
claude-security SKILL.md skill
anthropics/claude-plugins-official · plugins/claude-security/skills/claude-security/SKILL.md · Claude Security: scan the codebase (the whole repository or a scoped part of it), scan changes (this branch's or a pull…
git:20260925.ca08d5e · audit A · 43,118 stars
cardputer-buddy SKILL.md skill
anthropics/claude-plugins-official · plugins/cwc-makers/skills/cardputer-buddy/SKILL.md · Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already…
git:20260506.574a879 · audit A · 43,118 stars
m5-onboard SKILL.md skill
anthropics/claude-plugins-official · plugins/cwc-makers/skills/m5-onboard/SKILL.md · End-to-end onboarding for a freshly-plugged-in M5Stack ESP32 device (Cardputer, Cardputer-Adv, Core, CoreS3, Stick) —…
git:20260506.06f52cd · audit A · 43,118 stars
example-command SKILL.md skill
anthropics/claude-plugins-official · plugins/example-plugin/skills/example-command/SKILL.md · An example user-invoked skill that demonstrates frontmatter options and the skills/<name>/SKILL.md layout
git:20260317.6b70f99 · audit A · 43,118 stars

Every file in anthropics/claude-plugins-official

Other files named hook-development

hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/platforms/codex/.agents/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-codex/.agents/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-cursor/.cursor/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook",
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/platforms/cursor/.cursor/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-forgecat/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate…
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
nota-america/forgecat-agent-profiles · profiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_plugin-dev/for-claude/.claude/skills/hook-development/SKILL.md · This skill should be used when the user asks to "create a hook",
v0.1.0 · audit A · 92 stars
hook-development SKILL.md skill
kanevry/session-orchestrator · skills/hook-development/SKILL.md · Use when creating, modifying, or debugging Claude Code hooks — PreToolUse, PostToolUse, Stop, SubagentStop…
git:20261003.c34ec50 · audit A · 53 stars
hook-development SKILL.md skill
kanevry/session-orchestrator · .agents/skills/hook-development/SKILL.md · Use when creating, modifying, or debugging Claude Code hooks — PreToolUse, PostToolUse, Stop, SubagentStop…
git:20261003.c34ec50 · audit A · 53 stars

Browse by kind, by grade A, or by owner.