stevenlzm/mem0/mem0-context-loader
Claude Code and agent skill by stevenlzm/mem0
- community
Checking that the SKILL.md file is still in the repository.
Searches and injects relevant memories into context before starting work on a task. Use when beginning a new task, switching context, or when project history, past decisions, or coding conventions need to be loaded.
Install
npx vskill@latest install stevenlzm/mem0/mem0-context-loaderSKILL.md
Context Loader
Pre-fetches relevant memories to prime context before working on a task.
When to use
- Session start (invoke manually or auto-triggered by skill description matching)
- User starts work on a specific feature or file set
- Complex multi-step task begins
- User says "what do we know about X" or "context for X"
Steps
- Extract topics from current message/task. Identify: file paths, module names, feature areas, error patterns.
- Run 2-4 parallel `search_memories` calls with different angles:
| Query angle | Filter | Purpose | |
|---|---|---|---|
| Feature/module name | {"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}, {"metadata": {"type": "decision"}}]} | Architecture decisions | |
| File paths mentioned | {"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}, {"metadata": {"type": "convention"}}]} | Coding patterns | |
| Error keywords (if any) | {"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}, {"metadata": {"type": "anti_pattern"}}]} | Known pitfalls | |
| Broad project context | {"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}]} | Catch-all |
- Deduplicate results by memory ID across all search responses.
- Output compact context block (max 10 memories):
- 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
Output formatting
IMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like bold, ## headers, and | table | syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingintegrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-context-loader/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/stevenlzm/mem0/mem0-context-loader)