start-rulebook
Use when the user wants rules for the Rulebook — a first set for a repo that has none, or rules from what their team actually does. "/memhub:start-rulebook", "set up a rulebook for this repo", "what rules should we start with", "give us the default rules", "bootstrap rules for a new client", "mine our sessions for rules", "turn our CLAUDE.md into rules", "what should be in the rulebook", "backtest this rule", "did the new rules reduce friction" — or right after a Claude Code /insights run. Asks first which the person wants: STARTER rules (a tested catalog of universal coding-agent rules, filled in from a scan of this repo — seconds) and/or rules MINED from their own CLAUDE.md and the last 30 days of local Claude Code / Codex / Cursor sessions (minutes — it reads their sessions). Every candidate is replayed through the real hook and says why it exists, what it cost, and what changes with it on. Hook rules first, session-start notes last. Files survivors as proposed; never activates anything.
Pinned to revision 38fcebbb5125, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/skills/start-rulebook/scripts/starter_rulebook.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/skills/start-rulebook/scripts/mine_sessions.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_verify.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_conflicts.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/save_artifact.py" *)
- Bash(git rev-parse --show-toplevel)
- Bash(git rev-parse --short HEAD)
- Edit(./skills.json)
- Edit(./mine-out/**)
- Edit(//tmp/start-rulebook/**)
- Edit(//var/folders/**/start-rulebook/**)
- Read
- Agent
- AskUserQuestion
- mcp__plugin_memhub_memhub__list_rules
- mcp__plugin_memhub_memhub__create_rule
- mcp__plugin_memhub_memhub__list_rulebooks
- mcp__plugin_memhub_memhub__list_skills
- mcp__plugin_memhub_memhub__create_skill
- mcp__plugin_memhub-staging_memhub__list_rules
- mcp__plugin_memhub-staging_memhub__create_rule
- mcp__plugin_memhub-staging_memhub__list_rulebooks
- mcp__plugin_memhub-staging_memhub__list_skills
- mcp__plugin_memhub-staging_memhub__create_skill
Files
- skills/start-rulebook/SKILL.md
- skills/start-rulebook/catalog.json
- skills/start-rulebook/scripts/mine_sessions.py
- skills/start-rulebook/scripts/starter_rulebook.py
Every link opens the file at its source, pinned to the revision this page describes.