create-rule
Use when the user wants to create an engineering rule for the Rulebook (e.g. "/memhub:create-rule", "add a rule that we never force-push", "make a rule for this mistake", "make it actually stop me"). Pins a when-X-then-Y sentence, drafts a deterministic check, and files it for review through the memhub create_rule tool — a rule that advises and a rule that stops the command are filed the same way, and a reviewer turns either one on.
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/mine_sessions.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_verify.py" *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_hook.py" book-path *)
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_paths.py")
- Bash(python3 "${CLAUDE_PLUGIN_ROOT}/scripts/rulebook_conflicts.py" *)
- Bash(git remote get-url origin)
- Write(//tmp/*.json)
- Edit(//tmp/*.json)
- Edit(//tmp/*/pretest-base/**)
- Edit(//var/folders/**/pretest-base/**)
- Read
- Task
- Agent
- AskUserQuestion
- mcp__plugin_memhub_memhub__list_rules
- mcp__plugin_memhub_memhub__create_rule
- mcp__plugin_memhub_memhub__list_rulebooks
- mcp__plugin_memhub-staging_memhub__list_rules
- mcp__plugin_memhub-staging_memhub__create_rule
- mcp__plugin_memhub-staging_memhub__list_rulebooks
Files
- skills/create-rule/SKILL.md
- skills/create-rule/references/gate-and-given.md
- skills/create-rule/references/harness.md
- skills/create-rule/references/labels.md
- skills/create-rule/references/live-test.md
- skills/create-rule/references/verify-recipes.md
Every link opens the file at its source, pinned to the revision this page describes.