Search

PythonReactSEOPDF
OpenClaw

lifelog

生活记录自动化系统。自动识别消息中的日期(今天/昨天/前天/具体日期),记录到 Notion 对应日期,支持补录标记。 适用于:(1) 用户分享日常生活点滴时自动记录;(2) 定时自动汇总分析并填充情绪、事件、位置、人员字段

421zuoduan0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install 421zuoduan/lifelog

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

LifeLog 生活记录系统

自动将用户的日常生活记录到 Notion,支持智能日期识别和自动汇总分析。

核心功能

  1. 实时记录 - 用户分享生活点滴时自动记录到 Notion
  2. 智能日期识别 - 自动识别"昨天"、"前天"等日期,记录到对应日期
  3. 补录标记 - 非当天记录的内容会标记为"🔁补录"
  4. 自动汇总 - 每天凌晨自动运行 LLM 分析,生成情绪状态、主要事件、位置、人员

Notion 数据库要求

创建 Notion Database,需包含以下字段(全部为 rich_text 类型):

字段名 类型 说明
日期 title 日期,如 2026-02-22
原文 rich_text 原始记录内容
情绪状态 rich_text LLM 分析后的情绪描述
主要事件 rich_text LLM 分析后的事件描述
位置 rich_text 地点列表
人员 rich_text 涉及的人员

脚本说明

1. lifelog-append.sh

实时记录脚本,接收用户消息内容:

# 基本用法
bash lifelog-append.sh "今天早上吃了油条"

# 识别昨天
bash lifelog-append.sh "昨天去超市买菜了"

# 识别前天
bash lifelog-append.sh "前天和朋友吃饭了"

支持的日期表达:

  • 今天/今日/今儿 → 当天
  • 昨天/昨日/昨儿 → 前一天
  • 前天 → 前两天
  • 明天/明儿 → 后一天
  • 后天 → 后两天
  • 具体日期:2026-02-22、2月22日
2. lifelog-daily-summary-v5.sh

拉取指定日期的原文,用于 LLM 分析:

# 拉取昨天
bash lifelog-daily-summary-v5.sh

# 拉取指定日期
bash lifelog-daily-summary-v5.sh 2026-02-22

输出格式:

PAGE_ID=xxx
---原文开始---
原文内容
---原文结束---
3. lifelog-update.sh

将 LLM 分析结果写回 Notion:

bash lifelog-update.sh "<page_id>" "<情绪状态>" "<主要事件>" "<位置>" "<人员>"

配置步骤

  1. 创建 Notion Integration 并获取 API Key
  2. 创建 Database 并共享给 Integration
  3. 获取 Database ID(URL 中提取)
  4. 修改脚本中的 NOTION_KEY 和 DATABASE_ID

定时任务(可选)

每天凌晨 5 点自动汇总昨天数据:

openclaw cron add \
  --name "LifeLog-每日汇总" \
  --cron "0 5 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "运行 LifeLog 每日汇总" \
  --delivery-mode announce \
  --channel qqbot \
  --to "<...

Source information

Source
github
Repository
openclaw/skills
Path
skills/421zuoduan/lifelog
Version
—
Commit
3fb440076ccb7bbb3c175066df512e3b453d0b0a
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

LifeLog 生活记录系统

English | 中文

⚠️ 声明:本技能及其文档由 AI 生成,仅供参改。

自动将日常生活记录到 Notion,支持智能日期识别和自动汇总分析。

功能特点

  • 🤖 智能日期识别 - 自动识别"昨天"、"前天"等日期,记录到对应日期
  • 🔁 补录标记 - 非当天记录的内容会标记为"🔁补录"
  • 📝 实时记录 - 随时记录生活点滴,自动保存到 Notion
  • 🌙 自动汇总 - 每天凌晨自动运行 LLM 分析,生成情绪状态,主要事件、位置、人员
  • 🔍 智能过滤 - 自动过滤纯工作指令、测试消息等不需要记录的内容

效果预览

LifeLog Preview

快速开始

1. 安装

通过 ClawHub 安装:

clawhub install lifelog

或手动下载:

git clone https://github.com/421zuoduan/lifelog.git
2. 配置 Notion
  1. 创建 Integration

  2. 创建 Database

    • 在 Notion 中创建新 Database
    • 添加以下字段(全部为 rich_text 类型):
      字段名 类型 说明
      日期 title 日期,如 2026-02-22
      原文 rich_text 原始记录内容
      情绪状态 rich_text LLM 分析后的情绪描述
      主要事件 rich_text LLM 分析后的事件描述
      位置 rich_text 地点列表
      人员 rich_text 涉及的人员
    • 点击 Database 右上角的 ... → Connect to → 选择你的 Integration
  3. 获取 Database ID

    • URL 中提取:https://notion.so/{workspace}/{database_id}?v=...
    • database_id 是 32 位字符串(带 -)
  4. 修改脚本配置

    • 编辑 scripts/ 目录下的脚本,替换:
      # ===== 配置区域 =====
      NOTION_KEY="你的Notion_API_Key"
      DATABASE_ID="你的Database_ID"
      # ====================
      
3. 使用方式
# 记录今天的事情
bash scripts/lifelog-append.sh "今天早上吃了油条"

# 记录昨天的事情(自动识别日期)
bash scripts/lifelog-append.sh "昨天去超市买菜了"

# 记录前天的事情
bash scripts/lifelog-ap...

Extracted content

SKILL.md
# LifeLog 生活记录系统

