davila7 avatar

Writing Hookify Rules

This teaches Claude Code how to write hookify rules, which are markdown files with YAML frontmatter that let you define patterns to watch for during development and trigger custom messages when they match. The rules live in `.claude/hookify.{rule-name}.local.md` files and can fire on different events like bash commands, file changes, or prompts. It's useful if you want Claude to remind you about team conventions, warn about dangerous operations, or enforce project-specific patterns without hardcoding checks everywhere. The skill covers the basic structure with regex patterns and event types, though the source doesn't show many real-world examples of rules in action.

GitHub stars
30.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill 'Writing Hookify Rules' --agent claude-code

Installs into .claude/skills of the current project.

Files

This teaches Claude Code how to write hookify rules, which are markdown files with YAML frontmatter that let you define patterns to watch for during development and trigger custom messages when they match. The rules live in `.claude/hookify.{rule-name}.local.md` files and can fire on different events like bash commands, file changes, or prompts. It's useful if you want Claude to remind you about team conventions, warn about dangerous operations, or enforce project-specific patterns without hardcoding checks everywhere. The skill covers the basic structure with regex patterns and event types, though the source doesn't show many real-world examples of rules in action.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Documentation
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1jimliu avatarinterview-writingjimliu/illustrated-agent-skills将播客/视频访谈的分析素材转化为访谈实录整理文章。按访谈原始0skills.sh installs
2k-dense-ai avatarwriting-science-skillsk-dense-ai/science-superpowersIf you're building skills for Claude, this is your lab notebook discipline.0skills.sh installs
3mikotoIO avatarlearnmikotoIO/mikotoCreates a new skill or updates an existing skill to capture new knowledge. Use when you want Claude to remember patterns, workflows, or project-specific guidanc0skills.sh installs
4open-gitagent avatarwiki-lintopen-gitagent/opengapHealth-check the wiki for contradictions, stale claims, orphan pages, missing cross-references, and knowledge gaps. Use periodically or when the user says 'lint0skills.sh installs
5open-gitagent avatarwiki-queryopen-gitagent/opengapQuery the wiki to answer questions. Searches wiki pages, synthesizes answers with citations, and optionally files valuable answers back as new wiki pages. Use w0skills.sh installs
6openraiser avatarnanoresearch-writingopenraiser/nanoresearchDraft a LaTeX research paper from all previous stage outputs0skills.sh installs