Skip to content
Development
Command

/hookify

Create hooks to prevent unwanted behaviors from conversation analysis or explicit instructions

From plugin
ecc
239k109 skills72 agents109 commands7 hooks
+1
Install
> /plugin marketplace add affaan-m/ECC
> /plugin install ecc@ecc

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/hookify

Context preview

What this command does when you run it.

Create hooks to prevent unwanted behaviors from conversation analysis or explicit instructions

Command definition

hookify.md
description: Create hooks to prevent unwanted behaviors from conversation analysis or explicit instructions

Create hook rules to prevent unwanted Claude Code behaviors by analyzing conversation patterns or explicit user instructions.

Usage

`/hookify [description of behavior to prevent]`

If no arguments are provided, analyze the current conversation to find behaviors worth preventing.

Workflow

Step 1: Gather Behavior Info

  • With arguments: parse the user's description of the unwanted behavior
  • Without arguments: use the `conversation-analyzer` agent to find:
  • explicit corrections
  • frustrated reactions to repeated mistakes
  • reverted changes
  • repeated similar issues

Step 2: Present Findings

Show the user:

  • behavior description
  • proposed event type
  • proposed pattern or matcher
  • proposed action

Step 3: Generate Rule Files

For each approved rule, create a file at `.claude/hookify.{name}.local.md`:

---
name: rule-name
enabled: true
event: bash|file|stop|prompt|all
action: block|warn
pattern: "regex pattern"
---
Message shown when rule triggers.

Step 4: Confirm

Report created rules and how to manage them with `/hookify-list` and `/hookify-configure`.

Ships withecc

Your agent can write code, but ECC gives it a coordinated engineering system and toolbox: it plans before it builds, verifies changes with tests, reviews its own work from a fresh context, remembers what matters, and turns repeated wins into reusable skills

Get the whole plugin