← Back to Skills Marketplace
crater18098077-svg

小星记忆系统

by kedong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
101
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install xiaoxing-memory
Description
记忆模块管理系统,让 AI Agent 拥有持久化记忆能力。当需要保存跨会话信息、检索历史记录、建立个人知识库、或执行记忆相关操作(搜索/读取/保存)时触发本技能。
README (SKILL.md)

agent-memory

提供跨会话持久化记忆的架构和工作流。

核心架构

MEMORY.md          — 索引文件(总入口)
memory/            — 记忆存储目录
  YYYY-MM-DD.md    — 每日会话日志
  topic-*.md       — 主题记忆文件(可扩展)
openclaw-kk/memory/private/  — 用户私有记忆(可选)

工作流

保存记忆(两步走)

  1. 写主题文件(带 YAML frontmatter):
---
name: topic-name
description: 一句话描述该记忆内容
type: infrastructure|security|documentation|reference|automation
created: 2026-04-01
---

正文内容...
  1. 更新索引(在 MEMORY.md 中加入条目):
- [标题](文件名.md) 一句话语义钩子

检索记忆

使用 memory_search 工具搜索 MEMORY.md 和 memory/ 下的所有 .md 文件,返回语义相关的结果(top snippets + path + lines)。

搜索时机:回答任何关于历史任务、偏好、日期、人名等问题前,必须先 memory_search

访问主题文件

搜索后若需要详细内容,用 memory_get 按 path/from/lines 读取对应行,避免将整个文件加载到上下文。

索引规则

  • 索引行数控制在 200 行以内
  • 详细内容不直接写入索引,只写"语义钩子"
  • 定期整理:每日日志 → 提炼 → 并入主题文件 → 清理过时条目

禁止事项

  • 禁止"记住这个"这类心理笔记,所有信息必须写文件
  • 禁止在索引中直接写入大段详细内容

详见 references/architecture.md

Usage Guidance
这个技能是一个基于文件的记忆规范:它会读取和(按指引)写入工作区内的 MEMORY.md 与 memory/ 下的 markdown 文件来保存与检索记忆。要点: - 仅在你信任并控制这些工作区文件的情况下启用;不要把敏感凭据或密码写入记忆文件(USER.md、private/ 下的文件尤其要注意)。 - 检查并限制谁/哪个代理可以访问 openclaw-kk/memory/private/ 目录;该目录会被视为“私有记忆”。 - 该技能不会从外部下载代码或请求云凭据,但会读取文本文件,因此请用文件权限或加密保护敏感内容。 如果你希望更强的保证,请要求技能作者说明:1) 何时会写入文件(自动还是仅在明确命令下),2) 是否支持加密/访问控制,3) 作者身份与源码托管位置。
Capability Analysis
Type: OpenClaw Skill Name: xiaoxing-memory Version: 1.0.0 The skill bundle defines a structured memory management system for AI agents, utilizing Markdown files and YAML metadata to maintain persistence across sessions. It establishes a clear hierarchy for indexing (MEMORY.md), daily logging, and topic-specific storage, including instructions for the agent to use search tools before answering historical queries. No malicious code, data exfiltration, or harmful prompt injections were identified; the system is designed for organizational utility within the OpenClaw environment.
Capability Assessment
Purpose & Capability
技能名与描述表明提供“跨会话持久化记忆”,其 SKILL.md 仅描述基于工作区文件(MEMORY.md、memory/ 下的 .md 文件、可选 private 目录)的索引与检索流程。没有请求与记忆管理无关的二进制、环境变量或外部服务,所需能力与用途一致。
Instruction Scope
说明要求在回答历史/偏好/日期/人名等问题前使用 memory_search 并按需用 memory_get 读取文件片段;会话启动时会读取 SOUL.md、USER.md、当日/前日日志及可选私有 MEMORY.md。读取这些工作区文件对记忆功能是必要的,但这些文件可能包含敏感信息(例如 USER.md 或 private 目录),建议确保这些文件的访问控制与内容治理。
Install Mechanism
这是 instruction-only 的技能,没有 install 规范、没有下载或写盘操作声明,因而不会在安装时引入外部代码或二进制,安装风险极低。
Credentials
技能未声明任何环境变量或凭证,也未要求访问系统配置路径。唯一的‘资源’是工作区内的 markdown 文件,这与其功能直接相关;因此所请求的权限比例合适。
Persistence & Privilege
flags 中 always 为 false,技能不会被强制始终注入;也没有写入或修改其他技能/系统配置的指令。技能所需持久化是对工作区文件的读写(按文档)——这属于其功能范围。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xiaoxing-memory
  3. After installation, invoke the skill by name or use /xiaoxing-memory
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug xiaoxing-memory
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 小星记忆系统?

记忆模块管理系统,让 AI Agent 拥有持久化记忆能力。当需要保存跨会话信息、检索历史记录、建立个人知识库、或执行记忆相关操作(搜索/读取/保存)时触发本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 101 downloads so far.

How do I install 小星记忆系统?

Run "/install xiaoxing-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 小星记忆系统 free?

Yes, 小星记忆系统 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 小星记忆系统 support?

小星记忆系统 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 小星记忆系统?

It is built and maintained by kedong (@crater18098077-svg); the current version is v1.0.0.

💬 Comments