context-loader — Claude Code skill: what it does, how to install
context-loader is a Claude Code skill that searches project memories for code details, decisions, and commands. It surfaces earlier work relevant to the current task.
Apache-2.0 117 installs ★ 69,319 updated 2026-10-23
npx skills add mem0ai/mem0 --skill context-loader -a claude-codeWhat context-loader does
Before work begins, the skill identifies topics in the request and sends one focused search to mem0_memory using the search action. It then presents up to 10 relevant memories, such as project decisions, preferences, or lessons, when they match the task.
The search is read-only: the skill cannot edit or delete memories. With no matches, it outputs nothing, and it skips details already visible in the current session. Earlier decisions therefore appear in context only when relevant memory entries exist.
What it helps with
- retrieve an earlier solution to a current issue
- find a command used in a previous session
- check whether a bug was discussed before
- recover project preferences from memory
Example prompts for the agent
- Search project memory for how we handled this error before.
- Find earlier decisions about authentication and show the relevant context.
- Check which command we used to run the tests.
How to install context-loader
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill context-loader -a claude-code2Manually: put the files in place
~/.claude/skills/context-loader/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/context-loader/
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill context-loader -a codex2Manually: put the files in place
.agents/skills/context-loader/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill context-loader -a cursor2Manually: put the files in place
.cursor/skills/context-loader/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mem0ai/mem0 integrations/pi-agent-plugin/skills/context-loader2Manually: put the files in place
.github/skills/context-loader/SKILL.md1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill context-loader -a gemini-cli2Platform CLI
gemini skills install https://github.com/mem0ai/mem0 --path integrations/pi-agent-plugin/skills/context-loaderManually: put the files in place
.devin/skills/context-loader/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill context-loader -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about context-loader
How do I install context-loader in Claude Code?
Run npx skills add mem0ai/mem0 --skill context-loader -a claude-code. The skill file is at ~/.claude/skills/context-loader/SKILL.md.
What does context-loader do?
It searches project memories from earlier sessions through mem0_memory and returns up to 10 relevant entries.
Can context-loader edit or delete memories?
No. It only searches memory; when there are no matches, it produces no output.
Source text
SKILL.md · Apache-2.0
--- name: context-loader description: Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error, decision, or command you need, so you can avoid repeating file reads, searches, or experiments. --- # Context Loader Pre-fetches relevant memories to prime context before working on a task or topic. ## Steps 1. **Extract topics** from current message/task. Identify: subject areas, people mentioned, project names, goal references. 2. **Call `mem0_memory` once** with `action="search"` and a focused question about the task. 3. **Output compact context block** (max 10 memories): ``` context-loader: loaded <N> memories for "<task summary>" - [decisions] <content> [mem0:<short_id>] - [preferences] <content> [mem0:<short_id>] - [lessons] <content> [mem0:<short_id>] ``` 4. If **zero results**: output nothing. Don't announce empty context. ## Constraints - **Read-only** — never modify or delete memories - **Max 10 memories** returned (most relevant only) - **Silent on empty** — only surfaces findings if relevant context exists - Skip memories already visible in current session context
© mem0ai · Apache-2.0 · mem0ai/mem0