Skill: webray1983/double-check-it (version 1.0.0)

# 再想想 (Recall and Double Check) ## 概述 本技能帮助Agent建立长期记忆系统，支持自动记录、交付复核、主动回顾三大功能。 ## 记忆文件系统 ``` memory/ # 记忆存储根目录 ├── 日记/ # 每日自动记录 │ └── YYYY-MM-DD.md ├── 文档/ # 事实、方案 │ └── 股票/ └── 经验/ # 经验总结 ``` **MEMORY.md** 保持精简，只存规则/技术/永久性信息，其他以索引指向 memory/ ## 功能1: 记住 (Auto-Memory) ### 触发时机 - 每次用户交互结束 - 执行动作完成后 ### 记录规则 | 类型 | 记录方式 | 示例 | |------|----------|------| | 普通信息 | 简洁总结 | "用户要求检查已安装技能" | | 重要信息 | 详细记录 | 用户需求、方案、定时任务创建 | ### 执行命令 ```bash # 记录普通信息 ./scripts/memory.sh record "对话摘要" --type normal # 记录重要信息 ./scripts/memory.sh record "详细记录..." --type important --tags "需求,股票" ``` ## 功能2: 再想想 (Double Check) ### 触发时机 1. **自动触发**: 每次交付前 2. **手动触发**: 用户说"再想想"/"double check"/"dc it" ### 执行流程 1. 调取相关记忆（`memory/日记/` + `memory/文档/`） 2. 对比本次任务与用户需求 3. 判断是否符合要求 4. 如不符合，自行寻找原因并修正 ### 执行命令 ```bash # 触发复核 ./scripts/memory.sh check "本次任务描述" "用户原始需求" ``` ## 功能3: 主动回顾 (Idle Reflection) ### 触发时机 心跳空闲时（每5-10次随机触发） ### 执行流程 1. 随机选取历史记忆 2. 筛选高价值记忆（用户纠正/反馈、重大决策、错误修复） 3. 提炼经验教训 → 写入 `memory/经验/` 4. 更新索引 ### 执行命令 ```bash # 触发回顾 ./scripts/memory.sh reflect ``` ## 索引系统 索引文件: `memory/index.json` ```json { "files": [ {"path": "日记/2026-03-14.md", "keywords": ["技能清理"], "summary": "删除60+未使用技能"}, {"path": "文档/股票/持仓.md", "keywords": ["中际旭创", "阳光电源"], "summary": "股票持仓信息"} ] } ``` ## 使用示例 ### 场景1: 用户要求安装技能 1. 执行安装操作 2. 调用 `memory.sh record "安装了skill-creator技能" --type important` 3. 交付完成 ### 场景2: 用户说"再想想" 1. 调用 `memory.sh check "刚才安装了skill-creator" "用户要求安装skill-creator"` 2. 如有不符，自行修正 3. 重新交付 ### 场景3: 交付前自检 1. 完成任务后 2. 自动调用 `memory.sh check` 复核 3. 确保符合需求后再交付

path: README.md
content: # Recall and Double Check Skill

Have you ever been shocked by an agent's stupidity? You asked for A, but they delivered B, and innocently said, "That's exactly what you arranged." And when you ask for evidence, they say they don't remember. This skill solves that problem. It makes the agent actively remember every conversation you have, proactively compare your original requirements when generating deliverables, and enter a three-round self-correction loop to ensure deliverables match requirements. And when you use the powerful Force to type "DC it", the agent will know something is wrong, carefully search its memory, find where it went wrong, and firmly record it in experience.

## Overview

This skill helps agents establish a long-term memory system, supporting three core functions: automatic recording, delivery review, and proactive reflection.

## Memory File System

```
memory/                    # Memory storage root directory
├── 日记/                  # Daily automatic records
│   └── YYYY-MM-DD.md
├── 文档/                  # Facts and solutions
│   └── 股票/
└── 经验/                  # Experience summaries
```

**MEMORY.md** remains concise, storing only rules/technology/permanent information, with other content indexed to memory/

## Feature 1: Auto-Memory

### Trigger Timing
- After each user interaction
- After completing an action

### Recording Rules
| Type | Recording Method | Example |
|------|------------------|---------|
| Normal Information | Concise summary | "User requested to check installed skills" |
| Important Information | Detailed record | User requirements, solutions, scheduled task creation |

### Execution Commands
```bash
# Record normal information
./scripts/memory.sh record "Conversation summary" --type normal

# Record important information
./scripts/memory.sh record "Detailed record..." --type important --tags "requirements,stocks"
```

## Feature 2: Double Check

### Trigger Timing
1. **Automatic Trigger**: Before each delivery
2. **Manual Trigger**: User says "再想想"/"double check"/"dc it"

### Execution Flow
1. Retrieve relevant memories (`memory/日记/` + `memory/文档/`)
2. Compare current task with user requirements
3. Determine if requirements are met
4. If not met, identify reasons and correct

