技能详情(站内镜像,无评论)
作者:Cui Ruochen @421zuoduan
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.2.3
统计:⭐ 0 · 450 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:421zuoduan/lifelog
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill appears to do what it claims (log to Notion), but there are several internal inconsistencies and a few unexpected behaviors (reading a root workspace file, local subagent calls, registry metadata mismatch) that warrant review before installing.
目的
The skill's name/description (life logging to Notion) matches the actions in the scripts (creating/querying/updating Notion pages). Requesting a Notion integration token and Database ID is expected. However, the registry metadata at the top lists no required env vars while SKILL.md and the scripts require NOTION_KEY / NOTION_DATABASE_ID (and some scripts use DATABASE_ID). This metadata mismatch is an incoherence that could mislead users or aut…
说明范围
SKILL.md instructs the agent to call included shell scripts and to use a SubAgent for date detection. The scripts actually call a local OpenClaw service at http://localhost:421 (lifelog-append.sh posts to /api/sessions). lifelog-recorder.sh reads a SPEC_FILE at /root/.openclaw/workspace/docs/lifelog-spec.md — a path outside the skill directory. Reading arbitrary files under /root/.openclaw is not documented in the SKILL.md and expands the data…
安装机制
This is an instruction-only skill with included shell scripts; there is no download/install spec. No external archives or remote install URLs are used, so nothing arbitrary will be written to disk by an installer step beyond the repository files themselves.
证书
Requiring NOTION_KEY and NOTION_DATABASE_ID is proportionate to the stated purpose. But there are inconsistencies across files: some scripts expect NOTION_DATABASE_ID, others reference DATABASE_ID or have placeholder NOTION_KEY values embedded. The registry metadata claimed no required env vars — this is inconsistent. Also, the skill reads /root/.openclaw/... which implies access to agent workspace files outside the skill; that is a broader co…
持久
The skill does not request always:true or any elevated persistent privileges. It does not modify other skills or system-wide configs in the provided code. The agent-default ability to invoke the skill autonomously applies (not flagged on its own).
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Lifelog」。简介:生活记录自动化系统。自动识别消息中的日期(今天/昨天/前天/具体日期),使用 SubAgent 智能判断,记录到 Notion 对应日期,支持补录标记。 适用…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/421zuoduan/lifelog/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: lifelog
description: |
生活记录自动化系统。自动识别消息中的日期(今天/昨天/前天/具体日期),使用 SubAgent 智能判断,记录到 Notion 对应日期,支持补录标记。
适用于:(1) 用户分享日常生活点滴时自动记录;(2) 定时自动汇总分析并填充情绪、事件、位置、人员字段
version: 1.2.3
credentials:
required:
- NOTION_KEY
- NOTION_DATABASE_ID
---
# LifeLog 生活记录系统
自动将用户的日常生活记录到 Notion,支持智能日期识别和自动汇总分析。
## ⚠️ 必需凭据
使用本技能前,必须设置以下环境变量:
```bash
export NOTION_KEY="your-notion-integration-token"
export NOTION_DATABASE_ID="your-notion-database-id"
```
获取方式:
1. 访问 https://www.notion.so/my-integrations 创建 Integration
2. 获取 Internal Integration Token
3. 创建 Database 并 Share 给 Integration
4. 从 URL 中提取 Database ID
# LifeLog 生活记录系统
自动将用户的日常生活记录到 Notion,支持智能日期识别和自动汇总分析。
## 核心功能
1. **实时记录** - 用户分享生活点滴时自动记录到 Notion
2. **智能日期识别(SubAgent)** - 使用 AI SubAgent 智能判断日期,优先分析文本中的日期关键词,其次分析上下文
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
实时记录脚本,接收用户消息内容。**日期由 Agent 调用 SubAgent 智能判断**:
```bash
# 基本用法(Agent 会自动判断日期)
bash lifelog-append.sh "今天早上吃了油条"
# Agent 判断后传入日期
bash lifelog-append.sh "前天去打球了" "2026-03-12"
```
**日期判断流程(Agent 侧)**:
1. 用户发送生活记录 → Agent 调用 SubAgent 判断日期
2. SubAgent 分析文本中的日期关键词(前天、昨天等)
3. 如果没有明确日期,SubAgent 根据上下文智能判断
4. Agent 将判断出的日期和内容一起传给脚本
### 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. 设置环境变量:
```bash
export NOTION_KEY="your-notion-integration-token"
export NOTION_DATABASE_ID="your-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 "<用户ID>"
```
## 工作流
1. 用户发送生活记录 → 调用 `lifelog-append.sh` → 写入 Notion
2. 定时任务触发 → 调用 `lifelog-daily-summary-v5.sh` → 拉取原文
3. LLM 分析原文 → 调用 `lifelog-update.sh` → 填充分析字段