自动将用户的日常生活记录到 Notion,支持智能日期识别和自动汇总分析。

## 核心功能

1. **实时记录** - 用户分享生活点滴时自动记录到 Notion
2. **智能日期识别** - 自动识别"昨天"、"前天"等日期,记录到对应日期
3. **补录标记** - 非当天记录的内容会标记为"🔁补录"
4. **自动汇总** - 每天凌晨自动运行 LLM 分析,生成情绪状态、主要事件、位置、人员

## Notion 数据库要求

创建 Notion Database,需包含以下字段(全部为 rich_text 类型):

| 字段名 | 类型 | 说明 |
|--------|------|------|
| 日期 | title | 日期,如 2026-02-22 |
| 原文 | rich_text | 原始记录内容 |
| 情绪状态 | rich_text | LLM 分析后的情绪描述 |
| 主要事件 | rich_text | LLM 分析后的事件描述 |
| 位置 | rich_text | 地点列表 |
| 人员 | rich_text | 涉及的人员 |

## 脚本说明

### 1. lifelog-append.sh

实时记录脚本,接收用户消息内容:

```bash
# 基本用法
bash lifelog-append.sh "今天早上吃了油条"

# 识别昨天
bash lifelog-append.sh "昨天去超市买菜了"

# 识别前天
bash lifelog-append.sh "前天和朋友吃饭了"
```

**支持的日期表达**:
- 今天/今日/今儿 → 当天
- 昨天/昨日/昨儿 → 前一天
- 前天 → 前两天
- 明天/明儿 → 后一天
- 后天 → 后两天
- 具体日期:2026-02-22、2月22日

### 2. lifelog-daily-summary-v5.sh

拉取指定日期的原文,用于 LLM 分析:

```bash
# 拉取昨天
bash lifelog-daily-summary-v5.sh

# 拉取指定日期
bash lifelog-daily-summary-v5.sh 2026-02-22
```

输出格式:
```
PAGE_ID=xxx
---原文开始---
原文内容
---原文结束---
```

### 3. lifelog-update.sh

将 LLM 分析结果写回 Notion:

```bash
bash lifelog-update.sh "<page_id>" "<情绪状态>" "<主要事件>" "<位置>" "<人员>"
```

## 配置步骤

1. 创建 Notion Integration 并获取 API Key
2. 创建 Database 并共享给 Integration
3. 获取 Database ID(URL 中提取)
4. 修改脚本中的 `NOTION_KEY` 和 `DATABASE_ID`

## 定时任务(可选)

每天凌晨 5 点自动汇总昨天数据:

```bash
openclaw cron add \
  --name "LifeLog-每日汇总" \
  --cron "0 5 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "运行 LifeLog 每日汇总" \
  --delivery-mode announce \
  --channel qqbot \
  --to "<...
README
# LifeLog 生活记录系统

[English](./README_EN.md) | 中文

> ⚠️ **声明**:本技能及其文档由 AI 生成,仅供参改。

自动将日常生活记录到 Notion,支持智能日期识别和自动汇总分析。

## 功能特点

- 🤖 **智能日期识别** - 自动识别"昨天"、"前天"等日期,记录到对应日期
- 🔁 **补录标记** - 非当天记录的内容会标记为"🔁补录"
- 📝 **实时记录** - 随时记录生活点滴,自动保存到 Notion
- 🌙 **自动汇总** - 每天凌晨自动运行 LLM 分析,生成情绪状态,主要事件、位置、人员
- 🔍 **智能过滤** - 自动过滤纯工作指令、测试消息等不需要记录的内容

## 效果预览

![LifeLog Preview](./assets/preview.png)

## 快速开始

### 1. 安装

通过 ClawHub 安装:
```bash
clawhub install lifelog
```

或手动下载:
```bash
git clone https://github.com/421zuoduan/lifelog.git
```

### 2. 配置 Notion

1. **创建 Integration**
   - 访问 https://www.notion.so/my-integrations
   - 点击 **New integration**
   - 填写名称(如 "LifeLog")
   - 复制生成的 **Internal Integration Token**

2. **创建 Database**
   - 在 Notion 中创建新 Database
   - 添加以下字段(全部为 rich_text 类型):
     | 字段名 | 类型 | 说明 |
     |--------|------|------|
     | 日期 | title | 日期,如 2026-02-22 |
     | 原文 | rich_text | 原始记录内容 |
     | 情绪状态 | rich_text | LLM 分析后的情绪描述 |
     | 主要事件 | rich_text | LLM 分析后的事件描述 |
     | 位置 | rich_text | 地点列表 |
     | 人员 | rich_text | 涉及的人员 |
   - 点击 Database 右上角的 **...** → **Connect to** → 选择你的 Integration

3. **获取 Database ID**
   - URL 中提取:`https://notion.so/{workspace}/{database_id}?v=...`
   - database_id 是 32 位字符串(带 `-`)

4. **修改脚本配置**
   - 编辑 `scripts/` 目录下的脚本,替换:
     ```bash
     # ===== 配置区域 =====
     NOTION_KEY="你的Notion_API_Key"
     DATABASE_ID="你的Database_ID"
     # ====================
     ```

### 3. 使用方式

```bash
# 记录今天的事情
bash scripts/lifelog-append.sh "今天早上吃了油条"

# 记录昨天的事情(自动识别日期)
bash scripts/lifelog-append.sh "昨天去超市买菜了"

# 记录前天的事情
bash scripts/lifelog-ap...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.