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
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.mdfiles, run by ECC's built-in Node runtime
Install
$ npx -y skills add affaan-m/ecc --skill hookify-rules -yInstalls 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- Evm Token Decimals10.4K
- Gateguard10.1K
- Frontend Design Direction9.9K
- Fastapi Patterns9.4K
- Hermes Imports9.3K
- Blender Motion State Inspection9.3K
- Vite Patterns9.2K
- Agent Architecture Audit9.1K
- Error Handling9.1K
- Windows Desktop E2e9.1K
- Redis Patterns9.1K
- Mysql Patterns9.1K
- Production Audit9K
- Make Interfaces Feel Better9K
- Motion Patterns9K
- Motion Foundations9K
- Motion Advanced8.9K
- Ecc Guide8.9K
- Mle Workflow8.9K
- Django Celery8.8K
- Homelab Network Setup8.8K
- Ios Icon Gen8.8K
- Agentic Os8.8K
- Skill Stocktake8.8K
Similar to Hookify Rules
More Agent Workflow & Planningwriting-hookify-rulesSkillanthropics/claude-plugins-official8.1K installsGuide to writing hookify rule files, covering frontmatter fields, event types, and regex pattern tips.
hookifyPluginathola/claude-night-market356 starsBehavioral rules engine: create safety hooks through markdown configuration with pattern matching and zero-code rule authoring
plankton-code-qualitySkillaffaan-m/ecc11.9K installsWrite-time formatting, linting, and Claude-powered fixes for every file edit, enforced through hooks.
llm-gateSkillrohitg00/pro-workflow167 installsPrompt-hook quality gates that use a small LLM to block risky commits, shell commands, and file writes.
agent-hooksSkillstarchild-ai-agent/official-skills2.2K installsManage shell hooks that block, rewrite, or warn on agent actions at fixed lifecycle points.
safety-guardSkillaffaan-m/ecc11K installsAdvisory guardrails that stop agents from running destructive commands or editing outside a chosen directory.