360 Secure SkillHub
360 安全技能中心

Scribe

面向 OpenClaw 的自动会议记录式技能:扫描当天会话 JSONL 日志,过滤心跳与系统噪声,调用 OpenRouter 上的 LLM 抽取决策、偏好、框架语句、项目更新和待办,输出结构化的每日记忆 Markdown 文件,可设为每晚定时任务或手动执行。

billc8128
billc8128
热度 61.12
最近更新 2026-05-18 12:13:23
分类:知识依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:摘要总结 / 笔记整理 / 日程安排 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-scribe
Metadata
name
scribe
description
Autonomous session scribe — reads today's OpenClaw session logs, extracts decisions, preferences, framework sentences, and project updates, then writes a structured daily memory file. Use when setting up automated memory extraction for an AI agent, or when manually triggering a memory consolidation pass. Works as a cron job (isolated session) or on-demand.

Scribe

An autonomous "stenographer" agent that watches your OpenClaw session history and extracts what matters into persistent, structured memory files — so your agent remembers across sessions without relying on context window compaction.

Install & Setup

1. Copy the skill to your workspace:

cp -r skills/public/scribe ~/.openclaw/workspace/skills/public/scribe

2. Register the nightly cron job (one command):

python3 skills/public/scribe/scripts/setup-cron.py

That's it. Scribe will run every night at 23:30 and write memory/YYYY-MM-DD.md to your workspace.

3. Run manually anytime:

python3 skills/public/scribe/scripts/scribe.py

How It Works

  1. Scans today's session JSONL files from ~/.openclaw/agents/main/sessions/
  2. Filters out heartbeats, system messages, and noise
  3. Sends user messages to an LLM (via OpenRouter, reads your existing OpenClaw API key)
  4. Extracts: decisions, preferences, framework sentences, project updates, todos
  5. Writes structured output to {workspace}/memory/YYYY-MM-DD.md

Output Format

# YYYY-MM-DD Memory (Scribe)

## 🔑 Decisions Made
## 💡 Preferences & Rules
## 🗣️ Framework Sentences
## 📦 Project Updates
## ✅ Todos / Follow-ups

Configuration

Environment variables (all optional — defaults work out of the box):

Variable Default Description
SCRIBE_SESSION_DIR ~/.openclaw/agents/main/sessions Session JSONL location
SCRIBE_WORKSPACE ~/.openclaw/workspace Where memory files are written
SCRIBE_DAYS 1 Days back to scan
SCRIBE_MODEL anthropic/claude-haiku-4-5 LLM model (OpenRouter ID)
SCRIBE_APPEND_LONGTERM false Also append to MEMORY.md
OPENROUTER_API_KEY (from OpenClaw config) Override API key

References

  • Cron setup details: references/cron-setup.md — manual config, launchd, timezone changes
  • Signal classification: references/signal-guide.md — how the LLM decides what's worth extracting