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).
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 32
- Forks
- 6
01 前言 Front Matter
- name
- portable-memory-core
- description
- 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).
02 资源文件 1
- 参考文档README.md1.3 KB
03 SKILL.md 正文
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
- Memory Synchronization: Upon startup, read from
.agent/memory.yaml. - 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. - Identity Enforcement: Enforces the
IDENTITY.mdrules (e.g., "Caveman mode", "No em dashes", "Substack voice") universally across all generated code and text. - 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.jsonwith the current session summary. - Export relevant variables to the local workspace.
04 同仓库更多 Skills
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
wireframe-sketch
A hand-drawn wireframe exploration — graph-paper background, marker / pencil tone, multiple tab labels for variants, sticky-note annotations, scribbled chart placeholders, hatched fills. Reads like a designer's whiteboard before any pixels are committed. Use when the brief asks for "wireframe", "sketch wireframe", "hand-drawn", "lo-fi", "whiteboard", "草稿", or "手绘原型".
weekly-update
Single-file horizontal-swipe slide deck for a weekly team update — shipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the brief mentions "weekly update", "team update slides", "weekly status", "周报演示".
webull-openapi
Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.