# Portable Memory Core

> A meta-skill that establishes a 'One Brain' portable memory folder (.agent/). It persists context, user preferences, identity rules, and execution history across different AI harnesses (Claude Code, Cursor, Windsurf, OpenClaw).

- Skill: `mphinance/portable-memory-core` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add mphinance/portable-memory-core`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mphinance/portable-memory-core/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mphinance (https://skillmd.com/u/mphinance)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mphinance/portable-memory-core

---


# Portable Memory Core

*"Never explain yourself twice."*

This skill enforces the `One Brain` protocol. Instead of scattering your preferences across dozens of system prompts, it centralizes them into a portable `.agent/` directory that any LLM runner can hook into.

## Core Directives

1. **Memory Synchronization:** Upon startup, read from `.agent/memory.yaml`.
2. **Context Passing:** Whenever the user switches contexts (e.g., from Cursor to OpenClaw), this skill ensures the new context loads the latest state from `.agent/state.json`.
3. **Identity Enforcement:** Enforces the `IDENTITY.md` rules (e.g., "Caveman mode", "No em dashes", "Substack voice") universally across all generated code and text.
4. **Harness Agnostic:** Works seamlessly whether the upstream harness is Claude CLI, a custom Python script, or a GUI.

## Usage

When activated, you will automatically:
- Load `.agent/preferences.yaml`
- Update `.agent/history.json` with the current session summary.
- Export relevant variables to the local workspace.

