context-loader
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.
How do I install this agent skill?
npx skills add https://github.com/mem0ai/mem0 --skill context-loaderIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill safely retrieves and injects relevant user memories into the current session context using a vendor-specific tool. It performs read-only searches to prime the AI agent with project history and preferences.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Context Loader
Pre-fetches relevant memories to prime context before working on a task or topic.
Steps
-
Extract topics from current message/task. Identify: subject areas, people mentioned, project names, goal references.
-
Call
mem0_memoryonce withaction="search"and a focused question about the task. -
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>]
- 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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/mem0ai/mem0/context-loader">View context-loader on skillZs</a>