From cortex-memory
Use throughout any coding session in a project where the cortex-memory plugin is installed. Recall prior project memory before making non-trivial decisions, cite the memories you actually used, and store salient decisions so the next session never re-explains itself. Activates whenever you are about to plan, decide an approach, debug a recurring issue, or end a working session.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex-memory:cortex-memoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You have a sovereign, decay-aware memory for this project, exposed through MCP
You have a sovereign, decay-aware memory for this project, exposed through MCP tools. Memories that get cited survive and grow their lease; memories that go unused decay for free. Your job is to keep that loop healthy so future sessions (and future-you) inherit hard-won context instead of relearning it.
At session start, the Cortex recall hook may inject a "Cortex recalls for
:" block. Treat that as a starting point, not the whole picture — pull
more with cortex_recall when you need it.
Recall before you decide. Before choosing an approach, debugging
something that smells familiar, or answering "have we solved this before?",
call cortex_recall({ query, k: 5, project }). Use the current repo's
project id (the recall hook prints it). Read the returned previews.
Cite what you actually used. When you act on a recalled memory, call
cortex_act({ action, citations: [<entityKey>, ...] }) with the ids from the
most recent cortex_recall. Each valid citation fires an accumulative
lease extension — this is how useful memory survives. Do NOT cite ids you
did not use; hallucinated/unused citations are dropped and waste nothing, but
they also teach the engine nothing.
Store salient decisions. When you settle an architectural decision, resolve a non-obvious bug, or establish a convention, capture it:
cortex_store_document({ text, title, project }).cortex_summarize_session({ summary, sessionId, project }). (The plugin's
PreCompact/SessionEnd hooks also auto-capture a deterministic summary, so
this is for when you want a higher-quality, hand-authored one.)Recall and store the things that are expensive to rediscover:
Do NOT store secrets, credentials, or large blobs. Keep stored text concise and written for future retrieval — lead with the conclusion.
cortex_recall early in a task over many scattered ones.npx claudepluginhub lingsiewwin/cortex --plugin cortex-memoryCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.