Skip to content

live-rules

Atomic project rules in .claude/live-rules/rules/ with a generated manifest. Claude injects applicable rules at SessionStart, then only new or changed unseen rules as prompts and edits match; legacy single-file storage is for migration or explicit overrides.

Version: 2.10.5

  • add-rule: Create or edit a live-rules instruction in the project’s atomic rule set. Use to add a rule, coding guideline, guardrail, convention, or automatic reminder.
  • manage-rules: Inspect, audit, enable, or disable project live-rules. Use to list rules, check active instructions, explain an injected rule, or recover an atomic manifest.
  • SessionStart: node "${CLAUDE_PLUGIN_ROOT}/hooks/session-start-rules.js"
  • UserPromptSubmit: node "${CLAUDE_PLUGIN_ROOT}/hooks/inject-prompt-rules.js"
  • PreToolUse (Edit|Write|MultiEdit|NotebookEdit): node "${CLAUDE_PLUGIN_ROOT}/hooks/inject-edit-rules.js"
  • None

Source on GitHub