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.