Token导航 LogoToken导航

Agent Skill · 研究检索

files-memory-system(文件存储系统)

files-memory-system 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

files-memory-system 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 17,508。

总安装 6,561周安装 268GitHub Stars 1下载 2,123核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.16.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:files-memory-system(文件存储系统)
来源仓库:https://github.com/wxwzl/files-memory-system
安装命令:
openclaw skills install files-memory-system
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install files-memory-system

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

为 OpenClaw Agent 设计的多上下文内存管理系统,支持组隔离与全局共享。适用于复杂任务中需区分不同工作区记忆或跨组协作的信息组织场景。提供结构化存储接口用于技能间数据交换,增强代理行为的一致性与可追溯性。安装后需初始化工作区并配置访问权限,避免敏感信息泄露至非授权组。

维护状态未知,建议结合源码评估长期可用性后再投入生产环境使用。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install files-memory-system;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

files-memory-system 怎么安装?

在终端执行 openclaw skills install files-memory-system。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

files-memory-system 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

files-memory-system 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

files-memory-system 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

files-memory-system 用的人多吗?

公开数据是累计安装 6,561 次,近一周安装 268 次,下载 2,123 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

files-memory-system 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
files-memory-system

文件存储系统 · 本页

6,5611接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
files-memory-system
description
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation. Use when initializing or managing memory systems for multi-channel deployments, creating group-specific memory directories, setting up MEMORY.md for long-term cross-group memories, organizing workspace directories (projects/repos), cloning repositories to group-isolated locations, managing group-isolated skills, or handling any file operations in group chat contexts.

⚠️ CRITICAL RULES

群聊中克隆仓库的硬性规定

❌ 禁止:直接使用 git clone 命令 ✅ 必须:使用 auto-clone.sh 脚本并传入 --group 参数

当用户在群聊中要求"克隆仓库"时:

  1. 不要执行 git clone <url> → 这会克隆到 /workspace/repos/
  2. 必须执行 ./skills/files-memory-system/scripts/auto-clone.sh --group feishu <group_id> <url> → 这会克隆到群组目录

Group ID 获取方式:从 metadata 中的 conversation_label 字段获取(如 oc_a2b821...)


🔴 会话开始强制检查清单 (群聊)

OpenClaw Bug: 群聊不会自动加载群记忆文件

每次在群聊中收到消息时,必须执行以下检查:

检查 metadata.is_group_chat:
├── IF true (群聊):
│   ├── 读取 memory/group_<channel>_<conversation_label>/GLOBAL.md
│   ├── 读取 memory/group_<channel>_<conversation_label>/YYYY-MM-DD.md (today)
│   └── 读取 memory/global/GLOBAL.md
│
└── IF false (私聊):
    ├── 读取 memory/private/YYYY-MM-DD.md (today)
    └── 读取 memory/global/GLOBAL.md

禁止在群聊中执行任何操作前跳过此检查!


Memory System

📖 新用户? 请先阅读 用户使用指南 了解如何快速上手!

Installation

Method 1: Auto-Install with Self-Registration (Recommended)

cd ~/.openclaw/skills/files-memory-system
./scripts/install.sh

This will:

  1. ✅ Copy skill to /workspace/skills/files-memory-system/ (standard location)
  2. ✅ Auto-register in AGENTS.md so the agent knows this skill exists
  3. ✅ Enable auto-discovery on every agent startup

Method 2: Manual Install

# 1. Copy to standard location
mkdir -p /workspace/skills
cp -r ~/.openclaw/skills/files-memory-system /workspace/skills/

# 2. Run self-registration
cd /workspace/skills/files-memory-system
./scripts/post-install.sh

Method 3: Using clawhub

cd /workspace
clawhub install files-memory-system
# Then manually run:
./skills/files-memory-system/scripts/post-install.sh

Self-Registration Mechanism

This skill implements auto-declaration - it automatically adds a section to AGENTS.md upon installation. This ensures:

  • The agent knows files-memory-system exists without being told
  • Memory locations are documented where the agent reads
  • No manual configuration needed after installation

To verify registration:

grep -A 20 "files-memory-system" /workspace/AGENTS.md

To unregister (remove from AGENTS.md):

sed -i '/<!-- files-memory-system: installed -->/,/<!-- files-memory-system: end -->/d' /workspace/AGENTS.md

Overview

This skill provides a complete memory management system that enables OpenClaw agents to maintain context across multiple chat groups while keeping group-specific memories and skills isolated. It includes:

  • Group-isolated memory: Separate memory directories per group/channel
  • Group-isolated skills: Skills installed per group, preventing cross-group pollution
  • Global shared memory: Cross-group knowledge in memory/global/
  • Long-term memory: MEMORY.md for curated, permanent memories
  • Workspace organization: Structured projects/ and repos/ directories

