
Hookify Rules
If you're using Claude to write code or run shell commands, this adds a pattern matching system that can warn you before you do something questionable. It watches bash commands, file edits, and prompts, then triggers custom rules you define in markdown files with regex patterns. The setup is straightforward: drop .md files in your .claude directory with YAML frontmatter specifying what to watch for (like rm -rf, API keys in .env files, or console.log statements) and what message to show. The action field lets you either warn or outright block operations. It's the kind of safety net that catches the dumb mistakes you make when you're moving fast, like chmod 777 or committing credentials.
- skills.sh installs
- 5.4K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill hookify-rules --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Connections Optimizer5.4K
- Swift Protocol Di Testing5.4K
- Energy Procurement5.4K
- Swift Actor Persistence5.4K
- Quarkus Security5.4K
- Social Graph Ranker5.4K
- Network Bgp Diagnostics5.4K
- Visa Doc Translate5.4K
- Flox Environments5.4K
- Unified Notifications Ops5.4K
- Project Flow Ops5.4K
- Social Publisher5.4K
- Hermes Imports5.4K
- Evm Token Decimals5.4K
- Perl Patterns5.4K
- Quarkus Tdd5.4K
- Quarkus Verification5.4K
- Ralphinho Rfc Pipeline5.4K
- Perl Testing5.4K
- Nanoclaw Repl5.4K
- Messages Ops5.4K
- Recsys Pipeline Architect5.4K
- Latency Critical Systems5.3K
- Fsharp Testing5.3K