/memory-mason:mmsfrom memory-mason
Shows Memory Mason vault health: file counts, token metrics, compilation status, knowledge graph quality, and raw capture inventory. Invoke when auditing the knowledge base.
Ships in memory-mason. 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.
Show a concise snapshot of the Memory Mason knowledge base state.
This command is operational only. Do not write /mms, /memory-mason:mms, or their execution chatter back into the vault.
Before any other reasoning, resolve vault config in this priority order:
./.env./memory-mason.json~/.memory-mason/.env~/.memory-mason/config.jsonResolve {vault} (absolute vault path) and {subfolder} from the matching config source. Use {subfolder} from matching config field (default ai-knowledge for .env). Priority: ./.env → ./memory-mason.json → ~/.memory-mason/.env → ~/.memory-mason/config.json.
Do not claim config is missing until you have attempted all four locations above. If none provide a vault path, fail fast with an explicit error that names every location checked.
Use these paths:
_raw/ size exceeds 2MB — flag the entire directory.1.5 Read {vault}/{subfolder}/_meta/manifest.json if it exists.
home.md001.md files and session-scoped HHMMSS-{sid8}-NNN.md files); ignore meta.json. Record {YYYY-MM-DD}/ plus total size. Flag entries exceeding the large-capture threshold.state.json, read total_cost_usd, ingested entries with compiled_at timestamps, and capture_metrics (fields: capture_count, total_raw_tokens, total_stored_tokens, total_savings_tokens, total_savings_percent, last_capture_at, last_capture.source, last_capture.raw_tokens, last_capture.stored_tokens, last_capture.savings_tokens, last_capture.savings_percent). If capture_metrics is missing, invalid, or capture_count is 0, report token economics as not tracked yet with zero totals and never for last capture; otherwise report cumulative totals.3.5 From _meta/manifest.json, read:
sources object size)compiled_at timestampingested entries.state.json has no ingested entries but _meta/manifest.json exists, use the most recent manifest compiled_at._raw/ but is not present in the ingested map._raw/ size exceeds the raw-directory threshold, flag the directory.present when _meta/manifest.json exists and parses successfully; missing otherwise. Report tracked source count. Mark stale references when recorded source paths are missing on disk._meta/context.md exists, read its frontmatter updated timestamp and compare against the most recent compile timestamp — fresh if at or after, stale if older; missing if the file does not exist.[[...]] wikilinks in body (exclude frontmatter and {subfolder}/_raw/ source refs); compute average; count isolated concepts (0 links); count [!contradiction] and [!gap] callouts.[[foo]]): count across all knowledge articles and index.md — these lack a folder path and will break navigation.[[concepts/foo]] etc. without {subfolder}/): count links missing the subfolder prefix — they resolve only within the same vault subfolder.[[other-subfolder/...]]): count links starting with a subfolder prefix other than {subfolder}/ — they reference a different project's vault.7.5 Count concept page status field values from frontmatter across all concept pages in {vault}/{subfolder}/concepts/. Tally: seedling count, growing count, evergreen count, superseded count (concepts with a superseded_by frontmatter field, regardless of their status value). Treat missing or invalid status as seedling. A superseded concept is counted in both its status bucket (seedling/growing) and the superseded tally.
Return status exactly like this:
## Knowledge Base Status
**Vault:** {vaultPath}/{subfolder}
**Articles:** {concept count} concepts, {synthesis count} synthesis, {moc count} MOCs, {session count} sessions
**Raw captures:** {total} total, {uncompiled} uncompiled
**Last compiled:** {ISO timestamp or "never"}
**Manifest:** {present/missing} ({tracked source count} sources)
**Context:** {fresh/stale/missing} ({updated timestamp or "never"})
## Token Economics
- Captures tracked: {capture count or 0}
- Raw tokens: {total raw tokens or 0}
- Stored tokens: {total stored tokens or 0}
- Savings: {total savings percent or 0}% ({total savings tokens or 0} tokens)
- Last capture: {last capture source or "never"} ({last capture timestamp or "never"})
- Last capture savings: {last capture savings percent or 0}% ({last capture raw tokens or 0} -> {last capture stored tokens or 0} tokens)
- Note: token savings are tracked on every capture from raw-vs-stored deltas (sanitize-only changes count even with `minimize` off, default: off). Enabling `minimize` adds prose compression on top, increasing savings further.
## Knowledge Graph
- Avg wikilinks per concept: {N.N}
- Isolated concepts (0 links): {count}
- Unresolved contradictions: {count}
- Knowledge gaps: {count}
- Short-form wikilinks: {count}
- Missing subfolder prefix: {count}
- Cross-project refs: {count}
## Maturity
- Seedling: {seedling count}
- Growing: {growing count}
- Evergreen: {evergreen count}
- Superseded: {superseded count}
## Bases
{List each atlas/bases/*.base filename present, one per line, or "none (run /mmc to generate)" if directory is empty or absent}
## Recent Index (first 5 entries)
{index preview}
## Health
{healthy / N raw captures need compilation}
## Raw Capture Sizes
{table: folder | size | status}
- status: "OK" if under 500KB, "LARGE" if over 500KB (512000 bytes), "⚠ VERY LARGE" if over 2MB
**Total _raw/:** {total size in MB}
{If any capture is LARGE: "Tip: Run /mmc on recent captures to keep the vault current."}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub s-gryt/memory-mason --plugin memory-mason6 skills in this plugin
/mmaArchive log entries when they exceed 32 entries, using batches of 2^k for compact storage. Extractive only — no invented facts. Run whenever _meta/log.md grows unwieldy.
/mmcCompile today's or a specified daily capture into the Vault Architecture v2 structure. Runs a three-stage EXTRACT -> TRANSFORM -> LOAD pipeline that updates concepts, atlas MOCs, synthesis pages, the root index, build log, manifest, state, session bootstrap context, and auto-archive folds. Triggers: "compile today", "/mmc", "compile YYYY-MM-DD", "--all" for batch. Use /mmq instead to query the vault without modifying it.
/mmlLint the knowledge base for broken links, orphan pages, stale captures, and wikilink convention violations. Run as a periodic health check.
/mmqQuery the knowledge base. Reads session context first, then the root index, then relevant atlas, concept, and synthesis pages, and synthesizes a clear answer with [[wikilink]] citations. Use when you want to ask about past decisions, patterns, lessons, or technical knowledge captured in previous AI conversations. Use the `insights` argument to surface workflow-coaching advisories from hook-generated data.
/mmsetupSet up, reconfigure, or remove Memory Mason. Configures vault path, installs hooks if missing, or uninstalls everything. Use when the user says "set up memory mason", "install hooks", "configure memory mason", "reconfigure memory mason", "get memory mason running", "my hooks aren't working", "uninstall memory mason", "remove memory mason", or runs /mmsetup.
Other plugins' skills for the same job