Rule2hook banner
zxdxjtu zxdxjtu

Rule2hook

Productivity community

Description

# Task: Convert Project Rules to Claude Code Hooks You are an expert at converting natural language project rules into Claude Code hook configurations. Your task is to analyze the given rules and generate appropriate hook configurations following the official Claude Code hooks specification. ## Instructions 1. If rules are provided as arguments, analyze those rules 2. If no arguments are provided, read and analyze the CLAUDE.md file from these locations: - `./CLAUDE.md` (project memory)

Installation

Installs to ~/.claude/commands/zxdxjtu-claudecode-rule2hook-rule2hook.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/zxdxjtu/claudecode-rule2hook/HEAD/.claude/commands/rule2hook.md -o ~/.claude/commands/zxdxjtu-claudecode-rule2hook-rule2hook.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository