What problem does it solve? Adding long-term memory to an existing codebase is risky: integrations often break existing behavior, touch too many files, or lack tests. This Skill wires Mem0 into a repository through a goal-driven, TDD pipeline that keeps all changes additive, feature-flagged, and verifiable. ## Core Features & Use Cases - Automatic stack detection: Detects Python or Node/TypeScript repos, locates backend integration surfaces, and asks the user to choose between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). - Test-first implementation: Writes failing tests against canonical Mem0 SDK signatures before any code, then delegates implementation to a subagent constrained by an approved plan. - Non-invasive guarantees: Gates all new code behind a feature flag (e.g., MEM0_ENABLED), forbids changes to existing exports or tests, and produces separable commits on a mem0-integrate/<slug> branch. - Self-healing verification loop: Runs the companion mem0-test-integration skill and spawns remediation subagents for failing checks, with bounded retries and regression rollback. - Use Case: A developer with an Express backend wants the assistant to remember user preferences across sessions. Invoking this Skill produces a gated Mem0 integration with tests, a feature branch, and a verification scorecard. ## Quick Start Ask your assistant to integrate Mem0 into this repository and confirm whether to use Mem0 Platform or Open Source when prompted.