hookify
CommunityPrevent risky commands and unsafe edits
System Documentation
What problem does it solve?
Hookify provides lightweight, repository-local guardrails that detect risky CLI commands, unsafe file edits, and problematic prompts, and then warn or block those actions before they run. It reduces accidental destructive operations, leaked secrets, and unsafe changes by surfacing contextual messages and enforcement at the tool level.
Core Features & Use Cases
- Define rules as markdown files with YAML frontmatter to match events and patterns and present human-readable messages when rules trigger.
- Support for single-pattern rules and advanced multi-condition rules that match fields like command, file_path, new_text, and user_prompt using regex and substring operators.
- Use cases: block dangerous rm commands in CI, warn about console.log in TypeScript commits, require checks before stopping an agent, and prevent accidental edits to .env files.
Quick Start
Add a hookify rule that warns on dangerous rm commands by creating a .claude/hookify.dangerous-rm.local.md file with event set to bash, an appropriate regex pattern, and a clear remediation message.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hookify Download link: https://github.com/ForeverWorld/curdx-ralph/archive/main.zip#hookify Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.