Automation & Ops ✓ Anthropic · Official hook-rulesregexbashfile-editingyaml-frontmattersecurity

Hookify Rule Author

Write precise Claude Code rules for warnings, blocking, and checks

FollowSkills review · FSRS-2.0
Not recommended
45/ 100 5-point scale 2.3 / 5
Trust14 / 25 · 2.8/5

The skill only instructs users to create local Markdown rules and names the fields being matched; it declares no external service, credential, or upload flow. However, rules can block tool operations or stop sessions without requiring user confirmation, auditability, rollback, or false-positive recovery; permanent disabling is deletion, so points are deducted.

Reliability6 / 20 · 1.5/5

The format, fields, events, and workflow are broadly coherent and common pitfalls are documented. However, the optional action field is described but not demonstrated in examples, and no committed tests cover parsing, matching, abnormal input, or runtime failure feedback. Actual behavior therefore remains unverified and the score is reduced.

Adaptability8 / 15 · 2.7/5

Trigger phrases, intended tasks, event types, and field ranges are reasonably clear for writing hookify rules. Boundaries for non-fit scenarios, compatibility, complete input constraints, and Chinese-language semantic triggering are not specified, while environment-fit evidence is limited, so points are deducted.

Convention8 / 15 · 2.7/5

The document uses progressive sections and provides examples, naming conventions, and some limitations. It has version 0.1.0 but no changelog, named maintenance owner, update path, installation/dependency notes, or troubleshooting FAQ; the referenced examples directory is not verified by the supplied material, so points are deducted.

Effectiveness7 / 15 · 2.3/5

The document plausibly completes the core task of creating, refining, and disabling rules and provides directly reusable frontmatter, patterns, and message examples. There is no reproducible execution evidence, action/parsing semantics remain uncertain, and users must still test for false matches, so the static cap applies and points are deducted.

Verifiability2 / 10 · 1.0/5

The SKILL.md is auditable and contains concrete formats and examples, but there is no committed test suite, CI coverage for this skill's key paths, or third-party execution evidence. The supplied repository workflows do not validate this skill, so only limited traceability is justified.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision b0b9f02b0581
Before you use it
  • Obtain explicit user approval before creating block rules, and retain a recoverable disable or rollback path.
  • Validate action handling, event fields, and Python-regex behavior in the target Claude Code/hookify version, especially for advanced conditions.
  • Do not submit sensitive commands, paths, or code to online regex testers; prefer local tests and inspect false positives.
Review evidence [1][2][3][4][5][6]
See the full review method →

What it does & when to use it

This skill helps users create and maintain Hookify rules. Rules are Markdown files with YAML frontmatter stored in `.claude/`, where they watch Bash commands, file edits, stop events, or prompts. It covers simple regex rules, multi-condition rules, warning and blocking actions, and rule testing and disabling. It fits Claude Code users who need security reminders, coding-policy checks, or completion checks.

It guides users through choosing an event, writing Python-style regex or multi-condition matches, and creating .claude/hookify.{name}.local.md files. It explains fields for rule names, enablement, events, matching fields, actions, and Markdown trigger messages. It also documents testing patterns with python3, refining rules, and disabling them with enabled: false.

  1. A developer wants warnings or blocking for commands such as `rm -rf`, `sudo`, or risky permission changes.
  2. A team wants to flag `console.log` or security-sensitive code during TypeScript edits.
  3. A maintainer wants reminders when `.env`, credential, or certificate files are edited.
  4. A project lead wants a checklist for tests, builds, and documentation before the agent stops.
  5. A Claude Code user wants a deployment checklist triggered by prompt content.

Pros & cons

Pros
  • Covers Bash, file-edit, stop, and prompt events.
  • Documents both simple regex and multi-condition formats.
  • Includes workflows for naming, testing, refining, and disabling rules.
  • Supports configurable `warn` and `block` actions with Markdown messages.
Limitations
  • It is explicitly based on Claude Code Hookify files and events, so other platforms require adaptation.
  • The source provides no standalone test suite or cross-platform validation evidence.
  • It provides authoring guidance rather than a standalone rule execution program.
  • The installation information does not specify this skill’s plugin name.

How to install

The skill is located at plugins/hookify/skills/writing-rules/SKILL.md in the repository. The README says the collection can be installed through Claude Code using /plugin install {plugin-name}@claude-plugins-official; the source does not identify the specific {plugin-name} for this skill, so a more precise command cannot be verified.

How to use

Ask Claude Code to “create a hookify rule,” “write a hook rule,” “configure hookify,” or “add a hookify rule.” Then create .claude/hookify.{descriptive-name}.local.md in the project root with YAML frontmatter and a trigger message; rules are read on the next tool use. Supported events are bash, file, stop, prompt, and all.

FAQ

Does it require networking or an MCP server?
The source shows no network or MCP dependency; rules are written as local `.claude/` files.
Can a rule block an operation?
Yes. Set the optional `action` field to `block`; omitted actions default to `warn`.
How do I temporarily disable a rule?
Set `enabled: false` in the frontmatter. Permanently disabling it means deleting the corresponding `.local.md` file.
Which platforms does it support?
The source directly describes Claude Code. Other platforms would need adaptation because the skill uses Hookify’s Claude Code-specific events and file conventions.

More skills from this repository

All from anthropics/claude-plugins-official

Productivity & Collaboration ✓ Anthropic · Official

Project Status Artifact

Turn complex, multi-stream work into a living project status page.

Design & Frontend ✓ Anthropic · Official

Distinctive Frontend Design

Build an intentional visual identity for interfaces that should not feel templated.

Dev & Engineering ✓ Anthropic · Official

MCP Interactive App Builder

Add chat-embedded forms, pickers, dashboards, and confirmation widgets to MCP servers.

Dev & Engineering ✓ Anthropic · Official

Claude Skill Template Example

A reference for understanding and creating Claude Code plugin skill templates.

Dev & Engineering ✓ Anthropic · Official

MCPB Local Server Packager

Bundle a local MCP server with its runtime into one installable file.

Dev & Engineering ✓ Anthropic · Official

Claude Code Receipts

Turn local Claude Code sessions and Git history into a shareable impact report.

Design & Frontend ✓ Anthropic · Official

Playground Builder

Turn complex visual or structural choices into a live, self-contained HTML explorer.

Dev & Engineering ✓ Anthropic · Official

MCP Server Builder

Helps developers choose the right MCP deployment, tool pattern, framework, and authentication before writing code.

Dev & Engineering ✓ Anthropic · Official

Claude Code Agent Development Guide

Design, write, and validate autonomous agents for Claude Code plugins.

Automation & Ops ✓ Anthropic · Official

Discord Channel Access

Manage Discord pairings, allowlists, and DM or group policies through a local JSON configuration.

Dev & Engineering ✓ Anthropic · Official

CLAUDE.md Improver

Audit and precisely improve CLAUDE.md files across a repository.

Dev & Engineering ✓ Anthropic · Official

Claude Code Hook Development

Design, configure, validate, and debug event-driven hooks for Claude Code plugins.

Dev & Engineering ✓ Anthropic · Official

Skill Creator

Create, evaluate, and iteratively improve Agent Skills.

Dev & Engineering ✓ Anthropic · Official

MCP Integration for Claude Plugins

Configure MCP servers in Claude Code plugins to connect external services and expose their tools.

Dev & Engineering ✓ Anthropic · Official

Claude Code Plugin Skill Development

A practical guide to designing, writing, organizing, validating, and testing skills for Claude Code plugins.

Dev & Engineering ✓ Anthropic · Official

Claude Automation Advisor

Analyze a codebase and identify the most useful Claude Code automations for the project.

Dev & Engineering ✓ Anthropic · Official

Math Olympiad Adversarial Solver

Solve and stress-test IMO, Putnam, USAMO, and AIME problems with adversarial proof verification.

Dev & Engineering ✓ Anthropic · Official

Claude Code Plugin Blueprint

A practical guide to structuring plugins, configuring manifests, and organizing Claude Code components.

Dev & Engineering ✓ Anthropic · Official

Project Plugin Settings Pattern

Store and read configurable Claude Code plugin settings in project-local Markdown files.

Automation & Ops ✓ Anthropic · Official

M5Stack Onboarding

Detect, flash, and provision M5Stack ESP32 boards with UIFlow firmware and MicroPython apps.

Related skills