⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v1.0.0

dream

@wanglaisi⭐ 0 stars

Dream Protocol — 自动记忆整理与压缩,源自 Claude Code autoDream 架构

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 0 on GitHubGitHub ↗

New / niche

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

cclaw

Claude Code 源码架构洞察 × OpenClaw 增强方案
Dream Protocol · Verification Protocol · 三层记忆架构 · Skills 封装


这是什么

2026 年 3 月 31 日,Anthropic 意外泄露了 Claude Code 51.2 万行生产源码。
这个仓库做一件事:把泄露源码中已被工程验证的架构模式,转化为 OpenClaw 可直接安装的 Skills 和配置模板。​

不需要修改 OpenClaw 本体,不需要插件,90% 的增强通过 Markdown 文件实现。


仓库结构

cclaw/
├── docs/
│   ├── layer1-openclaw-native.md      # 原生 OpenClaw 架构解读(稳定层)
│   └── layer2-enhanced-architecture.md # 增强架构设计(协议层)
├── skills/
│   ├── dream/SKILL.md                 # Dream Protocol — 自动记忆整理
│   ├── wiki/SKILL.md                  # Wiki Protocol — 结构化知识沉淀
│   ├── verify/SKILL.md                # Verification Protocol — 对抗性验证
│   └── extract/SKILL.md              # Extract Protocol — 上下文主动感知
├── templates/
│   ├── AGENTS.md                      # 完整行为指令模板
│   └── MEMORY.md                      # 三层指针记忆模板
└── scripts/
    └── init.sh                        # 一键初始化目录结构

核心设计

三层记忆架构

源自 Claude Code 的 memory_manager 子系统,经过 OpenClaw 适配:

层级文件作用大小限制
L1 指针层MEMORY.md话题索引,每行 ≤150 字符≤50 行
L2 话题层topics/*.md按需加载的详细记录无硬限制
L3 归档层transcripts/只 grep,不全量读取只追加

Dream Protocol

对应 Claude Code 的 autoDream 触发机制。触发条件:

  • 距上次整理 ≥24 小时,且
  • 累计会话 ≥5 次,且
  • 当前无活跃会话

触发后自动执行:压缩 L3 → 更新 L2 → 刷新 L1 指针。

Verification Protocol

对应 Claude Code 的 adversarial_verification 模块。
任何置信度 <0.85 的结论,强制触发反向论证再合并。

Plan Protocol

对应 Claude Code 的 PLAN_MODE。
复杂任务强制先输出结构化计划(XML 格式),用户确认后再执行。


快速开始

# 克隆仓库
git clone https://github.com/Wanglaisi/cclaw.git
cd cclaw

# 一键初始化目录结构(在你的 OpenClaw 项目目录中运行)
bash scripts/init.sh /path/to/your/openclaw/project

# 安装第一个 Skill:Dream Protocol
cp skills/dream/SKILL.md /path/to/your/openclaw/project/skills/

然后将 templates/AGENTS.md 的内容合并到你项目的 AGENTS.md 中。


Skills 清单

Skill对应 Claude Code 模块功能
dreamautoDream + memory_manager自动记忆整理与压缩
wikiknowledge_graph结构化知识沉淀
verifyadversarial_verification对抗性验证,防止过拟合
extractcontext_extractor主动感知,按需加载上下文

兼容性

  • OpenClaw v2026.1.29+(CVE-2026-25253 修复版本)
  • 不依赖 QMD / Cognee 插件
  • 不修改 OpenClaw 本体代码

参考来源


License

MIT © Wanglaisi

// HOW IT'S BUILT

KEY FILES

skills/dream/SKILL.mdREADME.md

// REPO STATS

0 stars