mem0-integrate

Integrates Mem0 memory into existing repositories using a test-first, feature-flagged pipeline.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-integrate-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-integrate
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/skills/mem0-integrate
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-integrate-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding persistent memory to an existing codebase is risky: it can break existing behavior, conflict with current session stores, or produce PRs maintainers reject. This Skill wires Mem0 into a repository through a goal-driven, test-first pipeline that keeps all changes additive and gated behind a feature flag. ## Core Features & Use Cases - Automatic stack detection and delegation: Detects Python or Node/TypeScript repos, asks the user to choose Mem0 Platform (managed) or Open Source (self-hosted), and delegates call-site patterns to published Mem0 skills. - Test-first implementation: Writes failing tests against the approved goal before any implementation, then uses a subagent to implement against the plan with strict non-invasiveness constraints. - Self-healing verification loop: Runs the companion mem0-test-integration skill, categorizes failures, and applies bounded remediation commits without touching existing tests. - Use Case: A developer with an Express backend wants the assistant to remember user preferences across sessions. The skill creates a feature branch, gates Mem0 behind MEM0_ENABLED, adds write/read call sites, and verifies end-to-end. ## Quick Start Ask your assistant to integrate Mem0 into this repository and follow the prompts to choose Platform or OSS and approve the goal and plan.

Frequently Asked Questions about mem0-integrate

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

FAQPage Schema
How do I integrate Mem0 into an existing repository?

Invoke the skill with a phrase like "integrate Mem0 into this repo" on a clean git branch. The pipeline detects your language, asks you to choose Mem0 Platform or Open Source, writes failing tests first, then implements the integration behind a feature flag on a new branch.

Mem0 Platform vs Open Source: which should I choose?

The skill recommends Platform when your repo already uses managed services like Stripe or Supabase, and OSS when it shows self-hosted infrastructure like docker-compose with Postgres or Qdrant. Platform is the default recommendation due to lower integration cost, and migration later is supported.

Will adding Mem0 break my existing tests or behavior?

No. All new Mem0 code is gated behind a feature flag such as MEM0_ENABLED, and with the flag unset the repo must behave byte-for-byte like before. The pipeline refuses to modify existing tests and stops if any pre-existing test fails.

Can I use Mem0 integration in a frontend-only React app?

No. The skill rejects frontend-only repositories at its precondition gate because Mem0 integration must live in server-side code where API keys and user identity resolution are safe. You need a backend such as Express, FastAPI, or an agent framework.

What happens if the Mem0 integration verification fails?

A self-healing loop runs the companion mem0-test-integration skill, categorizes the failing check, and spawns a remediation subagent for up to 3 attempts per category. If a pre-existing test fails, it stops immediately rather than patching around the violation.