anthropics avatar

Writing Hookify Rules

This teaches Claude how to write Hookify rules, which are markdown files with YAML frontmatter that let you define patterns to watch for during development and trigger messages when they match. The rules live in `.claude/hookify.{rule-name}.local.md` files and can hook into different events like bash commands, file changes, or prompts using regex patterns. It's useful if you want Claude to automatically catch specific coding patterns or workflows without manually reminding it each time. The skill comes from Anthropic's official claude-code repo and has passed multiple security audits. Think of it as setting up custom linting rules, but for AI behavior instead of code style.

GitHub stars
141.9K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

Files

This teaches Claude how to write Hookify rules, which are markdown files with YAML frontmatter that let you define patterns to watch for during development and trigger messages when they match. The rules live in `.claude/hookify.{rule-name}.local.md` files and can hook into different events like bash commands, file changes, or prompts using regex patterns. It's useful if you want Claude to automatically catch specific coding patterns or workflows without manually reminding it each time. The skill comes from Anthropic's official claude-code repo and has passed multiple security audits. Think of it as setting up custom linting rules, but for AI behavior instead of code style.

Browse the repository on GitHub

Sponsors

Details

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

More from anthropics/claude-code

All 10
1ar9av avatarpaper-writing-benchar9av/paperorchestraReverse-engineer raw materials (Sparse idea, Dense idea, experimental log) from an existing AI research paper to build a benchmark case for evaluating paper-wri0skills.sh installs
2ar9av avatarsection-writing-agentar9av/paperorchestraStep 4 of the PaperOrchestra pipeline (arXiv:2604.05018). ONE single multimodal LLM call that drafts the remaining paper sections (Abstract, Methodology, Experi0skills.sh installs
3cherryhq avatarcherry-assistant-guidecherryhq/cherry-studioCherry Studio 产品知识库、源码路径索引、故障排查和页面导航。当用户询问 Cherry Studio 的功能、配置、报错、使用方法时触发。也适用于用户提到 provider、模型、知识库、Agent、MCP、OpenClaw、PDF、快捷短语等关键词的场景。0skills.sh installs
4davila7 avatarWriting Hookify Rulesdavila7/claude-code-templatesThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on ho0skills.sh installs
5jimliu avatarinterview-writingjimliu/illustrated-agent-skills将播客/视频访谈的分析素材转化为访谈实录整理文章。按访谈原始0skills.sh installs
6k-dense-ai avatarwriting-science-skillsk-dense-ai/science-superpowersIf you're building skills for Claude, this is your lab notebook discipline.0skills.sh installs