Agent Shipped

Directory · Hooks

rule2hook

A Claude Code slash command that converts plain-English project rules, or rules in CLAUDE.md, into hook configurations.

★ 400 stars · last updated 2025-07-01 · Free, open source · View on GitHub

Best for

Install

git clone https://github.com/zxdxjtu/claudecode-rule2hook.git
mkdir -p ~/.claude/commands
cp claudecode-rule2hook/.claude/commands/rule2hook.md ~/.claude/commands/

Our take

It is a single markdown slash command with no dependencies, so the hook generation is done by Claude itself rather than deterministic code. The README says hooks are saved to ~/.claude/hooks.json, which reflects an early hooks format; current Claude Code reads hooks from settings.json, so generated output may need checking. Last push was July 2025 and it uses the older /project: command prefix.

Similar hooks

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.