memory-skills

SKILL开发
开发 未标注权限 许可证不明确

CRITICAL: Use for managing agent memory based on CoALA cognitive architecture. Triggers on: remember this, 记住这个, save this info, learn from this, 学习这个, memory system, 记忆系统, knowledge base, what did we learn, 之前学到的, project context, 项目上下文, my preferences, 偏好设置, recall memory, 回忆一下, what do you know about, 你知道什么, forget this, 忘记这个, reflect on, 反思一下, summarize session, 总结会话

一句话选型结论

按资料字段整理

memory-skills是开发类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 29 仓库 cowork-skills
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方ZhangHanDong仓库 cowork-skills · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 ZhangHanDong/cowork-skills
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 未标注
正文体量12.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
memory-skills当前 未标注权限 GitHub 仓库 未标注 未标注 无
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

12.0 KB
模型实际读到的说明书原文,来自技能仓库

Memory Skills (CoALA-based)

> Memory = Filesystem - Cognitive architecture for language agents

Based on the CoALA framework (Cognitive Architectures for Language Agents), this skill implements a complete memory system with four memory types.

Memory Architecture

                    ┌─────────────────┐
                    │  Working Memory │  ← Short-term, central hub
                    └────────┬────────┘
                             │
        ┌────────────────────┼────────────────────┐
        ↓                    ↓                    ↓
┌───────────────┐   ┌───────────────┐   ┌───────────────┐
│   Episodic    │   │   Semantic    │   │  Procedural   │
│   情景记忆     │   │   语义记忆     │   │   程序性记忆   │
└───────────────┘   └───────────────┘   └───────────────┘
        ↑                                        ↑
    Long-term ─────────────────────────────── Long-term

Memory Types (CoALA)

Type Purpose Example
Working Current session context Active goals, intermediate reasoning
Episodic Past experiences Mistakes, solutions, conversation history
Semantic World knowledge Facts, learnings, reflections
Procedural How to do things Preferences, workflows, prompt templates

Directory Structure

Global Memory (~/.claude/memory/)

Cross-project shared knowledge:

~/.claude/memory/
├── working/                    # Working Memory (可持久化的会话上下文)
│   └── {name}-context.md       # 保存的会话状态 (通过 /save-context)
│
├── procedural/                 # Procedural Memory
│   ├── preferences.md          # User preferences
│   ├── workflows.md            # Common workflows
│   └── prompts/                # Reusable prompt templates
│       └── {name}.md
│
├── semantic/                   # Semantic Memory
│   ├── learnings/              # Knowledge by topic
│   │   ├── rust-tips.md
│   │   ├── git-tips.md
│   │   └── {topic}.md
│   └── reflections/            # Insights from reflection
│       └── {date}-{insight}.md
│
├── episodic/                   # Episodic Memory
│   ├── mistakes/               # Errors and how they were fixed
│   │   └── {date}-{error}.md
│   ├── solutions/              # Successfully solved problems
│   │   └── {date}-{problem}.md
│   └── trajectories/           # Complete task execution logs
│       └── {date}-{task}.md
│
└── index.json                  # Search index (auto-generated)

Project Memory (.claude/memory/)

Project-specific knowledge:

{project}/.claude/memory/
├── semantic/
│   ├── architecture.md         # Project architecture
│   ├── conventions.md          # Coding conventions
│   └── decisions.md            # Technical decisions (ADRs)
│
├── episodic/
│   └── sessions/               # Session summaries
│       └── {date}-{topic}.md
│
└── index.json                  # Project search index

Commands

Command Action Memory Type
/remember <content> Save to appropriate memory Auto-detect
/recall <topic> Search and retrieve All types
/forget <topic> Delete specific memory All types
/reflect Generate insights from episodic → semantic Episodic → Semantic
/summarize-session Save current session summary Episodic
/save-context Save key context for later resume Working → File
/load-context Load saved context into session File → Working

Working Memory Commands

/save-context [name] - 保存当前会话的关键上下文

触发词: "保存上下文", "save context", "保存当前状态"

# 保存到: ~/.claude/memory/working/{name}-context.md 或 .claude/memory/working/

## Session Context: {name}
**Saved**: {timestamp}