Session Start - Automatic Memory Loading

⚠️ 重要: 每次进入会话时,必须自动加载对应的记忆!

群聊中的自动加载流程

当收到群聊消息时,按以下顺序加载记忆:

  1. 读取群组 GLOBAL.md - 获取群组关键信息和资源索引
   memory/group_<channel>_<id>/GLOBAL.md
  1. 读取今日和昨日记录 - 获取最近的对话上下文
   memory/group_<channel>_<id>/YYYY-MM-DD.md (today)
   memory/group_<channel>_<id>/YYYY-MM-DD.md (yesterday)
  1. 读取跨群组全局记忆 - 获取跨群组共享的信息
   memory/global/GLOBAL.md

私聊中的自动加载流程

  1. 读取私聊记录 - 今日和昨日
   memory/private/YYYY-MM-DD.md (today)
   memory/private/YYYY-MM-DD.md (yesterday)
  1. 读取跨群组全局记忆
   memory/global/GLOBAL.md
  1. 读取长期精华记忆 (仅私聊)
   MEMORY.md

记忆加载检查清单

群聊中必须加载:

  • [ ] 当前群组的 GLOBAL.md
  • [ ] 今天的群组日志 (YYYY-MM-DD.md)
  • [ ] 昨天的群组日志 (回顾上下文)
  • [ ] 跨群组全局记忆 (memory/global/GLOBAL.md)

私聊中必须加载:

  • [ ] 私聊今日和昨日日志
  • [ ] 跨群组全局记忆 (memory/global/GLOBAL.md)
  • [ ] MEMORY.md (仅私聊)

Usage Scenarios

Scenario 1: User Says "Clone This Repo" in a Group Chat

Context: User in group "oc_a2b821..." says: "Clone https://github.com/user/project"

Automatic Actions:

  1. Detect current group context: group_feishu_oc_a2b821...
  2. Clone to: memory/group_feishu_oc_a2b821.../repos/project/
  3. Update group's GLOBAL.md with project info
  4. Confirm: "✅ Cloned to group repos/project/"

Manual Commands:

# Option 1: Use auto-clone script with --group parameter (推荐)
./scripts/auto-clone.sh --group feishu oc_a2b821... https://github.com/user/project

# Option 2: Direct git clone
cd memory/group_feishu_xxx/repos
git clone https://github.com/user/project

# Option 3: Using environment variables (向后兼容)
GROUP_ID="oc_xxx" CHANNEL="feishu" ./scripts/auto-clone.sh https://github.com/user/project

Agent Implementation (直接执行,无需用户交互):

当用户要求克隆仓库时,先判断当前是否在群聊中(查看 inbound metadata 中的 is_group_chat 字段),然后:

如果是群聊 (is_group_chat: true):

  1. 从 metadata 读取 conversation_label 作为 group_id
  2. 使用 --group 参数执行克隆:
./skills/files-memory-system/scripts/auto-clone.sh \
    --group feishu "<conversation_label>" \
    "https://github.com/user/project"

如果是私聊 (is_group_chat: false):

./skills/files-memory-system/scripts/auto-clone.sh \
    --private \
    "https://github.com/user/project"

关键要点:

  • ⚠️ 群聊中必须使用 --group 参数,否则仓库会克隆到全局目录
  • --group <channel> <group_id> 必须在 URL 之前
  • 群组ID从 conversation_label 获取 (如 oc_a2b821...)
  • 脚本会自动创建缺失的群组记忆目录
  • 如果用户没指定项目名称,脚本会自动从 URL 提取

After Cloning - Update GLOBAL.md:

## 群组项目 (repos/)

| 项目名称 | 类型 | 描述 | 位置 |
|---------|------|------|------|
| project | cloned | 克隆的示例项目 | repos/project/ |

Scenario 2: Create New Project in Group Context

Context: User says: "Create a new tool for our group"

Automatic Actions:

  1. Create project directory: memory/group_xxx/repos/my-tool/
  2. Initialize with template if needed
  3. Update GLOBAL.md
  4. Start working in the group-specific location

Manual Commands:

# Create new project in group context
mkdir -p memory/group_feishu_xxx/repos/my-tool
cd memory/group_feishu_xxx/repos/my-tool
# ... create files ...

Scenario 3: Install Skill for Specific Group

Context: User says: "Install inkos skill for this group only"

