Writing Hookify Rules

Create Hookify rules with YAML frontmatter to monitor Bash commands, file edits, prompts, and stop events.

1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/dmedina-dev/dev-forge --skill writing-hookify-rules-dmedina-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Writing Hookify Rules
Source: https://github.com/dmedina-dev/dev-forge/tree/main/plugins/forge-hookify/skills/writing-rules
Command: npx skills add https://github.com/dmedina-dev/dev-forge --skill writing-hookify-rules-dmedina-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Users need clear guidance to author Hookify rule files that monitor specific patterns in commands, code edits, prompts, or workflow stops, and to do so without manually searching documentation.

Core Features & Use Cases

  • Define rule syntax with required YAML frontmatter fields such as name, enabled, event, and pattern or conditions.
  • Support basic regex patterns for single‑condition rules and advanced multi‑condition blocks for complex scenarios.
  • Apply rules to Bash commands, file edits, stop events, and user prompts to enforce safety checks, coding standards, or workflow requirements.
  • Example use cases include warning about dangerous rm -rf commands, blocking console.log statements in production code, and reminding developers to run tests before stopping a session.

Quick Start

Ask the assistant to create a Hookify rule for the specific pattern you want to monitor.

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 rules to monitor Bash commands and file edits?

To create rules for monitoring Bash commands and file edits, you define YAML frontmatter with name, enabled, event, and pattern fields in local Hookify markdown files to enforce safety checks and workflow requirements.

What is a Hookify rule file and when do I need one?

A Hookify rule file is a local markdown configuration that monitors specific patterns in commands, code edits, prompts, or workflow stops. You need one to enforce coding standards, perform safety checks, or trigger workflow reminders.

Can I use regex patterns to block dangerous Bash commands like rm -rf?

Yes, you can use basic regex patterns in the YAML frontmatter to define single-condition rules, such as warning developers about dangerous Bash commands like rm -rf before they execute.

How do I define multiple conditions for complex workflow enforcement?

For complex scenarios requiring workflow enforcement, you define advanced multi-condition blocks in the YAML frontmatter instead of basic regex, allowing you to evaluate multiple criteria across prompt inputs and stop events.

Do I need to manually search documentation to write Hookify rules?

No, you do not need to manually search documentation to write Hookify rules. You can ask the assistant to instantly create and manage rule files for the specific patterns you want to monitor.