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
- Choose the repository. Run the install from the repository where you want local scope.
- Check marketplace availability. If the official marketplace is not registered, run claude plugin marketplace add anthropics/claude-plugins-official first.
- Load the package. After installation, start a new session or run /reload-plugins in an open session. Confirm the package and scope with claude plugin list.
- Prepare the authoring task. Hookify requires Python 3.7+ and uses the standard library.
- Authoring requirement 2. Choose an event, target fields, and warn/block action. Save .claude/hookify.<name>.local.md in your project.
- Authoring requirement 3. Rules use Python regex and enabled: true. With Hookify loaded, edits apply on the next tool use.
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.
claude plugin install hookify@claude-plugins-official --scope localHow to use it
Claude can select this skill when the request matches its description. To request it directly, use this name derived from current official naming rules and the reviewed metadata; it has not been runtime tested.
/hookify:writing-hookify-rulesUse the package workflow to describe behavior and choose rules. This is a package command, separate from the writing-hookify-rules Skill.
/hookify:hookifyProvide the event, workflow or server details you want this authoring Skill to work from. This request example is written by ClaudeStack; it is not a transcript of a tested session.
/hookify:hookify Warn before adding alert() calls to .ts or .tsx files. Keep the rule as a warning and restrict it to those file types.warn permits the operation. Advanced conditions combine with AND. Broad or narrow regex can produce unintended matches or misses.
Metadata uses writing-hookify-rules; command files use writing-rules. This upstream naming mismatch has not been runtime-tested.
What to expect
The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.
- A local Markdown rule with YAML matching conditions and a message for Claude.
- The /hookify:hookify command asks which behaviors to cover and whether to warn or block before writing the selected rule files.
Self-check: Use /hookify:list to inspect the saved rule and test a harmless matching example. Confirm warn versus block deliberately; regex rules can miss variants or match unintended text.
Troubleshooting
Rule or skill not found
check project-root .claude/hookify.*.local.md and enabled: true with /hookify:list. For direct skill invocation, current metadata resolves to /hookify:writing-hookify-rules; the older writing-rules reference in command files is inconsistent.
Wrong matches
check Python regex escaping and confirm each condition matches its selected field.
Disable or remove it
- In /skills, highlight the skill, press Space until off, then Esc to save the local visibility override.
- claude plugin disable hookify@claude-plugins-official --scope local (shell).
- claude plugin uninstall hookify@claude-plugins-official --scope local (shell).
- These commands target the local installation used by the catalog. Match --scope to your actual installation. Package disable affects its other components too.
- Disabling this authoring package does not delete the project’s rule files; manage each rule separately.
- For one rule, set enabled: false or use /hookify:configure. Permanently remove that rule by deleting its .local.md file.
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 public documentation and manifests available on 2026-10-05. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.
- Original source and documentation
- License of the reviewed source
- Official plugin installation documentation
Usage guide sources
Upstream revision checked for this guide: d182ca456ca09d31d139f7d3818d1d333b103cce. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.
- hookifyCommand ↗
- hookifyConfigure ↗
- hookifyManifest ↗
- Upstream README — hookify ↗
- Reviewed SKILL.md — hookify ↗
- marketplace ↗
- Current official documentation — Components ↗
- Current official documentation — Install ↗
- Current official documentation — PluginCli ↗
- Current official documentation — PluginTroubleshooting ↗
- Current official documentation — Skills ↗