When to choose it
Expressing recurring workflow guardrails as readable rules.
Choose it if: A repeatable action can be described by event and regex conditions, with a warning or blocking rule.
Look elsewhere if: You need a complete security boundary or general shell-language analysis; pattern matching cannot provide either.
What the source describes
- Markdown rules with YAML frontmatter
- Pattern matching for actions and file changes
- Commands to list and configure rules
Requirements
- Claude Code with plugin and hooks support
- python3 available to hook processes; reviewed loader uses Python 3.9+ annotation syntax (README's 3.7+ claim is disputed)
- No external Python dependencies declared by the author
Components in this package
- Writing Rules — A Hookify skill for defining readable rules with event and pattern conditions.
Install for this repository only
- Check the hook runtime. The hook manifest launches python3 for PreToolUse, PostToolUse, Stop and UserPromptSubmit. The README claims Python 3.7+ and standard-library-only dependencies, but the reviewed loader evaluates a built-in tuple[...] annotation without postponed annotations, which requires Python 3.9+ language support. This is a source-derived requirement, not a tested compatibility claim.Shell • runtime inventory
python3 --version - Load the plugin before adding rules. Install hookify with the existing local-scope command and follow its activation/reload message. Once its hooks are loaded, each invocation reads rule files again; editing a rule is different from loading the plugin itself.
- Use the correct project location. Rules belong in .claude/hookify.*.local.md under the working project directory, not in the downloaded plugin directory. The reviewed loader requires frontmatter starting with --- and only loads enabled rules. Its parser supports a limited YAML-like format, not arbitrary YAML features.
- Start with a harmless warning. Review an original warning example at .claude/hookify.warn-release-marker.local.md before enabling it. Both conditions must match. The content field supports Write content and Edit new_string in the reviewed engine; the simple file pattern/new_text path does not read a Write call's content.Configuration example
--- name: warn-release-marker enabled: true event: file action: warn conditions: - field: file_path operator: regex_match pattern: \.[jt]sx?$ - field: content operator: contains pattern: CS_DEBUG_ONLY --- Review this CS_DEBUG_ONLY marker before shipping the change. - Choose the event and action deliberately. A matching warn rule supplies a message and allows the tool. A PreToolUse block can deny the pending tool; PostToolUse runs after success and cannot roll that action back. Inspect actual hook results on a scratch change rather than validating a rule with a destructive command.
- Make enablement and tool names explicit. The reviewed loader defaults an omitted enabled field to true. Use explicit enabled: false for a draft and enabled: true only after review; its limited parser recognizes true/false, while yes/no and 0/1 remain nonempty strings. tool_matcher uses exact case-sensitive names separated by |, or a standalone *. Edit|Write is supported; Edit.* is not a regular expression in this field. Conditions still all have to match.
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
The qualified name follows the plugin and command-file identity. The author README also uses /hookify. Replace the placeholder with one explicit behavior and review the generated rule before enabling it.
/hookify:hookify <behavior to warn about>Inspect configured files and enabled fields. This command reads rule files; its displayed list alone does not prove a hook matched or executed.
/hookify:listSelect existing rules to enable or disable. The command edits their enabled fields; review the changes.
/hookify:configureRead the packaged rule-format help and compare it with the actual loader/engine when examples disagree.
/hookify:helpAn original rule-review example that avoids destructive test commands. This request example is written by ClaudeStack; it is not a transcript of a tested session.
/hookify:hookify Propose a warning-only rule for CS_DEBUG_ONLY added through Write or Edit to .js, .jsx, .ts or .tsx files. Show the exact .claude/hookify.warn-release-marker.local.md contents and both conditions first. Do not create or enable the rule until I review it. Explain one harmless matching edit and one nonmatching edit to check later.The README ends with an MIT claim, while the actual bundled LICENSE is Apache-2.0. This entry retains the verified bundled-license identity and links both sources so the disagreement is visible.
The writing-rules directory declares the Skill name writing-hookify-rules, while some command prose still refers to writing-rules. A directory label is not proof of the current registered Skill name.
The November 5 pinned plugin manifest declares 0.1.1. This is author metadata, not an installed-version or compatibility test. The actual bundled LICENSE remains Apache-2.0 despite the README MIT claim.
What to expect
The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.
- An enabled rule whose selected fields all match contributes its message. The engine combines matching messages; blocking rules take priority over warnings.
- The regex_match operator compiles Python regex with IGNORECASE; contains and not_contains are literal substring checks. A pipe-separated not_contains string is not a list of alternative test commands.
- Warning hooks may run before and after the same successful tool call because both stages are registered. PostToolUse output is feedback about a completed action, not proof of prevention.
- Stop rules can read transcript text, but a mentioned command, or the lack of a matching string, does not establish an executed test's exit status or successful completion.
Self-check: After separately enabling the reviewed rule in your own permitted scratch workflow, compare a matching and nonmatching Write/Edit input with the observed hook message and resulting file. Inspect hook errors and distinguish warn from a PreToolUse denial. Keep real test results separate from transcript text.
Troubleshooting
A listed rule never triggers
Verify the current project's filename, enabled flag, leading frontmatter, selected event and actual tool-input fields. Listing a rule is not a runtime test, and a Bash-driven filesystem change is not an Edit or Write event.
Edit warns but Write does not
The reviewed new_text field falls back to new_string for Write/Edit, so it does not pick up a Write call's content. Use the explicit content condition as in this original example, and check the actual inputs for each tool.
The plugin fails on a Python version the README allows
The README's 3.7+ claim conflicts with an evaluated tuple[...] annotation in config_loader.py. Check the python3 visible to the hook process and the load error. Python 3.9+ syntax support is inferred from that source; no extension runtime was tested for this review.
A block message appears after a file already changed
Current official PostToolUse semantics apply after successful execution. The engine emits a permissionDecision for both stages, but that is the documented denial field for PreToolUse. Do not treat post-action feedback as an undo or prevention guarantee.
A Stop rule loops or claims to enforce tests
Inspect the condition and transcript assumption, then disable the offending rule if necessary. The supplied require-tests example uses literal not_contains with pipes; it does not parse test alternatives or verify command outcomes.
A complex pattern fails silently or takes too long
Reduce it to a narrow operator/field combination and inspect hook errors. The loader uses a limited parser, invalid regex returns no match, and handlers catch evaluation errors. A failed rule is not a complete security boundary.
A rule marked enabled: no still runs
Use enabled: false and inspect the saved file. The limited parser converts true/false to booleans, but yes/no and 0/1 remain nonempty strings, which pass the loader's truthiness check. Removing enabled also activates the default true value. This finding comes from source inspection; no rule was enabled or executed by ClaudeStack.
A tool_matcher regular expression never matches
Check the actual case-sensitive tool_name and use exact names separated by |, such as Edit|Write, or a standalone *. The engine splits on | and checks exact membership; it does not compile this field as regex and does not trim each alternative. Remove spaces around |. regex_match belongs to a condition operator, which is evaluated separately.
Disable or remove it
- Set enabled: false in the particular project's rule file or use /hookify:configure, then check the next permitted hook invocation. Retain the file if you need to inspect or revise it later.
- Disable or uninstall the hookify plugin in its active scope to stop loading its hooks. Manage project rule files separately; uninstalling the package does not revert earlier file changes.
Limitations & considerations
- Regex rules do not understand every shell command
- Guardrails are not a complete security boundary
- Rule enablement defaults to true; tool_matcher accepts exact case-sensitive names, pipe-separated alternatives or a standalone wildcard
Source & review record
Our description is based on public documentation and manifests available on 2026-11-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
- Reviewed definition source
- License of the reviewed source
- Official plugin installation documentation
Repository last pushed at the time of review: 2026-10-08T22:46:27Z. This date does not prove that the extension works with a particular Claude Code release.
Usage guide sources
Upstream revision checked for this guide: fa4eb54397ee2faccb6940512a19c017cb1337f3. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.
- Author README, documented requirements and license claim ↗
- Actual plugin identity ↗
- Registered stages and python3 commands ↗
- Actual file discovery, parser and annotation ↗
- Actual fields, operators and decision output ↗
- Rule-creation command ↗
- Rule-listing command ↗
- Enabled-field editing command ↗
- Skill frontmatter versus stale internal references ↗
- Author Stop example and its literal condition ↗
- Actual bundled Apache-2.0 license ↗
- Previous October 5 reviewed README ↗
- Official pre-action, post-action and Stop semantics ↗
- Official plugin scopes and activation ↗
- Python PEP 585: evaluated built-in generic annotations ↗
- November 5 plugin identity and version ↗
- November 5 boolean parsing and default enablement ↗
- November 5 exact tool matching and conditions ↗
- November 5 actual bundled license ↗