/memory-mason:mmq [question | insights]from memory-mason
Queries the knowledge base by retrieving from index, atlas, concept, and synthesis pages to answer questions about past decisions, patterns, and technical knowledge, citing sources with [[wikilinks]].
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.
Answer a knowledge-base question using index-guided retrieval and cite sources with [[wikilinks]].
This command is operational only. Do not write /mmq, /memory-mason:mmq, 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 path) and {subfolder} from the matched source; .env sources use MEMORY_MASON_SUBFOLDER (default: ai-knowledge), JSON sources use subfolder. If none provide a vault path, state the knowledge base is not initialized.
Use these paths:
context.md as a fast cache of recent context, not a replacement for the knowledge base.context.md directly answers the question with enough precision, answer immediately.context.md is relevant but incomplete, extract likely page names, tags, dates, and follow-up questions from it, then continue.context.md when they are relevant.concepts/, synthesis/, atlas/, and sessions/ for the query keywords (case-insensitive). Also check aliases: and tags: frontmatter fields for keyword matches.4a. For temporal questions ("what did I do last week", "what happened on YYYY-MM-DD", "recent activity"), read the sessions tier.
{vault}/{subfolder}/sessions/ for notes matching the relevant date range (filter by the date frontmatter field).atlas/bases/sessions-timeline.base as a structural guide to understand sort order, but read the actual session .md files for content._raw/YYYY-MM-DD/ sources were compiled._raw/YYYY-MM-DD/NNN.md and session-scoped _raw/YYYY-MM-DD/HHMMSS-{sid8}-NNN.md) instead of assuming the vault is current.confidence field from each cited concept's YAML frontmatter. Valid values: high, medium, low.low, overall confidence is low; else if any is medium, overall confidence is medium; else high.status: seedling or contains a [!gap] callout, note it in the answer.Confidence: [high|medium|low] (based on N cited concept pages)
If any seedling or gap concepts were cited, add: Note: answer draws on N seedling/gap concept(s): [names].{subfolder}/ prefix: [[{subfolder}/concepts/example-concept]], [[{subfolder}/synthesis/example-tag]], [[{subfolder}/atlas/example-tag]], or [[{subfolder}/sessions/YYYY-MM-DD-{sid8}]].context.md only as retrieval assistance. Do not cite _meta/context.md as authoritative when a durable page exists./mmc if relevant information appears to exist in _raw/ but is not compiled into durable pages yet.Some arguments map to predefined retrieval flows instead of free-form questions. When the argument exactly matches one of these tokens (case-insensitive, whitespace-trimmed), follow the flow defined here. Otherwise treat the argument as a free-form question and run the default ## Steps flow.
insightsSurface current workflow-coaching advisories from the hook-generated knowledge.
Steps:
{vault}/{subfolder}/atlas/workflow-coaching.md. If the file is missing or empty, respond with: No workflow-coaching advisories yet. Hooks have not crossed the nag threshold. and stop.## Active Advisories section.count descending, then by most recent last descending.**<count>x** \` (kind: ) — first: , last: followed by a one-line note describing the workflow signal. If the advisory has asnippet, append it: — ""`. Omit the trailing snippet segment entirely when absent (older advisories predate this field).See [[{subfolder}/atlas/workflow-coaching]] for the full list.After the advisory list, append a ### Candidate skills subsection. Populate it from the same ## Active Advisories data:
kind is not prompt-repeat.prompt-repeat advisory whose count is 5 or more.kind:
prompt-repeat — a repeated prompt pattern suggests automation or a dedicated skill could eliminate the manual repetition.error-repeat — a recurring error suggests the underlying bug or misconfiguration should be fixed, not turned into a skill.**<count>x** \` (kind: ) — (e.g. "Recurring task: consider creating a skill or automation for this workflow." forprompt-repeat; "Recurring error: investigate and fix the underlying cause." for error-repeat). If the advisory has a snippet, append it in quotes so the recommendation is actionable: — ""`. Omit when absent.Confidence aggregation does NOT apply to insights because advisories are not concept pages. Skip the Confidence: footer.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
knowledge-base, memory-query, index-retrieval, wikilinks, past-decisions
6 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.
npx claudepluginhub s-gryt/memory-mason --plugin memory-masonOther plugins' skills for the same job