一键导入
code-memory
Orient on the codebase via the code-memory MCP index before grep/read/shell, and drive the backend manually (retrieve / record / reingest / ingest).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orient on the codebase via the code-memory MCP index before grep/read/shell, and drive the backend manually (retrieve / record / reingest / ingest).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-memory |
| description | Orient on the codebase via the code-memory MCP index before grep/read/shell, and drive the backend manually (retrieve / record / reingest / ingest). |
| user-invocable | true |
For any question that maps to "where is X / how does Y work / who calls Z /
where do docs live / what depends on this", call the code-memory MCP tools
before grep, glob, read, or shell. The index is faster, ranked, and aware
of past episodes + durable user claims.
Mistral Vibe has no lifecycle hooks, so the per-turn automation that the Claude Code / Cursor plugins get for free does not fire here. This skill is the standing instruction that replaces it: you drive the index explicitly.
codememory_retrieve — semantic + episodic recall. Default first call for
any natural-language code question.codememory_definitions(symbol) — exact file + line for a name.codememory_callers(symbol) / codememory_callees(symbol) — call graph
(rename impact, dependency mapping).codememory_importers(target) / codememory_dependencies(file) — module
import graph.codememory_at_sha, codememory_callers_at_sha, codememory_drift —
temporal queries (what existed at a past commit, what's stale).codememory_assert_claim — record durable user assertions (preferences,
decisions, rejections, ownership, location).Every tool takes a required project argument: the repo slug, which is the
basename of the repo root directory (e.g. code-memory for
/Users/you/Workspace/code-memory). Do not pass auto or default — they are
rejected.
codememory_record(prompt, plan, patch, verdict) so the next session can recall what worked.codememory_assert_claim to make it durable.Default to one targeted MCP call over a wide grep. Read source files only after the graph tells you exactly which lines to open.
The CLI covers the paths Vibe cannot hook. Run these via shell when needed:
code-memory retrieve "rotate refresh tokens" --jsoncode-memory record --prompt "..." --verdict successcode-memory ingest .code-memory resolveIf the OS watcher is installed (code-memory autostart status), file edits are
re-ingested automatically in the background and you rarely need step 3's manual
ingest. If it is not running, re-ingest after a batch of writes.
Local-first memory layer (semantic vectors + call/import graph + episodes + bi-temporal user claims) wired in via MCP. Use to orient on unfamiliar code, answer topology questions (who calls X, who imports Y), recall prior work, refresh the index after writes, AND to remember durable user assertions — preferences ("I love / prefer / want"), tech-stack decisions ("we use X"), rejections ("don't ship Y"), ownership, location facts. Load this skill whenever the user states an opinion, preference, choice, or correction worth keeping across sessions.
Local-first memory layer (semantic vectors + call/import graph + episodes) wired in via MCP and the OpenCode plugin. Use to orient on unfamiliar code, answer topology questions (who calls X, who imports Y), recall prior work, and refresh the index after writes.