← 返回 Skills 市场
robbyczgw-cla

Lucid Dreamer

作者 Robby · GitHub ↗ · v0.7.8 · MIT-0
cross-platform ✓ 安全检测通过
290
总下载
0
收藏
1
当前安装
29
版本数
在 OpenClaw 中安装
/install lucid-dreamer
功能描述
Nightly AI memory reasoning system. Lucid runs every night while you sleep — it reads your daily notes and memory files, detects stale facts, unresolved todo...
使用说明 (SKILL.md)

Lucid Dreamer 🧠

Your AI sleeps. Lucid dreams.

Lucid keeps your AI's memory clean. Every night, it reads what happened, checks what your AI already knows, and suggests what's outdated, missing, or forgotten.

See README.md for full setup, ARCHITECTURE.md for internals, and config/ for configuration.

Quick Setup

  1. Set your workspace path in the config:

    export CLAWD_DIR=/path/to/your/workspace
    
  2. Create a nightly cron job using OpenClaw's cron tool — run the prompt in prompts/nightly-review.md at 3 AM.

    Optional: add a lightweight session debrief cron around 18:00 using prompts/session-debrief.md. This is a faster daily capture pass than the nightly review — it reads today's daily note and writes durable decisions/facts straight into memory without creating a review report.

  3. Wake up to a review report in memory/review/YYYY-MM-DD.md.

  4. Approve or reject suggestions — Lucid tracks state in memory/review/state.json.

Optional Session Debrief Cron

Use prompts/session-debrief.md for a quick end-of-day memory pass around 18:00. It is designed to run faster than the nightly review: read today's daily note, capture durable decisions/facts/action items, and write them directly into memory.

Recommended OpenClaw cron settings:

openclaw cron add \
  --name "lucid-debrief" \
  --cron "0 18 * * *" \
  --tz "Europe/Vienna" \
  --model "your-preferred-model" \  # e.g. anthropic/claude-haiku-4-5 or opencode-go/minimax-m2.7
  --session isolated \
  --wake-mode now \
  --message "$(cat prompts/session-debrief.md)"

What it does:

  • Reads today's daily note (memory/TODAY.md)
  • Captures key decisions, durable facts, and concrete action items
  • Writes those updates directly into long-term memory
  • Skips the full review report to stay quick and cheap

Files

  • prompts/nightly-review.md — the main nightly review prompt
  • prompts/session-debrief.md — optional quick-capture prompt for ~18:00
  • config/ — thresholds and behavior settings
  • examples/ — sample review output and state file

Security

Files read at runtime:

  • MEMORY.md — long-term agent memory summary
  • USER.md — user profile and preferences
  • Last 7 daily notes (memory/YYYY-MM-DD.md)

Files written at runtime:

  • memory/review/YYYY-MM-DD.md — the generated review report
  • memory/review/state.json — approval/rejection tracking state

What this skill is designed to avoid:

  • Avoid suggesting or outputting passwords, API keys, tokens, or other credentials in generated memory updates
  • Never accesses files outside the configured workspace directory
  • Never pushes to remote git automatically — all commits are local only, and no git push is performed unless you explicitly run it
  • Announce/notification delivery is opt-in and off by default — no messages are sent without explicit configuration

Recommendations:

  • Set CLAWD_DIR explicitly in your environment to ensure the skill operates on the correct workspace
  • This skill reads workspace markdown files such as MEMORY.md, USER.md, and recent daily notes. Do not run it on a workspace containing unencrypted API keys or other secrets in plain markdown files.
  • Review generated reports before approving suggestions — Lucid proposes changes, but you remain in control
安全使用建议
What to check before installing/using Lucid Dreamer: - Confirm CLAWD_DIR handling: SKILL.md aborts if CLAWD_DIR is unset, but the registry metadata doesn't list CLAWD_DIR as a required env var — set CLAWD_DIR explicitly and test the skill in a sandbox workspace first. - Test in a disposable workspace: run the nightly prompt against a copy of your memory files to see exact edits and commits before enabling on real data. - Inspect included scripts (scripts/trend_detection.py and scripts/migrate_memory.py) yourself or run them in a controlled environment to ensure no unexpected network I/O; the package claims stdlib-only, but verify. - Review config files: autoApply.enabled and aggressiveCleanup.enabled default to false; leave them off until you're confident. If you enable auto-apply or aggressive cleanup, review config/auto-apply.md and config/lucid.config.json to limit categories. - Check git remotes and hooks: although the skill promises not to push, local commits will be created. Make sure your workspace git has no unexpected remotes or hooks that could cause remote pushes or side effects. - Keep secrets out of workspace markdown: the skill explicitly reads USER.md and MEMORY.md; do not store API keys/passwords/tokens in plaintext in those files. - Consider limiting autonomous runs: the skill can be scheduled via cron; if you prefer manual control, avoid adding the cron job or disable autonomous invocation until you have validated behavior. Overall: behavior is coherent with its purpose; the main risks are accidental, not malicious — use careful testing, explicit CLAWD_DIR, and conservative config before enabling auto-apply/cleanup on production memories.
功能分析
Type: OpenClaw Skill Name: lucid-dreamer Version: 0.7.8 Lucid Dreamer is a comprehensive memory management skill for OpenClaw agents that uses scheduled LLM prompts and Python scripts to curate long-term memory. The skill analyzes daily notes to identify facts, trends, and contradictions, providing features like 'auto-apply' for high-confidence updates and 'aggressive cleanup' for resolved tasks. Analysis of the code (scripts/trend_detection.py, scripts/migrate_memory.py) and prompts (prompts/nightly-review.md) reveals a strong focus on security and safety, including explicit rules against storing credentials, workspace directory validation (CLAWD_DIR), and local-only git integration for easy rollbacks. The behavior is entirely consistent with the stated purpose and lacks any indicators of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description match the implementation: it reads workspace markdown, produces a review, optionally edits MEMORY.md and commits locally. Required binaries (git, date, python3) are appropriate for the stated behaviors (local git commits, date calculation, trend script). Minor documentation mismatch: SKILL.md and runtime checks require CLAWD_DIR to be set, but registry metadata lists no required env vars — this is a documentation/metadata inconsistency (not necessarily malicious).
Instruction Scope
SKILL.md instructions are narrowly scoped to a workspace directory: read USER.md, MEMORY.md/sections, last 7 daily notes; do not read memory/review/*.md; write review files and state.json; run an included trend_detection.py. It explicitly forbids reading credentials and forbids auto-pushing to remotes. The instructions contain git commit steps and file edits, which are coherent with the stated auto-apply/cleanup features.
Install Mechanism
Instruction-only skill with included helper scripts (no install spec). No network downloads or extract/install steps are present in the registry metadata. This lowers install risk; included Python scripts will be present in the workspace but not automatically executed outside the described runtime steps.
Credentials
The skill does not request external credentials or secrets and operates on local workspace files only, which is proportionate. However, it relies on CLAWD_DIR being set and will abort if unset — yet CLAWD_DIR is not declared as a required env var in registry metadata. Also review notifications/announce settings (they default off) and ensure you don't configure a delivery channel you don't trust. The skill warns not to keep secrets in plain markdown — follow that guidance.
Persistence & Privilege
No elevated or persistent system privileges requested. always: false. The skill writes only to workspace paths (review files, state.json, .last-success) and performs local git commits; it does not auto-push to remotes by default. Auto-apply and aggressive cleanup are opt-in in config, so the default behavior is conservative.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lucid-dreamer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lucid-dreamer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.7.8
- Updated metadata requirements: "python3" is now always required for trend detection. - Clarified that the `CLAWD_DIR` environment variable must be set before running. - Noted that auto-apply and aggressive cleanup are disabled by default. - Removed optional `env` entry from requirements in metadata. - No functional code changes; this update clarifies environment setup and requirements in documentation.
v0.7.7
lucid-dreamer 0.7.7 - Updated version number to 0.7.7. - No functional or documentation changes beyond version update.
v0.7.6
lucid-dreamer 0.7.6 - Updated environment variable documentation: CLAWD_DIR is now optional and defaults to current directory. - Clarified metadata notes and requirements for better setup guidance. - Improved skill documentation to reflect these environmental changes and make auto-apply behavior explicit.
v0.7.5
lucid-dreamer 0.7.5 - Updated environment requirement: CLAWD_DIR is now explicitly marked as required in skill metadata. - Improved configuration instructions to clarify CLAWD_DIR usage and behavior. - Minor updates to config/lucid.config.json for environment and setup clarity. - Documentation and metadata refreshed for improved guidance and accuracy.
v0.7.4
lucid-dreamer 0.7.4 - Version bump from 0.7.3 to 0.7.4. - Documentation and metadata updates; configuration and file structure unchanged. - No functional or behavioral changes to core features.
v0.7.3
- Added new configuration options to lucid.config.json for greater customization. - Improved nightly review prompt wording for clarity and accuracy. - Documentation updates in SKILL.md for clearer quick setup and recommendations. - Minor changelog and formatting enhancements.
v0.7.2
- Clarified that the CLAWD_DIR environment variable is now optional (defaults to current working directory), but should still be set explicitly for reliability. - Updated documentation regarding CLAWD_DIR requirements and notes in the skill metadata and setup steps. - No functional or breaking changes; this version focuses on improved guidance and environment configuration clarity.
v0.7.1
lucid-dreamer 0.7.1 - Updated CLAWD_DIR requirement in metadata: now explicitly required as an absolute path to the workspace directory. - Clarified setup instructions and environment requirements in documentation. - Improved metadata notes around auto-apply and aggressive cleanup defaults.
v0.7.0
Lucid Dreamer v0.7.0 introduces contradiction detection and an optional session debrief for fast end-of-day memory capture. - Adds contradiction detection to the nightly memory review process. - Introduces an optional "session debrief" cron for efficient daily capture of key facts and decisions into memory (use `prompts/session-debrief.md`). - Updates documentation to include instructions and recommendations for the new session debrief feature. - No breaking changes; all previous workflows remain compatible.
v0.6.7
Lucid Dreamer 0.6.7 is a minor update with documentation improvements. - Updated SKILL.md version to 0.6.7 for consistency. - No functional or prompt changes; maintenance release.
v0.6.6
lucid-dreamer v0.6.6 - Documentation updates and refinements in SKILL.md. - No functional or behavioral changes to the core system. - Ensures instructions and recommendations are clearer for setup and use.
v0.6.5
- Added pre-flight flush prompt (`prompts/pre-flight-flush.md`) to support new memory review workflows. - Updated documentation in SKILL.md, README.md, and CHANGELOG.md for improved clarity and recent changes. - No changes to core functionality; update focuses on setup usability and new prompt integration.
v0.6.4
lucid-dreamer 0.6.4 changelog - Documentation updates across CHANGELOG.md, README.md, and SKILL.md - No changes to core functionality or requirements - Improved clarity and instructions for setup and security in documentation
v0.6.3
lucid-dreamer 0.6.3 changelog: - Documentation updates and refinements in CHANGELOG.md, README.md, and SKILL.md. - Clarified setup, usage, and security instructions for improved user onboarding. - No functional or behavioral changes to the skill logic in this release.
v0.6.2
lucid-dreamer v0.6.2 - Minor documentation updates in SKILL.md and examples. - No changes to functionality or features. - Ensures security and usage recommendations remain clear and up-to-date.
v0.6.1
lucid-dreamer v0.6.1 - Documentation and metadata updates for clarity and accuracy. - No functional or behavioral changes to the skill’s operation. - Ensured configuration and usage instructions are up-to-date.
v0.6.0
Lucid Dreamer 0.6.0 introduces aggressive memory cleanup and expands trend detection. - Adds aggressive cleanup option for auto-removal of confirmed-stale memory entries and completed tasks, with rollback safety via git. - Trend Detection now examines 14 days of notes for recurring issues, stale projects, and escalation patterns. - New prompt and guidance templates for memory loading and session debriefing. - Includes a memory migration script for easier upgrades and structure changes. - Updated documentation and configuration samples to reflect new features.
v0.5.0
v0.5.0 portability fixes
v0.4.3
fix: accurate credential handling docs, clean examples of key references
v0.4.2
docs: lucid.config.json fully documented in README — all trend + autoApply + review flags explained
元数据
Slug lucid-dreamer
版本 0.7.8
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 29
常见问题

Lucid Dreamer 是什么?

Nightly AI memory reasoning system. Lucid runs every night while you sleep — it reads your daily notes and memory files, detects stale facts, unresolved todo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 290 次。

如何安装 Lucid Dreamer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lucid-dreamer」即可一键安装,无需额外配置。

Lucid Dreamer 是免费的吗?

是的,Lucid Dreamer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lucid Dreamer 支持哪些平台?

Lucid Dreamer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lucid Dreamer?

由 Robby(@robbyczgw-cla)开发并维护,当前版本 v0.7.8。

💬 留言讨论