/memory-tools:path-rules-advisorfrom memory-tools
Creates path-specific rule files in .claude/rules/. Analyzes project structure and generates scoped rules for file types or directories. Use when the user wants to add path-specific rules.
Ships in memory-tools. 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.
Read when SKILL.md points to them.
Analyze the project and CLAUDE.md to recommend and create path-specific rule files in .claude/rules/. Follow the mode determined by the user's message.
Does not create or overwrite global memory entries — use agentic-memory-management for that.
references/rule-modes.md — the full Mode A and Mode B stepsreferences/rule-file-format.md — the generated-file template, brace expansion, and notesreferences/write-verification.md — the diff-back, the frontmatter parse check, and the pre-write gate| The user's message | Mode | Read |
|---|---|---|
carries an argument (<glob-pattern> - <rule description>) | A | references/rule-modes.md, Mode A |
| carries no argument | B (analysis) | references/rule-modes.md, Mode B |
Read that reference for the mode you selected, and follow its steps in order. Emit
generated rule files in the shape defined by references/rule-file-format.md.
Neither mode may write anything until the user has confirmed. These two confirmations are the contract, and they hold whatever the reference says:
.claude/rules/ does not exist, say so and ask
"Should I create it?" Do not write any file until the user confirms..claude/rules/<filename>?" Wait for explicit
confirmation. An existing file at that path is a third stop: show the path and
ask whether to overwrite or pick a new filename.Each write site ends the same way:
Run this after every write, without exception, substituting the path just written for the placeholder:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/agentic-memory-management/scripts/verify_write.py" <absolute-path-to-file-just-written>
${CLAUDE_PLUGIN_ROOT} is replaced with the plugin's absolute install path
when this skill loads. The executable diff-back and the frontmatter parse check
live in references/write-verification.md — read and run it there, using this
exact command for every "verify" step it names.
The rule it enforces stays here: the check must show the resulting diff and
confirm the written file still parses with valid frontmatter and a non-empty
body. Rule files must always clear it — a rule file with no paths: frontmatter
or no bullets loads as dead weight in every future session.
If the check exits non-zero, STOP. Report the failure with the file path and
the printed reason, tell the user to restore from their backup
(git checkout -- <path> where the file is tracked), and do not attempt a second
write.
Run the same parse check on the input before any write. If the CLAUDE.md resolved in Mode B
Step 1, or an existing rule file being overwritten, opens with a --- block that is unterminated
or contains a non key/value line, REPORT rather than write.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shawn-sandy/agentics-kit --plugin memory-tools3 skills in this plugin
/agentic-memory-managementAudits and optimizes CLAUDE.md project memory files. Checks adherence to Claude Code best practices and produces actionable fixes. Use when the user asks to audit, optimize, or diagnose a CLAUDE.md./implementing-insightsImplements usage-insights report findings across local repos. Triages against config; implements open items, each with a live record. Use when the user asks to implement insights findings.2 plugins ship this exact skill · first indexed Oct 29, 2026