Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hookify

Create custom behavioral rules through markdown configuration files.

Overview

Hookify provides a framework for defining behavioral rules that prevent unwanted actions through pattern matching. Rules are defined in markdown files and can be enabled, disabled, or customized per project.

Installation

/plugin install hookify@claude-night-market

Skills

SkillDescriptionWhen to Use
writing-rulesGuide for authoring behavioral rulesCreating new rules
rule-catalogPre-built behavioral rule templatesInstalling common rules

Commands

CommandDescription
/hookifyCreate behavioral rules to prevent unwanted actions
/hookify:installInstall hookify rule from catalog
/hookify:listList all hookify rules with status
/hookify:configureInteractive rule enable/disable interface
/hookify:helpDisplay hookify help and documentation

Usage Examples

Install a Rule

# Install from catalog
/hookify:install no-force-push

# List installed rules
/hookify:list --status

Create Custom Rule

# Create a new rule interactively
/hookify

# Configure existing rule
/hookify:configure no-force-push --disable

Rule Structure

Rules are markdown files with frontmatter:

---
name: no-force-push
trigger: PreToolUse
matcher: Bash
pattern: "git push.*--force"
action: block
message: "Force push blocked. Use --force-with-lease instead."
---

# No Force Push Rule

Prevents accidental force pushes that could overwrite remote history.

Integration

Hookify integrates with:

  • abstract: Rule validation and testing
  • imbue: Scope guard integration
  • sanctum: Git workflow protection