### Execution Command
```bash
# Trigger review
./scripts/memory.sh check "Current task description" "User original requirements"
```

## Feature 3: Idle Reflection

### Trigger Timing
During idle heartbeat (randomly triggered every 5-10 times)

### Execution Flow
1. Randomly select historical memories
2. Filter high-value memories (user corrections/feedback, major decisions, error fixes)
3. Extract lessons learned → write to `memory/经验/`
4. Update index

### Execution Command
```bash
# Trigger reflection
./scripts/memory.sh reflect
```

## Index System

Index file: `memory/index.json`

```json
{
  "files": [
    {"path": "日记/2026-03-14.md", "keywords": ["skill cleanup"], "summary": "Deleted 60+ unused skills"},
    {"path": "文档/股票/持仓.md", "keywords": ["中际旭创", "阳光电源"], "summary": "Stock position information"}
  ]
}
```

## Usage Examples

### Scenario 1: User requests skill installation
1. Execute installation
2. Call `memory.sh record "Installed skill-creator skill" --type important`
3. Complete delivery

### Scenario 2: User says "再想想"
1. Call `memory.sh check "Just installed skill-creator" "User requested to install skill-creator"`
2. If discrepancies found, correct
3. Redeliver

### Scenario 3: Self-check before delivery
1. After completing task
2. Automatically call `memory.sh check` for review
3. Ensure requirements met before delivery

---

# 再想想 (Recall and Double Check) 技能

你有没有被agent的愚蠢震惊，说好的A，交给你B，还无辜的说，你就是这样安排的，而当你让他拿出证据，他说不记得了。本技能就是解决这个问题，它让agent主动记住你们的每一段对话，当生成交付物时主动对比你的最初需求，并进入三轮自我修正循环，保证交付物与需求一致。而当你用强大的原力输入"DC it"时，agent就会知道大事不妙，会小心谨慎的搜索记忆，找到它自己哪里出了错然后狠狠记入经验中。

## 概述

本技能帮助Agent建立长期记忆系统，支持自动记录、交付复核、主动回顾三大功能。

## 记忆文件系统

```
memory/                    # 记忆存储根目录
├── 日记/                  # 每日自动记录
│   └── YYYY-MM-DD.md
├── 文档/                  # 事实、方案
│   └── 股票/
└── 经验/                  # 经验总结
```

**MEMORY.md** 保持精简，只存规则/技术/永久性信息，其他以索引指向 memory/

## 功能1: 记住 (Auto-Memory)

### 触发时机
- 每次用户交互结束
- 执行动作完成后

### 记录规则
| 类型 | 记录方式 | 示例 |
|------|----------|------|
| 普通信息 | 简洁总结 | "用户要求检查已安装技能" |
| 重要信息 | 详细记录 | 用户需求、方案、定时任务创建 |

### 执行命令
```bash
# 记录普通信息
./scripts/memory.sh record "对话摘要" --type normal

# 记录重要信息
./scripts/memory.sh record "详细记录..." --type important --tags "需求,股票"
```

## 功能2: 再想想 (Double Check)

### 触发时机
1. **自动触发**: 每次交付前
2. **手动触发**: 用户说"再想想"/"double check"/"dc it"

### 执行流程
1. 调取相关记忆（`memory/日记/` + `memory/文档/`）
2. 对比本次任务与用户需求
3. 判断是否符合要求
4. 如不符合，自行寻找原因并修正

### 执行命令
```bash
# 触发复核
./scripts/memory.sh check "本次任务描述" "用户原始需求"
```

## 功能3: 主动回顾 (Idle Reflection)

### 触发时机
心跳空闲时（每5-10次随机触发）

### 执行流程
1. 随机选取历史记忆
2. 筛选高价值记忆（用户纠正/反馈、重大决策、错误修复）
3. 提炼经验教训 → 写入 `memory/经验/`
4. 更新索引

### 执行命令
```bash
# 触发回顾
./scripts/memory.sh reflect
```

## 索引系统

索引文件: `memory/index.json`

```json
{
  "files": [
    {"path": "日记/2026-03-14.md", "keywords": ["技能清理"], "summary": "删除60+未使用技能"},
    {"path": "文档/股票/持仓.md", "keywords": ["中际旭创", "阳光电源"], "summary": "股票持仓信息"}
  ]
}
```

## 使用示例

### 场景1: 用户要求安装技能
1. 执行安装操作
2. 调用 `memory.sh record "安装了skill-creator技能" --type important`
3. 交付完成

### 场景2: 用户说"再想想"
1. 调用 `memory.sh check "刚才安装了skill-creator" "用户要求安装skill-creator"`
2. 如有不符，自行修正
3. 重新交付

### 场景3: 交付前自检
1. 完成任务后
2. 自动调用 `memory.sh check` 复核
3. 确保符合需求后再交付


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)