Skip to content
affaan-m avatar

Hookify Rules

Markdown-file rules with regex and conditions that warn or block agent events before risky actions run.

CCM score
77 of 100
skills.sh installs
10.4K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the rule file format: YAML frontmatter fields, event types (bash, file, stop, prompt, all), and optional multi-condition matching
  • Includes operators (regex_match, contains, equals, and more) and regex tips for writing patterns without common pitfalls
  • Enforces a 25 ms regex timeout and rejects nested quantifiers, with invalid or oversized local rules failing open
  • Designed for project-local guardrails stored as .claude/hookify.{name}.local.md files, run by ECC's built-in Node runtime

Install

$ npx -y skills add affaan-m/ecc --skill hookify-rules -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Writing Hookify Rules

Overview

ECC evaluates project-local Hookify rules with its built-in Node runtime. No separate Hookify plugin or Python installation is required when ECC hooks are enabled.

Hookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in .claude/hookify.{rule-name}.local.md files.

Rule File Format

Basic Structure

---
name: rule-identifier
enabled: true
event: bash|file|stop|prompt|all
pattern: regex-pattern-here
---

Message to show Claude when this rule triggers.
Can include markdown formatting, warnings, suggestions, etc.

Frontmatter Fields

Details

Repository
github.com/affaan-m/ecc
Categories
Agent Workflow & Planning, Security
First seen
Jul 14, 2026

Questions

What does the hookify-rules skill do?

It helps you create and configure hookify rules, which are markdown files with YAML frontmatter that match bash, file, prompt, or stop events by regex or conditions. Matching rules show warn or block messages to the agent, for example to block dangerous commands or .env edits.

How do I install hookify-rules?

Run npx -y skills add affaan-m/ecc --skill hookify-rules -y in your project. Once installed, the agent can write rules stored as .claude/hookify.{rule-name}.local.md files.

What does hookify-rules need to run?

No separate Hookify plugin or Python installation is required when ECC hooks are enabled, since ECC evaluates rules with its built-in Node runtime. Git-tracked local rules are disabled by default unless you set ECC_HOOKIFY_ALLOW_TRACKED=1 after reviewing them.

Where does hookify-rules stand in its category?

It sits in the Agent Workflow & Planning category on Claude Marketplaces, alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. It focuses on guardrails that check agent actions against patterns before or after they run.

More from affaan-m/ecc

All 257

Similar to Hookify Rules

More Agent Workflow & Planning