solo-memory-audit

Solid

Use when "audit memory", "check CLAUDE.md", "memory map", "rules audit", "context budget", "what loads in my session", or need to optimize agent context loading.

AI & Automation 18 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /memory-audit Audit Claude Code memory hierarchy for a project. Shows what files load at session start, total context budget, and optimization hints. ## Context Claude Code loads memory files at session start in this order: 1. Managed policy (`/Library/Application Support/ClaudeCode/CLAUDE.md`) 2. User memory (`~/.claude/CLAUDE.md`) 3. User rules (`~/.claude/rules/*.md`) 4. Auto-memory (`~/.claude/projects/{key}/memory/MEMORY.md`, first 200 lines) 5. Project hierarchy (walk from `/` to CWD: `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules/*.md`) 6. Local overrides (`CLAUDE.local.md` at each level) Rules with `paths:` frontmatter are conditional — loaded only when working on matching files. Rules without `paths:` always load and consume context budget. Target: keep startup context under 40k chars. Large CLAUDE.md files should extract domain-specific sections into conditional `.claude/rules/*.md` files. ## Steps 1. **Determine target.** Parse `$ARGUMENTS`: - Empty or `.` -> use CWD - Path -> use that path - `all` -> scan CWD subdirectories that have CLAUDE.md 2. **Run memory_map.py.** Execute: ```bash uv run python ${CLAUDE_PLUGIN_ROOT}/scripts/memory_map.py <path> --audit ``` If `all` argument, add `--all-projects` flag instead of path. If `uv` is not available, fall back to: ```bash python ${CLAUDE_PLUGIN_ROOT}/scripts/memory_map.py <path> --audit --plain ``` 3. **Analyze the output.** Read the tree display and audit hints table. K...

Details

Author
fortunto2
Repository
fortunto2/solo-factory
Created
7 months ago
Last Updated
today
Language
Shell
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category