memory-patterns

Integrates mem0 persistent memory with automated hooks and scoping strategies for AI agents.

3|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/pvliesdonk/agents.md --skill memory-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-patterns
Source: https://github.com/pvliesdonk/agents.md/tree/main/claude-skills/memory-patterns
Command: npx skills add https://github.com/pvliesdonk/agents.md --skill memory-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of AI agents forgetting crucial information between sessions or across different tasks, enabling persistent knowledge and context.

Core Features & Use Cases

  • Persistent Memory: Utilizes mem0 to store information across sessions, context compactions, and project switches.
  • Automated Memory Capture: Implements hooks (PostToolUse, PreCompact, SessionEnd, Stop) to automatically save relevant data.
  • Scoping Strategies: Allows for both shared user_id scope and agent-specific agent_id scope for memories.
  • Use Case: An architect agent can store its design decisions, and an LLM engineer agent can store model performance observations, making this information available for future reference by any agent.

Quick Start

Use the memory-patterns skill to automatically capture code style preferences after code editing operations.

Frequently Asked Questions about memory-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to an AI agent so it remembers context across sessions?

Persistent memory for AI agents is achieved by integrating the mem0 solution, which stores information across sessions, context compactions, and project switches to maintain long-term knowledge retention.

How does automated memory capture work for AI agents?

Automated memory capture works by implementing hooks like PostToolUse, PreCompact, SessionEnd, and Stop to automatically save relevant data and context without requiring manual intervention.

Can I scope agent memory to specific users or share it across multiple agents?

You can scope agent memory using flexible strategies, supporting both a shared user_id scope and an agent-specific agent_id scope to isolate or share retained knowledge across multi-agent systems.

What is the best way to store design decisions learned by an architect agent for future reference?

The best way to store design decisions is using a persistent memory solution with mem0, allowing an architect agent to save observations that remain available for future reference by any agent.

Do I need mem0 to enable context continuity in multi-agent systems?

Yes, you need mem0 to enable context continuity in multi-agent systems, as it provides the underlying storage mechanism for learned behaviors and long-term knowledge retention across different tasks.