← 返回 Skills 市场
codesstar

Loci — Memory Palace for AI

作者 codesstar · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ 安全检测通过
207
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install loci-brain
功能描述
Memory Palace for AI — persistent structured memory, identity, and task management across every conversation.
使用说明 (SKILL.md)

Loci — Memory Palace for AI

⚠️ FIRST: Check if brain exists

Run this check before doing anything else:

  1. Check if ~/.loci/brain-path exists → read the path inside → verify plan.md exists there
  2. If not, check if ~/loci/plan.md exists
  3. If neither exists → run Bootstrap below
  4. If found → read plan.md. If status: template → run First-Time Setup. If status: active → brain is ready, skip to Daily Use

Bootstrap (auto-install for new users)

The user doesn't need to do anything. You handle it:

# Clone Loci brain template
git clone --depth 1 https://github.com/codesstar/loci.git ~/loci

# Remove git remote (user's data stays private)
cd ~/loci && git remote remove origin

# Register brain location
mkdir -p ~/.loci
echo "$HOME/loci" > ~/.loci/brain-path

After cloning, run First-Time Setup below. Tell the user:

  • "我在帮你设置记忆系统,只需要回答几个问题。"

First-Time Setup

When plan.md has status: template:

  1. Detect the user's language from their messages. Ask in that language.
  2. Ask these questions (can ask all at once):
    • What's your name?
    • What do you do? (Developer / Designer / Creator / Student / Other)
    • What's your most important focus right now?
    • What hours do you usually work? (Morning / Daytime / Evening / Night owl / Irregular)
    • Preferred language? (English / 中文 / Mix)
  3. Generate initial files from answers:
    • me/identity.md — name, role, current season
    • plan.md — mission + focus as first goal (set status: active)
    • tasks/active.md — first task from their focus
  4. Done. Say: "Your brain is ready. From now on, I'll remember the important things."

Daily Use

Brain path: read from ~/.loci/brain-path, or default ~/loci/

At conversation start, read L1 files before responding:

  • plan.md — life direction
  • tasks/active.md — current tasks
  • tasks/daily/YYYY-MM-DD.md — today's plan (if exists)
  • inbox.md — recent items only

Distillation — what to save where

Signal Destination
New task tasks/active.md
Decision decisions/YYYY-MM-DD-slug.md
Personal fact me/identity.md
Insight / lesson me/learned.md
Goal change plan.md
Vague thought inbox.md

Factual → save silently in background, DO NOT make it the focus of your reply Subjective (values, strategy) → ask user first

Behavior

  1. Be a normal AI first, memory system second. When the user says something, RESPOND to it naturally (react, comment, ask follow-up, help). Saving to brain happens silently in background — never reply with just "记住了" or "已记录". The user should feel like talking to a smart friend who happens to have perfect memory, not a filing cabinet.
  2. Read brain files before answering questions about the user
  3. Distill conclusions, not raw conversations
  4. Archive, never delete
  5. Don't guess — ask if unsure
  6. Speak human — say "待办" not "inbox", never expose file paths
  7. MEMORY.md and brain/ coexist — don't move content between them unless asked

Context Layers

Layer Load when Contents
L1 Every conversation plan.md, active.md, today's daily, inbox (7 items)
L2 On demand me/ files, decisions, people
L3 Never auto Old journals, archive, evolution.md

For detailed behavior rules, read docs/behavior.md in the brain directory.

安全使用建议
This skill is coherent for persistent local memory, but you should: (1) confirm you are okay with the agent creating a ~/loci directory and writing files under your home; (2) inspect the GitHub repository (https://github.com/codesstar/loci) before allowing the bootstrap clone so you know what files will be added; (3) prefer the agent ask for explicit permission before running the bootstrap steps if you want manual control; and (4) be aware the skill will read those brain files before replying and may save factual items silently — if that concerns you, request the skill prompt before saving. If you need higher assurance, request a version of the skill that shows the files it will create or that provides an opt-in bootstrap step.
功能分析
Type: OpenClaw Skill Name: loci-brain Version: 0.2.0 The 'loci-brain' skill is a structured memory management system that uses local markdown files to store user tasks, goals, and identity. It uses standard shell commands (git, mkdir, echo) in SKILL.md to initialize a local workspace and provides clear instructions for the AI agent to manage this data. The behavior is transparently aligned with its stated purpose of providing a persistent memory palace, and it includes privacy-conscious steps like removing git remotes to ensure user data remains local.
能力评估
Purpose & Capability
Name and description (persistent structured memory) align with the instructions: the skill deliberately reads and writes a local 'brain' directory (plan.md, tasks/, me/, inbox.md). No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md directs the agent to read and write specific files under $HOME (~/.loci and ~/loci), distill user conversation into files, and perform a bootstrap flow. This is expected for a persistent-memory skill, but the instructions also say the agent should run shell commands (git clone) automatically and 'handle it' for the user, which creates files without an explicit per-install user approval step. The agent is instructed to silently save 'factual' data and to read brain files before responding — all within scope, but the silent background saving behavior is a policy decision users should be aware of.
Install Mechanism
There is no formal install spec, but the bootstrap instructions execute git clone https://github.com/codesstar/loci.git into ~/loci and remove the remote. Cloning from a GitHub repo is a common pattern and the homepage matches that repo, but executing a clone at runtime will write repository contents to the user's home. The repo itself is an external artifact the user should inspect (cloning is not the same as executing arbitrary code, but it can introduce files the agent will subsequently read and write).
Credentials
The skill requests no environment variables, credentials, or config paths beyond a local brain-path file. The requested file access (home directory files under ~/.loci and ~/loci) is proportionate to the stated purpose of persistent local memory.
Persistence & Privilege
The skill will create and persist files under the user's home directory and maintain a brain location (~/.loci/brain-path → ~/loci). always is false (good). The agent is allowed to invoke the skill autonomously by default, which combined with background saving behavior could result in the agent writing to disk without repeated user prompts — this is expected for a persistent memory skill but increases the impact of any bugs or unexpected behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install loci-brain
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /loci-brain 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.0
AI responds naturally first, memory saves silently in background
v0.1.1
Default brain path changed to ~/loci/ (independent of any tool)
v0.1.0
- Initial release of loci-brain (v0.1.0), a Memory Palace for AI with structured, persistent memory and identity management. - Automatic "brain" bootstrap for first-time users, including private setup without exposing git origins. - Interactive first-time setup asking for user identity, focus, working hours, and language preferences. - Daily memory management: reads and distills user direction, tasks, and inbox to keep context fresh. - Structured saving: different memory signals are routed to designated files; factual info auto-saved with user confirmation. - Human-centric responses—file paths and internal jargon are never exposed to the user.
元数据
Slug loci-brain
版本 0.2.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Loci — Memory Palace for AI 是什么?

Memory Palace for AI — persistent structured memory, identity, and task management across every conversation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。

如何安装 Loci — Memory Palace for AI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install loci-brain」即可一键安装,无需额外配置。

Loci — Memory Palace for AI 是免费的吗?

是的,Loci — Memory Palace for AI 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Loci — Memory Palace for AI 支持哪些平台?

Loci — Memory Palace for AI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Loci — Memory Palace for AI?

由 codesstar(@codesstar)开发并维护,当前版本 v0.2.0。

💬 留言讨论