### Current Goals
- {what we're trying to accomplish}

### Key Decisions Made
- {important decisions in this session}

### Important Context
- {critical information to remember}

### Next Steps
- {what to do when resuming}

/load-context [name] - 加载之前保存的上下文

触发词: "加载上下文", "load context", "恢复上下文", "继续之前的工作"

  1. Search for context files in working/ directory
  2. Display available contexts if name not specified
  3. Load and summarize the selected context
  4. Confirm: "已加载上下文: {name}"

Instructions for Claude

Action Space (CoALA)

You have four memory actions:

  1. Retrieval (读取): Load from long-term → working memory
  2. Reasoning (推理): Process in working memory
  3. Learning (写入): Save from working → long-term memory
  4. Forgetting (遗忘): Remove from long-term memory

When User Says "Remember" / "记住"

  1. Detect memory type:
    Content about... → Memory Type → Location ───────────────────────────────────────────────────── User preference → Procedural → procedural/preferences.md Workflow/process → Procedural → procedural/workflows.md Fact/knowledge → Semantic → semantic/learnings/{topic}.md Project architecture → Semantic → .claude/memory/semantic/architecture.md Error encountered → Episodic → episodic/mistakes/{date}-{error}.md Problem solved → Episodic → episodic/solutions/{date}-{problem}.md

  2. Format content:
    ```markdown
    ## {YYYY-MM-DD} - {brief title}

{content}

Context: {why this is important}
Tags: {relevant keywords}


```

  1. Update index (if index.json exists):
    json { "entries": [ { "file": "semantic/learnings/rust-tips.md", "keywords": ["rust", "ownership", "borrow"], "updated": "2026-01-25" } ] }

  2. Confirm: Tell user what was saved, where, and memory type

When User Says "Recall" / "回忆"

  1. Search priority:
    - First: Project memory .claude/memory/
    - Then: Global memory ~/.claude/memory/
    - Check: index.json for keyword matches
    - Fallback: Scan file names and content

  2. Return results with metadata:
    ```
    Found 2 relevant memories:

📁 [Semantic] ~/.claude/memory/semantic/learnings/rust-tips.md
→ "Use Arc<Mutex<T>> for shared mutable state..."

📁 [Episodic] .claude/memory/episodic/solutions/2026-01-20-async-bug.md
→ "Fixed by adding .await after spawn..."
```

  1. If nothing found:
    没有找到关于 &quot;{topic}&quot; 的记忆。 → 使用 /remember 来保存新知识

When User Says "Forget" / "忘记"

  1. Confirm before deletion:
    ```
    找到以下相关记忆:
    - ~/.claude/memory/semantic/learnings/old-api.md

确认删除吗? (y/n)
```

  1. Delete and update index

  2. Confirm: "已删除关于 {topic} 的记忆"

When User Says "Reflect" / "反思"

Reflection converts episodic memories into semantic knowledge:

  1. Scan recent episodic memories (last 7 days)

  2. Identify patterns:
    - Repeated mistakes → Learning opportunity
    - Multiple solutions → Best practice
    - Common trajectories → Workflow template

  3. Generate reflection:
    ```markdown
    ## 2026-01-25 - Reflection: Async Error Handling

Pattern observed: In 3 recent sessions, async errors were caused by missing .await

Insight: Always check for missing .await when debugging async code

Source episodes:
- episodic/mistakes/2026-01-20-async-bug.md
- episodic/mistakes/2026-01-22-tokio-error.md
- episodic/solutions/2026-01-23-fixed-spawn.md


```

  1. Save to: semantic/reflections/{date}-{insight}.md

When User Says "Summarize Session" / "总结会话"

  1. Gather session context:
    - What was accomplished
    - Key decisions made
    - Problems encountered and solutions
    - New learnings

  2. Generate summary:
    ```markdown
    ## 2026-01-25 - Session: Implementing Memory System

Goals: Improve memory-filesystem skill based on CoALA

Accomplished:
- Added working memory support
- Implemented forgetting mechanism
- Added reflection capability

Key Decisions:
- Used JSON for search index
- Separated global vs project memory

Learnings:
- CoALA has 4 memory types, not 3


```

  1. Save to:
    - Project: .claude/memory/episodic/sessions/{date}-{topic}.md
    - Or global: ~/.claude/memory/episodic/trajectories/{date}-{task}.md

Auto-Learning (Proactive)

When you discover valuable information during a session:

  1. Detect learning opportunity:
    - Error fixed → Potential mistake memory
    - New technique used → Potential learning
    - Repeated action → Potential workflow

  2. Ask user: "发现了一个有用的技巧,要我记住吗?"

  3. If confirmed: Save to appropriate memory location

Quick Reference

Trigger Memory Type Location
"保存上下文" / "save context" Working working/{name}-context.md
"加载上下文" / "load context" Working Read from working/
"记住这个偏好" Procedural procedural/preferences.md
"记住这个流程" Procedural procedural/workflows.md
"记住这个技巧" Semantic semantic/learnings/{topic}.md
"记住项目架构" Semantic .claude/memory/semantic/architecture.md
"记住这个错误" Episodic episodic/mistakes/{date}-{error}.md
"记住这个解决方案" Episodic episodic/solutions/{date}-{problem}.md
"回忆/你知道..." Retrieval Search all locations
"忘记..." Forgetting Delete from memory
"反思" Reflection Episodic → Semantic
"总结会话" Learning Save session to episodic

Example Interactions

Example 1: Remember

User: &quot;记住:Rust 中使用 thiserror 来定义错误类型&quot;

Claude:
1. Detect: Knowledge/fact → Semantic memory
2. Location: ~/.claude/memory/semantic/learnings/rust-tips.md
3. Append with date, tags
4. Update index.json
5. Response: &quot;✓ 已保存到语义记忆 (rust-tips.md)&quot;

Example 2: Reflect

User: &quot;/reflect&quot;

Claude:
1. Scan episodic/mistakes/ and episodic/solutions/ (last 7 days)
2. Found pattern: 3 instances of borrow checker errors
3. Generate insight: &quot;Common cause: trying to move value after borrow&quot;
4. Save to: semantic/reflections/2026-01-25-borrow-patterns.md
5. Response: &quot;✓ 生成了 1 条反思,已保存到语义记忆&quot;

Example 3: Forget

User: &quot;忘记关于旧 API 的记忆&quot;

Claude:
1. Search: Found semantic/learnings/old-api-v1.md
2. Confirm: &quot;找到 1 条相关记忆,确认删除?&quot;
3. User confirms
4. Delete file, update index
5. Response: &quot;✓ 已删除关于旧 API 的记忆&quot;

常见问题

5 问
答案由本站依据条目字段整理
memory-skills怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

memory-skills支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

memory-skills权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

memory-skills收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

memory-skills用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。