/live-rules:manage-rulesfrom live-rules
Inspect, audit, enable, or disable project live-rules. Use to list rules, check active instructions, explain an injected rule, promote a personal rule, or audit the project's rule files.
Ships in live-rules. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read, audit, and toggle live rules without changing what a rule says. For authoring or editing rule
content, use the add-rule skill. The full format is documented in
../add-rule/references/rule-format.md.
Rules are native Claude Code rule files: one rule per Markdown file in .claude/rules/. Claude Code
reads that directory itself, so the files are the whole store. There is no manifest, no index, and no
sync step, and nothing to recover: inspect the files directly and compute from them.
.claude/rules/ and read every top-level *.md file. Each one should contain exactly one
rule.<name>.local.md is a rule like any other, personal to this clone. Note it as local storage and
check that .gitignore carries a .claude/rules/*.local.md line; without it, a personal rule is
being committed.<name>.md.off is a disabled rule. Report it as disabled, not as missing..claude/rules/ loads natively but gets no live-rules timing, so
it is never re-grounded mid-session. Report it and suggest moving it to the top level..claude/rules/ is absent or holds no *.md files, check for a retired store:
.claude/live-rules/ or a legacy .claude/live-rules.md. If either exists, report unmigrated
storage and point at the migration command below. If neither exists, report that no rules are
configured and point the user to add-rule.~/.claude/rules/ holds the user's own cross-project rules. Claude Code reads it in every project,
but live-rules never reads or writes it, so it is outside what this skill audits. Mention it only to
explain where a personal rule belongs.
node "${CLAUDE_PLUGIN_ROOT}/scripts/migrate-rules.js" --project "${CLAUDE_PROJECT_DIR}"
Run --dry-run first and show the user what it would do. It moves the rule files into
.claude/rules/, rewrites globs:/dirs: to paths:, splits a legacy single file into per-rule
files, adds the .gitignore line to an existing .gitignore, and refuses on a filename collision
having written nothing.
Inspect every top-level *.md file in .claude/rules/. Each must contain exactly one frontmatter
block and one body. Derive scope, priority, and cadence from the frontmatter the same way the hooks
do; there is no second copy of that metadata to compare against. A file with no complete frontmatter
block is one global rule whose body is the whole file.
Present a compact table. Use the description as the rule name, falling back to the filename:
| Rule | File | Scope | Fires when | Priority | State |
|---|---|---|---|---|---|
| House style | house-style.md | global | loaded natively at session start; re-said when changed | 0 | on |
| React component conventions | react-components.md | paths | loaded natively on an edit to **/*.tsx; re-said when changed | 0 | on |
| API layer rules | api-layer.md | paths (directory) | editing under packages/api, or a matching cwd | 0 | on |
| Deploy checklist | deploy-checklist.md | prompt | prompt matches deploy | 0 | on |
| My local endpoints | local-endpoints.local.md | global, local | loaded natively; not committed | 0 | on |
| Strict lint gate | strict-lint.md.off | paths | nothing; disabled | 0 | off |
Derive scope the same way the hooks do: no paths and no prompt means global; otherwise list
whichever are present. A rule with only include: is still global. A paths: value of
.live-rules-never-match/** is the keyword sentinel, so report that rule's scope as prompt-only, not
as a path rule. Note any include payload and whether its target exists.
Report concrete, rule-specific issues and the exact fix:
prompt: rule with no never-match sentinel. A keyword rule whose paths: is absent is loaded
globally by Claude Code at every session start, so its keyword trigger means nothing. It needs
paths: [".live-rules-never-match/**"].globs: or dirs: still fold into paths: for one release with a stderr
notice, but Claude Code ignores them. Rewrite them to paths: or run the migration.enabled: key in frontmatter. It does nothing: Claude Code ignores unknown keys and loads the
rule regardless. Disabling is a rename to .md.off.*.local.md file with no matching .gitignore line is a
committed rule wearing a personal name.~/.claude/rules/, never in the repo.---, or no body.--- inside a body, which the parser reads as the next rule's fence. Suggest *** or
___ instead.paths: patterns that match nothing in the repo. Compile the pattern and test it against tracked
files before reporting it./.../flags.include: target that does not exist. A rule whose includes are all missing is dropped and
injects nothing.reground: true on more than a couple of rules. Each one costs context every twenty prompts..claude/live-rules/ directory or a legacy .claude/live-rules.md file.Summarize findings as a short list of "rule: problem, suggested fix". Only change content if the user
asks; add-rule is the right tool for content rewrites.
Disabling is a rename, not a frontmatter edit:
disable: .claude/rules/<name>.md -> .claude/rules/<name>.md.off
enable: .claude/rules/<name>.md.off -> .claude/rules/<name>.md
Both Claude Code and live-rules discover only *.md, so the rename hides the rule from both at once
and keeps the content for later. Never write enabled: false into frontmatter: Claude Code ignores
unknown keys and would load the rule anyway. Leave other files untouched, and confirm which rule you
renamed and its new state. A disable takes effect on the next prompt or relevant edit.
Promotion is also a rename:
.claude/rules/<name>.local.md -> .claude/rules/<name>.md
The content does not change; the file stops being matched by the .claude/rules/*.local.md
.gitignore line and becomes a committed project rule. Before renaming, re-read the body and confirm
it is actually true of the repo for anyone who clones it, not just for this user. Tell the user the
file now needs committing.
Given a situation such as "for a normal prompt", "when I edit src/app/page.tsx", or "when I say
'deploy'", walk the rules and report which ones apply and who delivers them. Claude Code loads the rule
files itself, so most of the answer is native loading and live-rules only adds timing:
paths, no prompt) are loaded natively at session start, in the main session
and in subagents. live-rules records their hashes at SessionStart and emits nothing.reground: true adds a periodic re-say, once every twenty user prompts.A rule carrying include: fires only if at least one included file exists; if all are missing it is
dropped. So "why did Claude follow this?" usually answers to native loading, and "why didn't it say it
again?" answers to an unchanged content hash.
add-rule.enabled: into a rule file..claude/rules/; there is nothing to resync.paths: pattern against the repo file list and inspect include
targets.CLAUDE.md or CLAUDE.local.md.*.local.md files are not committed..claude/rules/ was listed and every top-level *.md file read*.local.md, *.md.off, and subdirectory rules are each reported for what they are.claude/live-rules/ store or legacy file is reported with the migration commandpaths: patterns against actual filesCLAUDE.md is untouchedWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub poindexter12/loadout --plugin live-rules