writing-hookify-rules

Define and enforce custom Hookify rules using regex pattern matching.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/nerinanarine/claudecode-devcontainer --skill writing-hookify-rules-nerinanarine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-hookify-rules
Source: https://github.com/nerinanarine/claudecode-devcontainer/tree/main/.claude/plugins/marketplaces/claude-plugins-official/plugins/hookify/skills/writing-rules
Command: npx skills add https://github.com/nerinanarine/claudecode-devcontainer --skill writing-hookify-rules-nerinanarine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps users write, configure, and manage Hookify rules, ensuring code quality and safety.

Core Features & Use Cases

  • Hookify Rule Creation: Design custom rules for syntax, patterns, and actions to monitor and manage code behavior.
  • Event Triggering: Set rules to trigger on specific events like command execution, file editing, or prompt submission.
  • Pattern Matching: Use regex patterns to detect potential issues and apply warnings or blocking actions.
  • Conditional Rules: Define rules with multiple conditions for more nuanced control.
  • Custom Messages: Create messages that are informative and actionable, enhancing developer experience.

Quick Start

Define a new Hookify rule to warn about unsafe 'rm' commands with writing-hookify-rules define rm-dangerous rule 'rm -rf' action 'warn'.

Frequently Asked Questions about writing-hookify-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom code safety rules to block dangerous bash commands?

Create custom code safety rules by defining regex patterns and conditional logic to match dangerous bash commands, configuring the system to either warn or block execution and prevent security vulnerabilities.

Can I use regex pattern matching to enforce code quality on file editing events?

Yes, regex pattern matching can enforce code quality by triggering rules on specific file editing events, detecting potential syntax issues or unsafe patterns, and applying warnings or blocking actions during file operations.

How do I configure conditional rules for nuanced control over command execution?

Configure conditional rules by defining multiple conditions within a single rule, allowing nuanced control over command execution events by evaluating combined regex patterns before applying warnings or blocking actions.

What is the best way to warn developers about unsafe rm commands in a coding environment?

The best way to warn developers about unsafe rm commands is defining a custom rule targeting 'rm -rf' patterns, setting the action to 'warn', and displaying informative messages to enhance the developer experience.

Does Hookify support triggering custom rules on prompt submission events?

Yes, Hookify supports triggering custom rules on prompt submission events, alongside command execution and file editing, applying regex pattern matching and conditional logic to enforce code safety across various code events.

How do I add custom warning messages when predefined code safety conditions are met?

Add custom warning messages by defining informative and actionable text within your rules, ensuring developers receive clear feedback when regex pattern matching detects predefined conditions during code events.