TopRank Skills

Home / Claw Skills / Autres / auto-logger
Official OpenClaw rules 15%

auto-logger

自动记录日常活动、对话摘要、重要事件到 memory 目录。支持定时记录、事件触发记录、每日总结。

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 auto-logger 技能。 若已安装,则直接安装 auto-logger 技能。

Overview

Skill Key
2426758093/auto-logger
Author
2426758093
Source Repo
openclaw/skills
Version
-
Source Path
skills/2426758093/auto-logger
Latest Commit SHA
54c7d781dbc9688f79eaa79eee65d62de1a652a1

Extracted Content

SKILL.md excerpt

# Auto Logger - 自动记录技能

自动记录用户的日常活动、重要对话、决策和事件,形成持久的记忆文件。

## 触发条件

### 自动触发
- **会话结束时** - 自动总结本次会话的关键信息
- **定时任务** - 每小时/每天自动整理记忆
- **检测到重要信息** - 如用户明确说"记住这个"、"保存一下"

### 手动触发
- "记录一下"
- "记住这个"
- "保存到记忆"
- "今天做了什么"

## 记录内容分类

### 1. 对话摘要
- 用户的重要请求
- 完成的任务
- 用户的偏好和习惯
- 决策和结论

### 2. 事件日志
- 文件创建/修改
- 配置变更
- 任务执行结果
- 错误和问题

### 3. 时间线
- 按时间顺序记录活动
- 便于回溯和审计

## 文件结构

```
workspace/
├── memory/
│   ├── 2026-03-01.md       # 每日记忆文件
│   ├── 2026-03-02.md
│   └── ...
├── MEMORY.md                # 长期记忆( curated )
└── skills/auto-logger/
    └── SKILL.md            # 本技能说明
```

## 执行流程

### 1. 检测记录时机
```javascript
// 伪代码
if (userSays("记住" | "保存" | "记录")) {
    captureContext();
}

if (sessionEnding()) {
    summarizeSession();
}

if (scheduledTime()) {
    dailyReview();
}
```

### 2. 提取关键信息
- 识别用户意图
- 提取实体(人名、地点、时间、任务)
- 判断重要性等级

### 3. 写入记忆文件
- 创建/更新 `memory/YYYY-MM-DD.md`
- 格式化记录内容
- 添加时间戳和标签

### 4. 定期整理
- 每周回顾 daily 文件
- 提炼重要内容到 `MEMORY.md`
- 删除过期或无关信息

## 输出格式

### 每日记忆文件 (`memory/YYYY-MM-DD.md`)

```markdown
# 2026-03-01 记忆

## 📋 今日概要
- 会话数:X
- 重要事件:Y
- 完成任务:Z

## 🗣️ 对话记录

### 09:25 - 邮箱配置
- 用户提供 QQ 邮箱地址:2426758093@qq.com
- 提供授权码用于 SMTP 配置
- 已保存到 TOOLS.md 和 .env.ps1

### 09:38 - 信息同步要求
- 用户要求保存所有个人信息
- 要求形成 skills 实现自动记录
- 已创建 auto-logger 技能

## ✅ 完成任务
- [x] 配置 QQ 邮箱 SMTP
- [x] 创建环境变量脚本
- [x] 更新 USER.md
- [x] 创建用户偏好配置文档
- [x] 创建 auto-logger 技能

## 📝 重要决策
- 新闻简报改为每日邮件自动发送
- 所有配置信息集中保存到 TOOLS.md

## 🏷️ 标签
#邮箱配置 #技能创建 #自动记录 #新闻简报
```

### 长期记忆 (`MEMORY.md`)

```markdo...

README excerpt

# Auto Logger - 使用指南

## 🚀 快速开始

### 1. 手动记录
```powershell
# 记录某件事
.\scripts\auto-logger.ps1 -Action "manual"
```

### 2. 会话结束自动记录
```powershell
# 在会话结束时调用
.\scripts\auto-logger.ps1 -Action "session_end" -Summary "会话摘要内容"
```

### 3. 每日整理(定时任务)
```powershell
# 每天晚上 23:00 执行
.\scripts\auto-logger.ps1 -Action "daily_review"
```

---

## ⏰ 设置定时任务

### Windows 任务计划程序

1. 打开「任务计划程序」
2. 创建基本任务
3. 设置触发器(如每天 23:00)
4. 操作:启动程序
   - 程序:`powershell.exe`
   - 参数:`-ExecutionPolicy Bypass -File "C:\Users\24267\.openclaw\workspace\scripts\auto-logger.ps1" -Action "daily_review"`
   - 起始于:`C:\Users\24267\.openclaw\workspace`

### OpenClaw Cron(如果支持)

```bash
# 每小时记录
openclaw cron add --name "hourly-log" --cron "0 * * * *" --command "powershell -ExecutionPolicy Bypass -File scripts\auto-logger.ps1 -Action session_end"

# 每日整理(23:00)
openclaw cron add --name "daily-review" --cron "0 23 * * *" --command "powershell -ExecutionPolicy Bypass -File scripts\auto-logger.ps1 -Action daily_review"
```

---

## 📁 文件结构

```
workspace/
├── memory/
│   ├── 2026-03-01.md       # 每日记忆文件
│   └── ...
├── MEMORY.md                # 长期记忆
├── scripts/
│   └── auto-logger.ps1     # 自动记录脚本
└── skills/
    └── auto-logger/
        └── SKILL.md        # 技能说明
```

---

## 📝 记录模板

### 每日记忆文件格式

```markdown
# YYYY-MM-DD 记忆

## 📋 今日概要
- 会话数:X
- 重要事件:Y
- 完成任务:Z

## 🗣️ 对话记录
### HH:MM - 事件名称
- 内容详情

## ✅ 完成任务
- [x] 任务 1
- [x] 任务 2

## 📝 重要决策
- 决策内容

## 🔧 配置变更
- 新增/修改的文件

## 🏷️ 标签
#标签 1 #标签 2
```

---

## 🎯 自动记录触发条件

### 自动触发
- [ ] 会话结束时
- [ ] 检测到"记住"、"保存"等关键词
- [ ] 定时任务(每小时/每天)

### 手动触发
- [ ] 用户明确说"记录一下"
- [ ] 运行手动记录命令

---

## 🔐 安全注意事项

### 不记录的内容
- ❌ 密码原文(只记录"已设置密码")
- ❌ 敏感个人信息(身份...

Related Claw Skills

capt-marbles

Task Router Skill

★ 0

Task Router

captchasco

captchas-openclaw

★ 0

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.

carol-gutianle

Modelready

★ 0

name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}

cartoonitunes

Ethereum History

★ 0

Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).

cassh100k

agent-dna

★ 0

Portable agent identity encoding. Compress SOUL.md/MEMORY.md into transferable DNA fingerprints, detect identity drift between snapshots, and port personality across platforms (OpenClaw, Claude, GPT, CrewAI). Pure Python, zero dependencies. Use when migrating agents between platforms, detecting personality drift, or backing up agent identity.

camopel

storage-cleanup

★ 0

One-command disk cleanup for macOS and Linux — trash, caches, temp files, old kernels, snap revisions, Homebrew, Docker, and Xcode artifacts. Use when user asks to free storage, clean up disk, reclaim space, reduce disk usage, or encounters low disk / "disk full" warnings. Safe by default with dry-run mode. No dependencies beyond bash and awk.