zxdxjtu

Rule2hook — Productivity skill for Claude Code

Productivity community

Task: Convert Project Rules to Claude Code Hooks.

How to install Rule2hook

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.

What Rule2hook does

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)

Alternatives in Productivity

  • Epic Decompose — Break an epic into task children without creating task branches 243.5k ★
  • Worktree Status Check — Verify the current worktree environment and show task details 23.4k ★
  • P7 — PUA P7 骨干模式 — 方案驱动执行 19.5k ★

Full documentation available on GitHub

View Source Repository