Skill

Writing Rules

A Hookify skill for defining readable rules with event and pattern conditions.

hooksrulesguardrails
View original source ↗

When to choose it

Writing a local warning or blocking rule.

Choose it if: You are writing a Hookify rule and need to choose its event, warning or blocking action, and match conditions.

Look elsewhere if: You cannot tolerate pattern-matching misses or false alarms; verify the actual rule behavior before relying on it.

What the source describes

  • YAML frontmatter and rule structure
  • Condition and pattern examples
  • Guidance for targeted rule behavior

Requirements

  • Install the containing Hookify package

This is a component of Hookify. Install the containing package once to get its components.

Install the containing plugin

Run the installation command in your shell after reviewing the source. Local scope enables the package for you in this repository. It does not enable it for every collaborator.

Shell • local install scope
claude plugin install hookify@claude-plugins-official --scope local

Use it after installation

Describe the action to match and whether the rule should warn or block it.

Installation and loading troubleshooting

Limitations & considerations

  • Pattern rules have false positives and false negatives
  • Review the actual event and action settings

Source & review record

Our description is based on the public source documentation and manifest available on 2026-10-05. The install syntax was checked against Claude Code’s documentation. No extension code was executed for this review.

More skills

Browse this type
Skill

Hook Development

Author lifecycle hooks with guidance on event selection, configuration and validation.

AnthropicAnthropic
Skill

Skill Development

Guidance on clear skill triggers, concise instructions and progressive disclosure.

AnthropicAnthropic
Skill

MCP Integration

Authoring guidance for connecting tool servers to a Claude Code plugin.

AnthropicAnthropic

Source review: October 5, 2026. Listings are documentation reviews, not runtime tests or security audits. Our editorial method