๐Ÿช
AI EngineeringTypeScript

Writing Hookify Rules

by LING71671

Writing Hookify Rules is an AI Engineering skill for Claude Code, published by LING71671 in Open-ClaudeCode.

945 stars1.2K forkson LING71671/Open-ClaudeCodeAdded 2026/08/21Repository updated 2026/07/22
ai-coding-assistantanthropicclaude-codedeveloper-toolsresearchreverse-engineeringsource-mapstypescript
Install in seconds
Install Writing Hookify Rules
Copy Writing Hookify Rules into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/LING71671/Open-ClaudeCode/tree/main/plugins/hookify/skills/writing-rules ~/.claude/skills/writing-rules

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/LING71671/Open-ClaudeCode.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
plugins/hookify/skills/writing-rules/SKILL.md in LING71671/Open-ClaudeCode
Installs to
~/.claude/skills/writing-rules
Collection
One of 15 skills cataloged from this repository
Category
AI Engineering โ€” 2451 skills

What Writing Hookify Rules does

Writing Hookify Rules explains how to create Hookify markdown rules with YAML frontmatter, patterns, conditions, and messages. Use it when setting up or editing rules that watch Claude Code events like bash, file, stop, or prompt.

Writing Hookify Rules is cataloged under AI Engineering on DirSkills. Writing Hookify Rules comes from a repository tagged ai-coding-assistant, anthropic, claude-code, developer-tools and research.

Documentation

README

Writing Hookify Rules

Overview

Hookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in .claude/hookify.{rule-name}.local.md files.

Rule File Format

Basic Structure

---
name: rule-identifier
enabled: true
event: bash|file|stop|prompt|all
pattern: regex-pattern-here
---

Message to show Claude when this rule triggers.
Can include markdown formatting, warnings, suggestions, etc.

Frontmatter Fields

name (required): Unique identifier for the rule

  • Use kebab-case: warn-dangerous-rm, block-console-log
  • Be descriptive and action-oriented
  • Start with verb: warn, prevent, block, require, check

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Writing Hookify Rules

  • What else does LING71671 publish alongside Writing Hookify Rules?

    Writing Hookify Rules is one of 15 skills that DirSkills catalogs from LING71671/Open-ClaudeCode, the repository it ships in. Its siblings there include Agent Development, Claude Opus 4.5 Migration and Command Development. Each one is a separate skill with its own page in this directory, installs the same way Writing Hookify Rules does, and is maintained by LING71671 in that same repository. The rest of the collection is listed on the LING71671/Open-ClaudeCode page.

  • How does Writing Hookify Rules compare to other AI Engineering skills?

    Writing Hookify Rules ranks #1443 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Writing Hookify Rules against them. Open each page to compare what they document and how they install.

More from LING71671/Open-ClaudeCode

Writing Hookify Rules is one of 15 skills cataloged on DirSkills from LING71671/Open-ClaudeCode.

See all 15 skills โ†’
๐Ÿค–
1w ago

Agent Development

Agent Development explains how to create Claude Code agents, including frontmatter, trigger descriptions, tools, colors, and system prompt structure. Use it when building or refining autonomous agents and subagents for plugins.
AI Engineering
9451.2K
๐Ÿ”„
1w ago

Claude Opus 4.5 Migration

Claude Opus 4.5 Migration updates prompts and code from Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. It changes model strings, removes unsupported beta headers, and can adjust prompts for known behavior differences.
AI Engineering
9451.2K
โŒจ๏ธ
1w ago

Command Development

Command Development shows how to create and organize Claude Code slash commands with Markdown, YAML frontmatter, arguments, and tool settings. Use it when defining reusable commands or adding interactive behavior and file references.
AI Engineering
9451.2K
๐Ÿ“
1w ago

Document Release

Document Release keeps README files, examples, settings, and related docs aligned with code changes. Use it after behavior, CLI flags, provider support, or plugin surfaces change.
Writing
9451.2K
๐ŸŽจ
1w ago

Frontend Design

Frontend Design guides the creation of distinctive, production-grade interfaces for components, pages, and applications. Use it when building web UIs that need a clear aesthetic direction and real working code.
Frontend
9451.2K
๐Ÿงช
1w ago

GStack QA Only

GStack QA Only produces read-only QA reports for an OPC desktop flow, CLI command, local URL, staging URL, or documented user journey. It tests behavior, captures evidence, and does not modify code.
Quality
9451.2K