Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By atholav1.10.4MITIn 1 marketplace
Stops destructive git commands like force pushes to main and reset --hard before they run, with rules active right after install. A hook checks every prompt, tool call and stop event and can deny commands on its own; the safe-defaults bundle only warns.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Behavioral rules and safety hooks for Claude Code.
Hookify provides a suite of pre-configured rules that are active immediately upon installation. These rules protect critical git branches, prevent destructive operations, and enforce security and workflow standards without requiring manual configuration.
The following rules are enabled by default:
main/master
and destructive operations like reset --hard or clean -fd.
Warnings are issued for risky actions such as interactive rebases
or soft resets.scope-guard policies.Hookify uses a ConfigLoader to manage behavioral rules.
It automatically searches for user-defined rules in the .claude/ directory,
which can override any of the default bundled rules.
These configurations are processed by the RuleEngine to evaluate tool usage
against the active rule set during execution.
The hooks/rule_guard.py hook runs that evaluation on every Bash, Write,
Edit, prompt, and stop event and denies or warns as the rule says.
The hook runs under the operator's python3. When that interpreter
cannot import PyYAML, the loader reads rule frontmatter with a stdlib
parser that accepts plain and quoted scalars plus the
conditions: list, so block rules still block. A rule outside that
subset fails to load and is named in the hook's systemMessage.
Bundled rules resolve their locations relative to the plugin's installation
path to ensure portability across different environments.
claude install hookify@claude-night-market
Or from source:
git clone https://github.com/athola/claude-night-market
cd claude-night-market
claude install ./plugins/hookify
| Command | Description |
|---|---|
/hookify:from-hook | Convert Python SDK hooks to declarative hookify rules |
/hookify:install | Install a rule, category, or bundle (e.g. --bundle safe-defaults) |
/hookify:list | List installed and available rules |
/hookify:configure | Configure rule settings |
Per the inclusive-defaults policy,
hookify ships a curated safe-defaults bundle of warn-only rules. Block-action
rules are intentionally excluded so a default-on bundle install cannot interrupt
legitimate commands.
python3 plugins/hookify/scripts/install_rule.py --bundle safe-defaults
Contents (all action: warn):
documentation:require-slop-scan-for-docsgit:warn-large-commits, git:warn-risky-gitperformance:warn-large-file-opspython:warn-print-statementsworkflow:plan-before-large-dispatchAnalyze project context and suggest relevant rules:
python plugins/hookify/scripts/rule_suggester.py --project-dir .
Detects languages, frameworks, and tooling to recommend appropriate rules.
Skill(hookify:rule-catalog)Skill(hookify:writing-rules)Skill(abstract:hook-scope-guide) (requires abstract plugin)| Dependency | Purpose | Fallback |
|---|---|---|
| abstract plugin | hook-scope-guide skill for advanced hook patterns | Hookify works fully without it, minus the skill |
Hookify is fully functional without optional dependencies. The abstract plugin provides additional guidance for advanced hook development patterns.
Ways to leave this plugin better than you found it:
.claude/ would benefit
from a minimal template showing the override format/hookify:from-hook conversion could document edge
cases where Python hooks do not map cleanly to rulesSee STEWARDSHIP.md for the full stewardship principles guiding this project.
Inspired by the original hookify plugin by Daisy Hollman at Anthropic.
Enhanced for claude-night-market with:
__file__7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub athola/claude-night-market --plugin hookifyPlugins from other owners that cover similar ground