/memory-hygiene:memory-hygienefrom memory-hygiene
Audit and clean up Claude Code's persistent memory system — MEMORY.md, memory files, lessons, and ADRs. Use this skill when: (1) the user asks to clean up, audit, or review their memory/lessons/ADRs, (2) MEMORY.md is approaching or exceeding the 200-line limit, (3) lesson files have grown large and may contain duplicates, (4) you notice ADR numbering conflicts, (5) memory files seem stale or contradicted by current code, or (6) the user says things like 'my memory is getting messy', 'clean up my lessons', 'deduplicate', 'review ADRs', 'memory audit'. Also proactively suggest running this after 10+ sessions on a project, or when MEMORY.md triggers a truncation warning.
Ships in memory-hygiene. 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; scripts run unread.
This skill audits Claude Code's persistent knowledge stores (axioms, MEMORY.md — both auto-memory and in-repo, memory topic files, lessons, phase templates, ADRs, and the project docs/ taxonomy) for structural problems that degrade future session quality. It produces a structured report, gets user approval, then executes fixes.
v3.5 adds mechanism-claim integrity (§1k). §1i catches a fabricated label; §1k catches a fabricated cause. On 2026-08-07 a memory recorded a PR that deleted 5,081 lines of four sessions' merged work and blamed "a branch cut before those merges and never rebased" — measured afterwards, the branch's parent WAS the newest commit on main and a rebase would have been a no-op. The memory was internally coherent, well written, about a real incident, and routed every reader to a check that PASSES. §1k flags incident memories that assert a cause with no way to re-derive it, catches the mechanism restated in description: and the MEMORY.md line (what recall matches on), and reports groups of memories about the same incident whose causes conflict.
v3.4 fixes the cross-plugin script lookup in §1i. The label_audit.py call reached for ~/.claude/skills/session-handoff/scripts/ only. On a plugin install that path does not exist — the script lives under ~/.claude/plugins/cache/<marketplace>/session-handoff/<version>/scripts/ — so the sub-check resolved to nothing, logged "not installed", and the audit still reported clean. §1i now resolves the script across all three install roots and reports a miss as a skipped check.
v3.3 adds label-table integrity audit (§1i) and project docs/ taxonomy audit (§1j). The 7-bucket taxonomy that session-handoff dispatches to is now defined here as source-of-truth — previously session-handoff referenced "memory-hygiene v3.1" for this but the definition lived nowhere. §1i catches fabricated code→label tables in lessons.md / feedback_*.md / reference_*.md that bypass the author-side gate session-handoff runs in its Phase 0.
v3.2 adds in-repo MEMORY.md detection (§1a2) — the A/B counterfactual harness (n=3, 2026-04-21) showed that in-repo MEMORY.md files (e.g., project-root MEMORY.md or docs/MEMORY.md) survive a CLAUDE_CONFIG_DIR clean env and drive measurable success on tasks that the ~/.claude/projects/*/memory/MEMORY.md auto-memory file cannot. v3.1's §1a scanned only the auto-memory MEMORY.md, making the in-repo counterpart invisible to memory hygiene. v3.2 scans both and reports them as separate tiers in the audit output (T1 auto-memory and T1-repo).
v3.1 added feedback lifecycle detection (§1c2) — classifying each feedback_*.md file as Incorporated / Pending / Dormant / Superseded based on whether its rule has been promoted to axioms/lessons/templates — and emits a feedback_incorporation_rate metric for downstream consumers like ecosystem-audit.
v3.0 added phase template management, three-category axiom classification (Universal/Role/Phase), capacity ceiling enforcement, agency-aware staleness detection, and path-scoped rule auditing. Backed by research from cognitive science (Cowan 2001), LLM research (Liu et al. 2024 TACL, EMNLP 2025, Chroma Context Rot 2025), KM theory (Markus 2001), and SRE practice (Google SRE post-mortem framework). Full sources in ~/Documents/memory_hygiene_guide.md.
Claude Code loads MEMORY.md and CLAUDE.md at the start of every conversation. Two failure modes degrade session quality:
This means bulk-loading large files (lessons.md, session archives) into context is worse than useless — it wastes tokens AND buries the important rules. The solution is a tiered architecture where only high-signal behavioral overrides occupy always-loaded context, and everything else is retrieved on demand via grep.
Read all persistent state files. Use parallel reads where possible.
Read the full auto-memory index at ~/.claude/projects/<project>/memory/MEMORY.md. Note total line count and whether it contains inline content (session logs, architecture sections, decision tables) that should live in topic files.
MEMORY.md (T1-repo) — NEW in v3.2Why this sub-check exists. The A/B counterfactual harness (2026-04-21, n=3) showed that on Task 2 (the-causal-project CausalPy regression), both clean and normal environments succeeded because the-causal-project repo has its own MEMORY.md at the project root with a prominent pointer to docs/findings/causalpy_v04_wrapper_investigation.md. This in-repo file survived the CLAUDE_CONFIG_DIR=/tmp/... clean env and carried the success. v3.1's §1a could not see it — it only knew about ~/.claude/projects/<project>/memory/MEMORY.md.
The in-repo MEMORY.md is a distinct tier because it lives with the code, is version-controlled, and is visible to every session that cds into the project (including clean-env and colleague-checkout sessions). The auto-memory MEMORY.md is user-local and disappears when ~/.claude/ is wiped.
What to scan. For the current project's working directory:
MEMORY.md (case-sensitive) under the project root.~/.claude/ (those are T1 auto-memory, not T1-repo), .git/, node_modules/, __pycache__/, cache/, .venv/, venv/.MEMORY.md, docs/MEMORY.md, subproject MEMORY.md all count).MEMORY.md).Checks (same structural rules as §1a):
[foo](docs/foo.md), verify docs/foo.md exists.MEMORY.md itself (it's an index, not a memory file).Classification tier in reports. Call it T1-repo to complement T1 auto-memory. Example report header:
### Critical (breaks functionality)
- T1 (auto-memory) MEMORY.md: N lines — OK / truncating
- T1-repo MEMORY.md at <relative path>: N lines — OK / truncating / missing index links
- N in-repo MEMORY.md files found (list paths)
If both tiers exist. Flag any rule that is duplicated verbatim between the auto-memory MEMORY.md and an in-repo MEMORY.md. The two serve different audiences (T1 is user-private; T1-repo is teammate-visible), but a verbatim copy usually means the user meant to keep it in one place and forgot to delete the other. Ask, don't auto-merge.
If neither exists. The auto-memory MEMORY.md is created by Claude Code; its absence is odd but not a hygiene failure. The in-repo MEMORY.md is optional — its absence is a missed opportunity but not a defect. Do not auto-create either.
Edge case — monorepo. A monorepo may legitimately have multiple in-repo MEMORY.md files (one per sub-project). Report all, scope each linked-file check to the containing sub-project.
Claude Code's memory should follow a tiered architecture. The key insight (backed by Liu et al. 2024 "Lost in the Middle") is that bulk-loading large files into context is counterproductive — information in the middle of long contexts is effectively ignored even when not truncated. Check that content lives at the right tier:
| Tier | What | Budget | Loaded when | Contains |
|---|---|---|---|---|
| T0: Axioms | axioms.md | 10-12 items (Cowan cap) | Every session start | Behavioral overrides: Universal + Role categories only |
| T0: Config | CLAUDE.md | ~70 lines, always loaded | Every session start | Workflow rules, retrieval strategy |
| T1: Index (auto-memory) | ~/.claude/projects/<project>/memory/MEMORY.md | ~40-80 lines (hard limit: 200 / 25KB) | Every session start (auto-injected) | One-line pointers to topic files in auto-memory |
| T1-repo: Index (in-repo) | <project>/MEMORY.md or <project>/docs/MEMORY.md (any in-repo MEMORY.md) | ~40-80 lines (hard limit: 200 / 25KB) | Every session that cds into project; survives CLAUDE_CONFIG_DIR clean env | One-line pointers to in-repo topic/findings/runbook files |
| T1.5: Phase rules | .claude/rules/phase-*.md | ~5 rules per file | Auto-loads when matching files are touched | Phase-specific rules with paths: YAML frontmatter |
| T2: Topic files | feedback_.md, reference_.md | ~50 lines each | Loaded on demand | Workflow reminders, key references |
| T3: Archives | lessons.md, sessions_archive.md, handoffs/ | Unlimited | grep only, never bulk-read | Full history, all lessons, session logs |
Global phase templates live at ~/.claude/templates/phase_*.md — reusable across projects. Copy into a project's .claude/rules/ with paths: frontmatter to auto-activate.
| Category | Definition | Stays in axioms.md? | Example |
|---|---|---|---|
| Universal | Applies regardless of project or phase | Yes — always | "Never fabricate data", "Bash PATH is stripped" |
| Role | Applies to all projects for this user's role | Yes — until role changes | "No jargon in client materials" (agency DS) |
| Phase | Only relevant during specific project phases | No — move to phase templates | "Current-vs-planned boundary" (data sourcing) |
When auditing axiom staleness, detect the user's work pattern from user_role.md:
Classify dormant axioms as:
~/.claude/templates/phase_*.md and project .claude/rules/CLAUDE.md retrieval strategy audit: Check that the session start checklist says:
axioms.md (not bulk-read lessons.md)MEMORY.md indexFlag if CLAUDE.md still says "read lessons.md" — that's the anti-pattern this tier system replaces.
Flag content at the wrong tier:
Check for the existence and correctness of phase-specific rules:
~/.claude/templates/phase_*.md. List available templates..claude/rules/phase-*.md (or .claude/rules/*.md with paths: frontmatter). For each:
paths: glob actually match files in the current project? (dead globs = unused rules)axioms.md, classify as Universal/Role/Phase. Flag Phase axioms for migration to templates.axioms.md. If >12, flag as over Cowan cap and identify merge/demotion candidates.Glob ~/.claude/projects/<current-project>/memory/*.md (excluding MEMORY.md and lessons.md). For each file, read the frontmatter (name, description, type). Check:
type field valid? (must be: user, feedback, project, reference)Memory files with type: feedback are meant to capture a rule or insight that should eventually be promoted (to axioms.md or lessons.md) or encoded into a phase template. Until that happens, they are loose notes competing for attention with already-promoted rules. This sub-check classifies every feedback_*.md file by where its rule currently lives.
For each feedback_*.md file in ~/.claude/projects/<project>/memory/:
**Rule:** section (per the file-format convention) or, if absent, take the first bolded sentence or the first sentence after the description: frontmatter.~/.claude/axioms.md~/.claude/lessons.md and ~/.claude/projects/<project>/memory/lessons.md~/.claude/templates/phase_*.md and the project's .claude/rules/*.md| Status | Criterion | Action |
|---|---|---|
| Incorporated | ≥ 1 identifier found verbatim in a promotion surface | Keep feedback file as provenance; OK |
| Pending | Written within last 30 days, no match yet | Allow ripening |
| Dormant | > 30 days old, no match, file unchanged in 30+ days | Candidate: demote to lessons.md or delete |
| Superseded | Another feedback file with overlapping identifiers was written later and contradicts this one | Flag conflict; ask user which rule wins |
feedback_incorporation_rate = incorporated_count / (incorporated + dormant + superseded). Exclude Pending from the denominator — those haven't had time to be incorporated yet.Report signals (surface in Phase 2):
Why this matters: feedback files that never get promoted become a hidden tier of rules that aren't in axioms (not always-loaded), aren't in lessons (not grep-findable under the standard retrieval pattern), and aren't in templates (not phase-activated). They're effectively invisible after the session that created them — the same "Lost in the Middle" (Liu et al. 2024) logic that motivates the whole tiered architecture.
Phase 4 fixes for this sub-check:
lessons.md (T3) under the appropriate category, then delete the feedback file OR keep it with a status: archived frontmatter addition.Beyond simple age checks, look for these staleness signals:
package.json/requirements.txt says otherwise. Memory says "function Y exists in file Z" but it's been renamed or removed.Read ~/.claude/projects/<current-project>/memory/lessons.md. Extract all lesson numbers and titles. Check for:
### N. appearing twice)Read ~/.claude/lessons.md. Same duplicate/numbering checks. Also cross-reference with project lessons to find content that exists in both places.
Glob docs/decisions/*.md (or wherever the project keeps ADRs). Check:
NNNN- prefixdocs/decisions/README.md with a sortable table (ID, Title, Status, Domain, Date)Status: Skipped## Links sectionWhy. Handoff docs and lessons sometimes contain code → human-label tables (Salesforce status codes, HTTP statuses, enum descriptions). When these labels are fabricated by a predecessor session, downstream sessions treat them as authoritative. session-handoff Phase 0 gates this at the handoff-doc author side via scripts/label_audit.py; this sub-check catches fabricated labels that already landed in lessons.md, feedback_*.md, or reference_*.md before the gate existed, or via in-memory batch edits that bypassed the hook.
Scan targets:
~/.claude/lessons.md~/.claude/projects/<project>/memory/lessons.md~/.claude/projects/<project>/memory/feedback_*.md~/.claude/projects/<project>/memory/reference_*.mdDetect. Any markdown table whose first column is a short code (≤4 chars, ALL-CAPS or numeric) and second column is a sentence-style description, where the row lacks an inline tag ([verified: <path>:<line>] or [HYPOTHESIS]).
Tool. Invoke label_audit.py from the session-handoff skill against each scan target.
That script belongs to a different plugin, and there is no single path that resolves under every install method. A plugin install puts it at ~/.claude/plugins/cache/<marketplace>/session-handoff/<version>/scripts/label_audit.py, not at ~/.claude/skills/session-handoff/scripts/label_audit.py, so reaching for the ~/.claude/skills/ root alone finds nothing and the whole sub-check silently does nothing while the audit still reads clean. Resolve across all three install roots before invoking:
# Resolve across all three install roots. A plugin install creates neither of the first two.
# $CLAUDE_PLUGIN_ROOT points at THIS plugin's own root, so it can only hit in a dev checkout
# where session-handoff's scripts sit beside ours; the [ -f ] guard makes it a no-op otherwise.
S="${CLAUDE_PLUGIN_ROOT:+${CLAUDE_PLUGIN_ROOT}/scripts/label_audit.py}"
[ -f "$S" ] || S="$HOME/.claude/skills/session-handoff/scripts/label_audit.py"
[ -f "$S" ] || S="$(find -L "$HOME/.claude/plugins/cache" -mindepth 5 -maxdepth 5 \
-path '*/session-handoff/*/scripts/label_audit.py' 2>/dev/null \
| awk -F/ '{print $(NF-2)"\t"$0}' | sort -V -k1,1 | tail -1 | cut -f2-)"
if [ -f "$S" ]; then
python3 "$S" "$TARGET"
else
echo "label_audit.py: not found - tried \$CLAUDE_PLUGIN_ROOT/scripts/, ~/.claude/skills/session-handoff/scripts/, and the plugin cache"
fi
Four details in that block are not optional — each one comes from a real defect:
awk does). The marketplace segment comes before the version in the path, so a plain sort -V over whole paths ranks by marketplace name and lets aaa-mkt/2.5.0 lose to zzz-mkt/1.0.0.find, not a shell glob. zsh's nomatch fails a non-matching glob at expansion time, before 2>/dev/null can apply, so the user sees a raw shell error.> "$OUT" inside the if [ -f "$S" ] branch. The shell creates and truncates the target before the command runs, so an unguarded call leaves a 0-byte file that a later step reads as a real audit record.If the script genuinely is not there, print the "not found" line and continue (graceful degrade) — but carry the miss into the Phase 2 report as a skipped check, so §1i never reads clean when it did not run.
Never auto-tag. Surface candidates with file:line and let the user verify against the authoritative source (axioms.md § Authoritative Labels). Tagging a guess as [verified: ...] is worse than leaving it untagged.
Why. §1i catches a fabricated label. This catches a fabricated cause. An incident memory — "X happened because Y" — is the most re-read kind there is, and its mechanism sentence is what a future session acts on. If that sentence is wrong, the memory is worse than absent: it routes the reader to a check that passes and they conclude everything is fine.
Observed 2026-08-07. A memory recorded a PR that deleted 5,081 lines of four
sessions' merged work, and attributed it to "a branch cut before those merges and
never rebased." Measured afterwards, the branch's parent was the newest commit
on main — git merge-base --is-ancestor origin/main HEAD returned true and a
rebase would have been a no-op. The real cause was a stale tree under a current
pointer. Anyone following the memory would have run "am I behind main?", got
no, and stopped. Nothing in the memory system flagged it, because it is
internally coherent, well written, and about a real incident.
What to flag. For each memory whose body describes an incident (look for a dated event, a PR/commit id, or a "why:" causal clause), check whether it carries a way to re-derive the mechanism:
suspected, not confirmed, one plausible cause)Flag as unverifiable-mechanism any incident memory that asserts a cause with neither. These are candidates for a human to re-derive or hedge; never rewrite the cause yourself from inference — that is how the wrong one got written.
Two things to check that the generic staleness pass misses:
description: and the MEMORY.md one-liner carry the mechanism too,
and they are what recall matches on. Correcting only the body leaves the wrong
cause in the two places most likely to be read. Grep the mechanism's
distinctive phrase across the body, the frontmatter and the index line.When a mechanism is corrected, keep the retired claim visible as a QUOTE beside the correction, never delete it silently — the wrong version is already in circulation and a reader who half-remembers it needs to see it retired. This is the same allowlist-plus-correction shape §1i uses for retired labels.
docs/ taxonomy audit (NEW in v3.3)Why. session-handoff dispatches output across a canonical 7-bucket docs/ taxonomy. Without a periodic audit, projects accumulate loose files at docs/*, non-canonical subdirs, or singular/plural duplicates (handoff/ + handoffs/). This sub-check is the source-of-truth definition that session-handoff references.
The canonical 7 buckets:
| # | Bucket | Contains |
|---|---|---|
| 1 | docs/decisions/ | ADRs (NNNN-kebab-case.md) |
| 2 | docs/runbooks/ | Rerun / retrain / operational procedures |
| 3 | docs/analysis/ | Findings, diagnostics, discoveries, exploratory write-ups |
| 4 | docs/references/ | Schemas, data dictionaries, project-convention docs |
| 5 | docs/reviews/ | Review-panel output, peer review, audits |
| 6 | docs/handoffs/ | Session handoffs + next-session prompts |
| 7 | docs/deliverables/ | External-facing artifacts (client drafts, PDFs, decks) — add a .provenance.md sibling if generated |
Reserved top-level file: only docs/README.md.
Permitted 8th directory: docs/plans/ for forward-looking artifacts (future_sessions_plan.md). Flag only if it contains backward-looking content that belongs in analysis/ or handoffs/.
Exclude entirely: __pycache__/, .py scripts (belong in scripts/), .DS_Store.
Checks:
docs/* — anything other than README.md directly under docs/docs/findings/ → should be docs/analysis/; docs/handoff/ → docs/handoffs/handoff/ + handoffs/, decision/ + decisions/docs/analysis/, a review report in docs/findings/Migration support. If docs/ has substantially drifted, offer a --migrate flag that proposes (does not execute) a move plan:
docs/findings/X.md → docs/analysis/X.md
docs/handoff/sN.md → docs/handoffs/sN.md
docs/foo_at_root.md → docs/<inferred-bucket>/foo.md
User approves moves one at a time. Use git mv to preserve history. Never auto-rename. After moves, update any handoff doc, plan, or skill that hard-codes the old path (run doc-freshness-reverse-lint on the migration commit to catch references).
Keeping this taxonomy aligned with session-handoff's dispatch means a session's output lands where the next session's audit expects to find it.
Present findings as a structured audit report. Group by severity:
## Memory Hygiene Audit
### Critical (breaks functionality)
- T1 (auto-memory) MEMORY.md is N lines (limit: ~200) — truncation is active
- T1-repo MEMORY.md at <relative path> is N lines — truncation/missing links
- N in-repo MEMORY.md files found (list paths; flag any under suspicious dirs)
- N orphaned memory files not indexed in MEMORY.md
- axioms.md missing or not referenced from CLAUDE.md session start checklist
- CLAUDE.md says "read lessons.md" instead of "grep lessons.md" (bulk-load anti-pattern)
### Staleness
- N memory files with broken references (list specific references)
- N relative dates that should be absolute
- N codebase contradictions (memory says X, code says Y)
- N contradicted lessons between global and project
### Duplicates
- Global lessons: N number collisions (list them)
- Project lessons: N number collisions (list them)
- Cross-file: N lessons duplicated between global and project (list them)
- ADRs: N number collisions (list them)
### Tiering
- N items at wrong tier (list with current/recommended tier)
- N lessons in lessons.md that qualify for axioms promotion (behavioral overrides)
- N session files flagged for compression
- sessions_archive.md: N lines (suggest split if >200)
### Axioms (target: 10-12 items, Cowan cap)
- axioms.md: exists/missing, N items (target: ≤12)
- Classification: N Universal / N Role / N Phase
- N Phase axioms that should migrate to `~/.claude/templates/phase_*.md`
- N axioms flagged for demotion (dormant / caught by tooling / subsumable)
- N merge candidates to reach capacity cap
- CLAUDE.md retrieval strategy: correct/needs update
### Phase Templates
- `~/.claude/templates/`: N template files found
- `.claude/rules/`: N path-scoped rule files, N with dead `paths:` globs
- N axioms that should be Phase templates instead of always-loaded
- Suggestion: create missing templates for common project phases
### Feedback Lifecycle (§1c2)
- N feedback files total: N Incorporated / N Pending / N Dormant / N Superseded
- Incorporation rate (excluding Pending): X%
- Dormant files (list with age and core rule)
- Superseded pairs (list for user resolution)
### ADR Best Practices
- N missing bidirectional links
- N ADRs without Confirmation section
- Index file: exists/missing (with N total ADRs)
- N sequence gaps without stubs
### Label-Table Integrity (§1i)
- N candidate fabricated-label rows across lessons / feedback / references
- Files affected with line refs (do not propose auto-tags)
- `label_audit.py` resolved: <path> — or "not found, §1i SKIPPED (tried $CLAUDE_PLUGIN_ROOT/scripts/, ~/.claude/skills/session-handoff/scripts/, plugin cache)"
### Mechanism Claims in Incident Memories (§1k)
- N incident memories asserting a cause with no way to re-derive it (list file:line and the cause sentence)
- N whose `description:` / MEMORY.md line states a different or stale cause than the body
- N groups of memories about the same incident whose mechanisms conflict (list the group)
### Project `docs/` Taxonomy (§1j)
- N loose files at `docs/*` (list)
- N non-canonical subdirs (list with suggested target bucket)
- N plural/singular duplicates
- N items of bucket-typed content in the wrong bucket
- Migration plan ready / not needed
### Recommendations
- For each issue: what to do, files affected, estimated impact
For cross-file duplicates (global vs project lessons), the decision of where to keep the lesson matters:
After presenting the report, ask the user which fixes to proceed with. Respect their decisions — they may want to keep some "duplicates" that serve different audiences, or skip renumbering if they reference lesson numbers in external docs.
Apply approved changes. For each fix type:
MEMORY.md bloat:
Orphaned memory files:
Stale memory files:
Lesson deduplication:
### 41b.) or merge if content overlapsSession compression:
ADR fixes:
Axiom management:
lessons.md (T3), update search keywords, remove from axioms.md~/.claude/templates/phase_*.md (create template if it doesn't exist), add to project .claude/rules/ with appropriate paths: glob, remove from axioms.mdPhase template management:
~/.claude/templates/ doesn't exist: create it and populate with standard phase templates (onboarding, data sourcing, analysis, deliverables, code review).claude/rules/ is empty: suggest copying relevant templates with paths: frontmatter matching the project's directory structure@import of the most relevant phase template in project CLAUDE.mdLabel-table tagging (§1i):
[verified: <repo-relative-path>:<line>] after the description.[HYPOTHESIS] so downstream sessions know to re-probe.verified is worse than leaving it untagged.Taxonomy migration (§1j):
--migrate dry-run). Execute moves with git mv so history is preserved. Run one bucket at a time.doc-freshness-reverse-lint on the migration commit to catch references in handoff docs, plans, or skills that hard-code the old path.session-handoff would dispatch the same content to the new location (the canonical taxonomy is defined in §1j).Cross-project scope review (inspired by OpenViking hierarchical context):
After executing fixes:
Inspired by claude-memory-skill's three-question quality gate. Before writing any new memory file, apply these checks:
- [Display name](filename.md) — brief description under ~150 chars---
name: Short descriptive name
description: One sentence explaining what this memory captures and when it's relevant
type: user|feedback|project|reference
---
Body content in markdown. For feedback/project types, structure as:
- Lead with the rule/fact
- **Why:** explanation
- **How to apply:** guidance
### N. Title (optional session reference like S42)
**Pattern:** What happened / what was observed
**Rule:** The corrective behavior going forward
NNNN-kebab-case-title.md (zero-padded 4 digits)# ADR-NNNN: Title (number matches filename)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wan-huiyan/memory-hygiene --plugin memory-hygiene