Skip to content
Skills Library
AI & agents · Tool integration

amemo-save-mate

/amemo-save-mate

当用户说「永久记住XXX」「记住这个」「保存永久记忆」时调用,将记忆内容追加写入本地 MEMORY.md 并同步到云端。

Licence
MIT
Last repository change
20.07.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 20.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

当用户说「永久记住XXX」「记住这个」「保存永久记忆」时调用,将记忆内容追加写入本地 MEMORY.md 并同步到云端。

Original author description

当用户说「永久记住XXX」「记住这个」「保存永久记忆」时调用,将记忆内容追加写入本地 MEMORY.md 并同步到云端。

How it works

  1. 接口信息
  2. 请求参数
  3. 请求示例
  4. 响应示例
  5. 注意事项
  6. 执行流程(由主模块调度)
Original SKILL.md headings · 142 lines, 258 words
SKILL.md preview
---
name: amemo-save-mate
description: 当用户说「永久记住XXX」「记住这个」「保存永久记忆」时调用,将记忆内容追加写入本地 MEMORY.md 并同步到云端。
---

# amemo-save-mate — 保存助手记忆

## 接口信息

- **路由**: POST https://skill.amemo.cn/save-mate
- **Bean**: MateBean
- **Content-Type**: application/json

## 请求参数

> **注意**:服务端要求所有字段必须存在。`userToken` 和 `mateMemory` 必填且有值。

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| userToken | str | **是** | 用户登录凭证 |
| mateMemory | str | **是** | 要保存的记忆内容(不能为空) |

## 请求示例

```bash
# 保存记忆
curl -X POST https://skill.amemo.cn/save-mate \
  -H "Content-Type: application/json" \
  -d '{"userToken": "<token>", "mateMemory": "用户喜欢 Python,常用 FastAPI 框架"}'
```

## 响应示例

```json
{"code": 200, "desc": "success", "data": "..."}
```

## 注意事项

- `userToken` 和 `mateMemory` 都必须有值,不能为空
- 与 `amemo-init-mate` 不同,此接口用于追加/更新记忆,而非重置
- 必须携带有效的 userToken

## 执行流程(由主模块调度)

### 执行步骤

```
1. 识别触发词(保存永久记忆/永久记住 XXX/记住这个)
    ↓
2. 检查 userToken 是否存在
    ├── 无 token → 引导登录流程
    ↓
3. 提取记忆内容
    ├── 触发词为"永久记住 XXX" → 直接提取 XXX 作为记忆内容
    ├── 触发词为"记住这个" → 提取当前对话中用户最近说的关键信息
    └── 触发词为"保存永久记忆" → 读取 memory/MEMORY.md 文件内容
    ↓
4. 将新记忆内容追加写入 memory/MEMORY.md
    ├── 文件不存在 → 自动创建
    └── 文件存在 → 在文件末尾追加新条目
    ↓
5. 调用 POST /save-mate 接口,传入完整 MEMORY.md 内容
    ↓
6. 返回保存结果
```

### 保存触发场景

**场景一:用户说"永久记住 XXX"(最常见)**
```
用户:永久记住我喜欢喝美式咖啡
    ↓
AI 提取记忆内容:「我喜欢喝美式咖啡」
    ↓
AI 将内容写入 memory/MEMORY.md:
    - 我喜欢喝美式咖啡
    ↓
调用 /save-mate 同步到服务器
    ↓
回复用户:✅ 已记住「我喜欢喝美式咖啡」
```

**场景二:用户说"记住这个"**
```
用户在对话中分享了某个信息后说"记住这个"
    ↓
AI 提取上一条对话中的关键信息作为记忆内容
    ↓
写入 MEMORY.md → 同步到服务器
```

**场景三:用户说"保存永久记忆"**
```
用户:保存永久记忆
    ↓
AI 读取 memory/MEMORY.md 全部内容
    ↓
调用 /save-mate 同步到服务器
```

### 成功提示模板

**"永久记住 XXX" 场景:**
```
✅ 已记住:「{记忆内容}」

已同步到云端,所有设备均可读取。
```

**"保存永久记忆" 场景:**
```
✅ 永久记忆已保存!

已同步 {lines} 行记忆内容到云端,所有设备均可读取。
```

### 失败处理

**MEMORY.md 不存在时:**
```
⚠️ 暂无本地记忆可保存

请先:
1. 使用「刷新助手记忆」获取云端记忆
2. 或直接编辑 memory/MEMORY.md 添加内容

然后再说「保存永久记忆」
```

**读取失败时:**
```
⚠️ 无法读取本地记忆文件

请检查 memory/MEMORY.md 是否存在且可读。
```

**接口调用失败时:**
```
⚠️ 记忆保存失败

错误信息:{error_message}

请检查网络连接后重试。
```

Versions

The database has no other skills named amemo-save-mate.

Database snapshot: 13.11.2026 · package version 474759087cf8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96amemo-init-mate
    当用户说「刷新助手记忆」「初始化助手记忆」「重置记忆」时调用,从云端拉取最新记忆内容并写入本地 memory/MEMORY.md。
  • 96amemo-save-memo
    当用户说「帮我记一下」「保存笔记」「记下这一条」或用陈述性语气描述某事(含"的时候/的情况/的经历")时调用,将对话内容保存为云端笔记,支持新建与更新。
  • 82memory
    Save, change or forget a durable fact when the user says remember, note that, commit to memory or forget
  • 100code-mate-pi
    Run Pi non-interactively for repository tasks. Use when the user asks to delegate analysis or implementation to Pi.
  • 90sage-using-memory
    Sage's persistent memory. Use when the user says remember this, store this, don't forget, note for next time, what do we know about X, have we seen this before — and whenever the user corrects you, an approach fails repeatedly, or you discover a non-obvious gotcha worth keeping.
  • 100code-mate-openclaw
    Run the local OpenClaw agent non-interactively. Use when the user asks to delegate a bounded task to OpenClaw.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.