Automatic Actions:

  1. Install to: memory/group_xxx/skills/inkos/
  2. Update group's GLOBAL.md
  3. Skill is isolated to this group only

Manual Commands:

# Method 1: Using clawhub with --dir
clawhub install inkos --dir memory/group_feishu_xxx/skills

# Method 2: Manual copy
mkdir -p memory/group_feishu_xxx/skills/inkos
cp -r inkos/* memory/group_feishu_xxx/skills/inkos/

Update GLOBAL.md:

## 已安装的群组专属 Skills

| Skill | 版本 | 来源 | 描述 |
|-------|------|------|------|
| inkos | 1.0.0 | clawhub | 小说写作工具 |

Scenario 4: Record Information to Group Memory ⭐

Context: User in group chat says: "记录到群记忆里: 项目信息" / "记录到全局记忆里: API密钥" / "记住这个"

Automatic Actions (Agent Must Do):

  1. Detect the intent: User wants to record information to group memory
  2. Determine target location (按优先级匹配):

- If "记录到群记忆里" → memory/group_<channel>_<id>/GLOBAL.md - If "记录到全局记忆里"/"记录到跨群记忆里" → memory/global/GLOBAL.md - If "记录到私聊里" → memory/private/GLOBAL.md - If "群文档"/"群组" (模糊指令) → memory/group_<channel>_<id>/GLOBAL.md

  1. Write to file immediately: Do not just say "I remember", actually write to file!
  2. Confirm: "✅ 已记录到群记忆" / "✅ 已保存到全局记忆"

Example 1: Record Project Info

User: "记录到群记忆里: 项目信息"
项目名称: MyApp
技术栈: React + Node.js
负责人: 张三

Agent Action:
1. Detect "记录到群记忆里" → Target: memory/group_xxx/GLOBAL.md
2. Format as table and append:

## 活跃项目

| 项目名称 | 技术栈 | 负责人 | 更新时间 |
|---------|--------|--------|----------|
| MyApp | React + Node.js | 张三 | 2026-03-23 |

3. Confirm: "✅ 已记录到群记忆"

Example 2: Record API Key (⚠️ Not Recommended)

User: "记录到全局记忆里:API密钥 sk-abc123"

⚠️ **SECURITY WARNING**:
Storing API keys in plain text in memory files is NOT recommended.
**Recommended approach: Use environment variables**

export API_KEY="sk-xxx"

Alternative (if environment variables not possible):
- Use a secrets manager
- Use encrypted storage

If user insists on storing in memory:
1. Warn: "⚠️ 存储 API 密钥到记忆文件存在安全风险,建议仅用于测试环境"
2. Detect target location based on user command
3. Format as table and append
4. Confirm: "✅ 已记录 (⚠️ 安全风险)"

Recommended User Commands:

  • "记录到群记忆里: [内容]" → 仅当前群可见
  • "记录到全局记忆里: [内容]" → 所有群共享
  • "记录到跨群记忆里: [内容]" → 同全局记忆
  • "记录到私聊里: [内容]" → 仅私聊可见

Critical Rules:

  • ❌ DO NOT just say "I remember" without writing to file
  • ❌ DO NOT store sensitive info without clarifying scope
  • ✅ ALWAYS confirm the location where info is stored
  • ✅ Use tables in GLOBAL.md for structured info
  • ✅ Add timestamps for time-sensitive info

Scenario 5: Create Files in Group Chat ⭐

Context: User in group chat says: "帮我写一篇文章" / "创建一个文档" / "生成xxx文件"

Automatic Actions (Agent Must Do):

  1. Detect the intent: User wants to create a file in group context
  2. Determine correct location:

- Default: memory/group_<channel>_<id>/articles/ (for articles/docs) - Code: memory/group_<channel>_<id>/repos/ (for code projects)

  1. Create the file: Write to the correct group-specific path
  2. Auto-update GLOBAL.md: ⚠️ CRITICAL - After creating file, auto-append to GLOBAL.md
  3. Confirm: "✅ 已创建并记录到群文档"

Scenario 6: Working Across Multiple Groups

Context: Same user in different groups

Group A (小说创作):

  • Skills: memory/group_A/skills/inkos/
  • Projects: memory/group_A/repos/novel-tools/

Group B (编程学习):

  • Skills: memory/group_B/skills/code-helper/
  • Projects: memory/group_B/repos/exercises/

Behavior:

  • In Group A: Only sees inkos, not code-helper
  • In Group B: Only sees code-helper, not inkos
  • No pollution between groups!

Scenario 5: Migrate Information to Global

Context: Information becomes relevant to multiple groups

Migration Process:

  1. Move from: memory/group_A/GLOBAL.md
  2. To: memory/global/GLOBAL.md
  3. Update Group A with reference
  4. All groups can now access

Example:

# Original in group_A/GLOBAL.md
## Project Configuration
Config: xxx

# After migration - in global/GLOBAL.md
## Shared Project Configuration
Config: xxx

# In group_A/GLOBAL.md - add reference
## 跨群组资源
See: memory/global/GLOBAL.md

⚠️ Security Note: Do NOT migrate API keys, passwords, or other sensitive credentials to global memory. Keep secrets in environment variables or private memory only.

Memory Architecture

Directory Structure

/workspace/
├── memory/
│   ├── global/
│   │   ├── GLOBAL.md              # Shared key information
│   │   └── YYYY-MM-DD.md          # Daily logs
│   ├── group_feishu_<id>/         # Feishu group memories
│   │   ├── GLOBAL.md              # Group key information
│   │   ├── YYYY-MM-DD.md          # Daily logs
│   │   ├── skills/                # ⭐ Group-specific skills
│   │   └── repos/                 # ⭐ Group-specific projects
│   └── private/
│       ├── GLOBAL.md
│       └── YYYY-MM-DD.md
├── MEMORY.md
├── skills/                        # Global shared skills
├── projects/
└── repos/

Automation Scripts

scripts/init-group-memory.sh - Initialize group memory structure:

./scripts/init-group-memory.sh feishu oc_xxx "小说创作群组"

scripts/ensure-group-memory.sh - Ensure group memory directory exists (on-demand):

# Auto-initializes group memory with all subdirectories
./scripts/ensure-group-memory.sh feishu oc_xxx "小说创作群组"

scripts/ensure-private-memory.sh - Ensure private memory directory exists:

# Auto-initializes private memory when in private chat context
./scripts/ensure-private-memory.sh

scripts/ensure-global-memory.sh - Ensure global memory directory exists:

# Auto-initializes global memory for cross-group information
./scripts/ensure-global-memory.sh

scripts/auto-clone.sh - Clone repo to correct location:

# Auto-detects context and clones to appropriate location
./scripts/auto-clone.sh https://github.com/user/repo

Group-Isolated Skills System

ScopeLocationAccessPriority
Group-specificmemory/group_<id>/skills/Only current groupHigh
Global/workspace/skills/All groupsLow

Promoting Cross-Group Memory Awareness

1. Include Reference in Group GLOBAL.md

Every group's GLOBAL.md should include:

## Cross-Group Resources

📚 **Cross-Group Global Memory**: `memory/global/GLOBAL.md`

Contains information shared across all groups.

2. Key Information to Store Globally

  • Relevant to multiple groups
  • Common standards or conventions
  • Shared resources (non-sensitive)
  • Tool documentation and links

⚠️ Security Note: Do NOT store API keys, passwords, or other sensitive credentials in global memory. Use environment variables or private memory for secrets.

3. Migration from Group to Global

When information becomes relevant to multiple groups:

  1. Move to memory/global/GLOBAL.md
  2. Update original with reference link
  3. Notify affected groups

Memory Auto-Initialization

All memory directories are automatically initialized using a dual approach (A + B):

Approach A: Installation-Time Setup

When installing files-memory-system, the following directories are automatically created:

  • memory/private/ with GLOBAL.md
  • memory/global/ with GLOBAL.md

Approach B: On-Demand Setup

When using auto-clone.sh or other scripts, the system automatically detects and initializes missing directories:

  • Group context: Calls ensure-group-memory.sh
  • Private context: Calls ensure-private-memory.sh
  • Global operations: Calls ensure-global-memory.sh

This ensures all memory locations are always available when needed, even if:

  • The installation step was skipped
  • The directory was accidentally deleted
  • Working in a new workspace

Memory Directory Comparison

FeaturePrivate MemoryGroup MemoryGlobal Memory
Locationmemory/private/memory/group_<id>/memory/global/
Auto-init A✅ Install-time❌ No✅ Install-time
Auto-init B✅ On-demand✅ On-demand✅ On-demand
SkillsUses globalCan isolateN/A
ProjectsUses globalCan isolateN/A
Scope1-on-1 chatsSpecific groupAll groups
Ensure Scriptensure-private-memory.shensure-group-memory.shensure-global-memory.sh
Scope1-on-1 chats onlySpecific to one group
Auto-init✅ Yes (A+B)✅ Yes (B only)

Security Notes

  • MEMORY.md only loaded in private chats
  • Group skills completely isolated
  • Preserve group memory on disband

平台分布

OpenClaw

82.21%
按下载量换算1,745

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills