/memory-graph:graph-query <question> [--global]from memory-graph
Ask a question against the memory-graph vault — index-first retrieval with citations (project by default; --global for the machine-wide vault)
Ships in memory-graph. Installing the plugin adds it to Claude Code.
Answer the question in $ARGUMENTS using the vault.
Parse $ARGUMENTS:
--global if present (else target is the project vault)Resolve the vault root:
~/.memory-graph/<sanitized-cwd>/ (cwd with / → -)~/.memory-graph/global/
If SCHEMA.md is missing, stop and tell the user: "No <project|global> vault yet. Run /memory-graph:graph-init to bootstrap one (or /memory-graph:graph-init --global for the machine-wide vault), then re-run this query."Read <vault-root>/SCHEMA.md for page kinds and any custom query workflows.
Read the bundled skill at skills/wiki/SKILL.md for the query discipline, page-selection order, citation format, and the worked query example.
Execute the query operation exactly as specified in the SKILL's "Query" section: read index.md (including any ## ⚠ Open conflicts and ## Invariants top sections), pick pages in synthesis → concept → entity → decision → source order, traverse typed-edge {edge-type: target} suffixes for ≤3 extra pages on comparative/traversal-shaped questions, cap at ~10 pages by default, read only those, synthesize with inline [[wikilinks]] and confidence-aware framing (qualify inferred/stale claims, lead with verified), close with the structured Vault / Sources read / Suggested follow-ups footer.
If SCHEMA enabled decay metadata: after delivering the synthesis, bump lastRetrieved to today and increment retrievalCount on the frontmatter of every page actually cited (not opened-but-uncited). One Edit per cited page; cap is the same ~10 pages.
No fabrication policy. If the index has no relevant pages, say so plainly — do not fall back to general knowledge under the guise of vault knowledge.
If the user follows up with "file this", "save it", or similar, write the answer to <vault-root>/wiki/synthesis/<slug>.md, update index.md, and append a query entry to log.md per the SKILL's file-back rules.
If the user wants both vaults consulted, they run two queries — one with --global, one without. Don't auto-merge.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub monsieurbarti/memory-graph --plugin memory-graph7 commands in this plugin
/graph-archiveGraph ArchiveSnapshot a vault to ~/.memory-graph-archive/ (project by default; --global for machine-wide; --all for both). --list to see existing snapshots./graph-consolidateGraph ConsolidateSurface stale pages, near-duplicates, and open conflicts in the vault — report only, no mutations (project by default; --global for the machine-wide vault)/graph-ingestGraph IngestIngest a raw source into the memory-graph vault (project by default; --global for the machine-wide vault). Accepts a file path or URL./graph-initGraph InitCo-author a SCHEMA.md and bootstrap a memory-graph vault (project by default; --global for the machine-wide vault)/graph-lintGraph LintHealth-check the vault — orphans, broken links, contradictions, stale sources, missing pages (project by default; --global for the machine-wide vault)/graph-statusGraph StatusShow stats for the project vault and the global vault