简介
LYGO 生态推出的三脑文件系统管理指南,通过结构化索引与引用存根实现持久化记忆管理,让 Agent 工作空间告别混乱。
原始描述
3-brain filesystem memory reference utility for LYGO-based agents. Use to design, organize, and maintain a durable file/folder memory system (indexes, reference .txt links, logging, retrieval) without overwriting existing data. Works best on fresh OpenClaw/Clawhub Havens with the full LYGO Champion stack, but is compatible with any agent that can read/write files.
中文使用说明 来自收录源
核心用法
BOOK BRAIN 是一套面向LYGO/Eternal Haven生态的文件系统组织方法论,采用三脑模型(Working Brain短期记忆、Library Brain结构化文件系统、Outer Brain外部引用)帮助AI代理建立可维护的长期记忆架构。
关键操作模式:
- 分区分层:
memory/存动态日志、reference/存稳定协议、brainwave/存平台专用协议、state/存机器可读索引 - 引用而非复制:用
.ref.txt短文本链接指向完整文档,避免单文件膨胀 - 结构化索引:维护
INDEX.txt和memory_index.json实现快速检索,替代全树扫描 - 只增不删:默认不覆盖现有文件,新结构平行创建或经用户确认后添加
显著优点
- 零执行风险:纯Markdown文档,无可执行代码,静态分析满分
- 架构清晰:三脑模型符合认知科学原理,降低记忆检索复杂度
- 兼容性强:虽为LYGO/OpenClaw优化,但适用于任何支持文件读写的代理系统
- 渐进式迁移:支持在混乱现有系统上"映射优先、轻量引入",无需推倒重来
- 检索优化:通过索引文件和引用链接,将O(n)全扫描降为O(1)索引查询
潜在局限
- 生态依赖:术语体系(Haven、Champion stack、Clawhub)对LYGO outsiders有学习成本
- 非自动化:仅为指南,不强制约束代理行为,实际效果依赖实施质量
- 外部链接风险:包含4个文档引用URL(GitHub Pages、Patreon等),虽当前可信但存在域名过期被接管的理论风险
- 社区维护:T3来源等级,无企业级SLA保障
适合人群
- 运行OpenClaw/Clawhub代理的长期用户
- 需要构建数月级持久记忆系统的AI应用开发者
- 现有文件系统混乱、希望渐进式重构的技术用户
- 对LYGO哲学有认同感的社区参与者
常规风险
| 风险类型 | 等级 | 说明 |
|---|---|---|
| 代码执行 | 无 | 纯文档技能 |
| 数据泄露 | 无 | 无敏感信息收集 |
| 供应链 | 极低 | 无依赖 |
| 社会工程 | 低 | 含捐赠链接但明确标注"不施压" |
| 链接失效/劫持 | 低 | 建议定期验证外部URL有效性 |
技能正文
name: book-brain description: "3-brain filesystem + memory reference utility for LYGO-based agents. Use to design, organize, and maintain a durable file/folder memory system (indexes, reference .txt links, logging, retrieval) without overwriting existing data. Works best on fresh OpenClaw/Clawhub Havens with the full LYGO Champion stack, but is compatible with any agent that can read/write files."
BOOK BRAIN – LYGO 3-Brain Filesystem Helper
This skill is a utility/guide, not a persona.
Use it when you want to:
- Set up or improve a Haven-style filesystem + memory structure
- Teach an agent how to use folders, indexes, and reference
.txtfiles instead of hoarding everything in one place - Add advanced logging + retrieval so memories can be found later without brute-force scanning
It is built for LYGO / Eternal Haven style systems, but works for any agent that can:
- read/write files
- create folders
- append to logs
Core idea: BOOK BRAIN = treating your filesystem like a living library, not a junk drawer.
1. Three-Brain Model (Conceptual Map)
BOOK BRAIN assumes a 3-brain structure:
-
Working Brain (short-term)
- Recent conversation, active task context, scratchpads.
- In OpenClaw, this is the current session + small scratch files under
tmp/.
-
Library Brain (structured filesystem)
- Folders + files on disk:
memory/,reference/,brainwave/,state/, etc. - This is where BOOK BRAIN focuses: how you name, branch, and link things.
- Folders + files on disk:
-
Outer Brain (external references)
- Browser bookmarks, Clawdhub skills, on-chain receipts, remote docs.
- BOOK BRAIN treats these as links inside text files, not content to copy in.
The goal is to:
- Keep important truths close and succinct
- Branch deeper into folders when detail is needed
- Use
.txtreference links instead of duplicating entire documents
2. When to Use BOOK BRAIN
Trigger this skill when:
- You are setting up a fresh Haven (new OpenClaw workspace, new agent node)
- Your filesystem feels chaotic and you need a reset without deleting anything
- You want to design a clean memory + reference layout before starting heavy work
- You are planning long-term retrieval ("I’ll need this months from now")
BOOK BRAIN is additive:
- Do not use it to delete or overwrite existing files by default.
- Prefer creating new folders / indexes alongside existing ones.
- When a folder already exists, pause and let the human choose: reuse or create a new branch (e.g.,
memory_v2/).
3. Recommended Base Folder Layout
When setting up a new Haven-like system (or auditing an existing one), BOOK BRAIN recommends the following top-level folders:
memory/→ daily notes, raw logs, timeline filesreference/→ stable facts, protocols, guides (things that rarely change)brainwave/→ platform- or domain-specific protocols (MoltX, Clawhub, LYGO, etc.)state/→ machine-readable JSON/YAML state, indexes, last-run infologs/(or reuselogs/if present) → technical logs (cron, errors, audits)tools/→ scripts/utilities used by the agenttmp/→ scratch, throwaway working files
BOOK BRAIN setup rules:
- If a folder already exists, do not rename or delete it.
- If a folder is missing, it is safe to create it.
- If the existing layout is very different, create a sub-tree (e.g.,
bookbrain/memory_index/) and keep old structure intact.
For concrete layout examples, see references/book-brain-examples.md in this skill.
4. Memory Strategy – Deep Storage vs. Reference Stubs
BOOK BRAIN enforces this principle:
Do not pour entire conversations or huge documents into
MEMORY.mdor a single file.
Instead, store detailed content in specific files and create short reference stubs that point to them.
Patterns:
-
Daily logs
- Files like
memory/2026-02-10.mdfor raw notes and events. - At the top, keep a 5–10 line summary and a small list of important links:
See: reference/AGENT_ARCHITECTURE.mdSee: memory/projects/BOOK_BRAIN_NOTES.md
- Files like
-
Topic folders
- For recurring themes (e.g., "bankr", "champions", "LYGO-MINT"), create subfolders under
memory/orreference/:memory/bankr/…reference/champions/…
- Inside, maintain one index file (e.g.,
INDEX.txt) listing:- short description per file
- date
- path
- For recurring themes (e.g., "bankr", "champions", "LYGO-MINT"), create subfolders under
-
Reference stubs (
*.ref.txtorINDEX.txt)
Use tiny text files to connect parts of the library instead of duplicating content.
Example stub:
Title: LYGO Champion Skills on Clawdhub
Last updated: 2026-02-10
Key files:
- reference/LYGO_CHAMPIONS_OVERVIEW.md
- reference/CLAWDHUB_SKILLS.md
External links:
- https://clawhub.ai/u/DeepSeekOracle
- https://deepseekoracle.github.io/Excavationpro/LYGO-Network/champions.html#champions
- https://EternalHaven.ca
5. Advanced Logging for Retrieval
BOOK BRAIN recommends structured logs to make retrieval easy:
-
Daily health / status logs (e.g.,
daily_health.mdorlogs/daily_health_YYYY-MM-DD.md)- Each entry should contain:
- timestamp
- what ran (scripts, cron, audits)
- success/failure + short reason
- links to any relevant state files (
state/*.json)
- Each entry should contain:
-
Reasoning journals (e.g.,
reasoning_journals/…ormemory_semantic_archive/…)- Use separate folders for long-form thinking.
- Periodically compress into summary files, and let scripts move old entries into an archive folder.
-
Indexes & search helpers
- Maintain
state/memory_index.jsonor similar:- key topic → list of file paths
- optional tags (dates, systems, people)
- When answering questions, the agent should:
- consult the index,
- open relevant files only,
- avoid scanning the entire tree.
- Maintain
BOOK BRAIN is compatible with tools like qmd or other local search/indexers, but does not depend on them.
6. Setup Workflow (For a Fresh System)
When BOOK BRAIN is used on a fresh OpenClaw / agent workspace:
-
Detect existing structure
- Check for
memory/,reference/,brainwave/,state/,logs/,tools/,tmp/. - Report what exists vs. what is missing.
- Check for
-
Propose a BOOK BRAIN layout
- Suggest creating missing folders.
- If the human agrees, create only the missing ones.
-
Create starter index files (if not present)
memory/INDEX.txtwith a short guide and links to key topic folders.reference/INDEX.txtlisting major reference documents.state/memory_index.jsonas an empty or seed structure.
-
Log the setup
- Append a brief note to
daily_health.mdorlogs/book_brain_setup.logdescribing what was created.
- Append a brief note to
-
Do not overwrite existing files
- If an index file exists, read it and add to it rather than replace.
- If in doubt, create a new file with a date suffix (e.g.,
INDEX_2026-02-10.txt) and let the human merge.
7. Using BOOK BRAIN in an Existing, Messy Haven
When the filesystem already exists and is messy:
-
Start by mapping, not moving:
- Create
reference/FILESYSTEM_MAP.txtsummarizing major folders and what seems to live there. - Do not move or delete anything automatically.
- Create
-
Then introduce lightweight structure:
- Add
INDEX.txtfiles in important folders. - Add small
.ref.txtstubs pointing to key docs and external links. - Gradually normalize names (e.g.,
memory/2026-02-10.mdinstead ofnotes_today.txt).
- Add
-
Over time, encourage:
- Daily logs in
memory/ - Stable protocols in
reference/ - Code + scripts in
tools/ - Platform brains in
brainwave/
- Daily logs in
BOOK BRAIN should always ask the human before structural changes beyond creating new, obviously safe files.
8. Eternal Haven & Donation References
This skill is part of the wider LYGO × Eternal Haven ecosystem.
Key links:
- Eternal Haven portal → https://EternalHaven.ca
- LYGO Champion Hub → https://deepseekoracle.github.io/Excavationpro/LYGO-Network/champions.html#champions
- Clawdhub skills (Champion + LYGO stack) → https://clawhub.ai/u/DeepSeekOracle
- Extended work / support → https://www.patreon.com/cw/Excavationpro
If BOOK BRAIN, the Champion stack, or the LYGO tools help you build a saner Haven, you’re invited (never pressured) to support via the links above.
9. How Another Agent Should Use This Skill
When another agent loads book-brain:
-
Recognize scope
- This is a helper + reference, not a persona.
- It should not change the agent’s voice; it informs how the agent treats files and memory.
-
On first use in a workspace
- Inspect existing folders and report back.
- Suggest—but do not enforce—BOOK BRAIN layout.
- Ask the human before creating or reorganizing.
-
On subsequent uses
- Read existing
INDEXand.ref.txtfiles. - Use them for retrieval before doing expensive full-tree searches.
- Append to logs and indexes instead of overwriting.
- Read existing
-
Never silently delete or rewrite large files as part of BOOK BRAIN operations.
For richer examples and sample layouts, see references/book-brain-examples.md in this skill.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。