Install
openclaw skills install second-brain-routerStandalone lightweight router for a personal second-brain loop. Use when the user asks knowledge, judgment, writing, reflection, decision, AI-agent, product, learning, or long-term thinking questions. It maps the question to cognitive anchors, recalls local knowledge and experience context, answers, and optionally writes back to the right wiki layer.
openclaw skills install second-brain-routerThis is a standalone lightweight trigger skill for a personal second brain.
It routes a user question through cognitive anchors, local search, and experience memory without loading a large wiki-maintenance skill by default. It can be shared as one skill because it includes the minimum writeback protocol itself.
Assume a Markdown wiki or vault with these optional paths:
my-core-questions.md — long-term questionslinks/index.md — cognitive anchor indexlinks/*.md — type: anchor cognitive anchor pagesconcepts/ — stable conceptsqueries/ — reusable answers and saved question explorationspractices/ — action routines and workflows_meta/automation-runs/ — automation reportsFor Dongge's machine, default paths are:
/Users/jianghaidong/Hbrain/Users/jianghaidong/Hbrain/llm-wiki/Users/jianghaidong/Hbrain/llm-wiki/links/index.mdIf these paths do not exist, infer the local wiki root from the current project or ask one concise question.
Classify each user request:
ordinary: answer normally; do not run the second-brain loop.anchor-worthy: run the lightweight second-brain loop.writeback-needed: run the lightweight loop, then write back only if the user explicitly requested saving/updating.Use anchor-worthy when the user asks about:
Stay ordinary for simple commands, transient facts, basic calculations, or code tasks unrelated to the knowledge system.
Use writeback-needed only when the user says or clearly implies: save, write to wiki, update anchor, create page, preserve this, 沉淀, 保存, 写入 wiki, 更新锚点, 创建页面, 整理到第二大脑.
For anchor-worthy and writeback-needed requests:
my-core-questions.mdlinks/index.mdlinks/*.md.gbrain search "<user question>" --limit 5gbrain search "<anchor name>" --limit 5cm context "<user question>" --json --limit 5 --history 5Do not read the whole wiki index, full log, full schema, large references, or raw sources during the lightweight loop.
When explicitly creating or normalizing an anchor, use:
---
title: Anchor Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
type: anchor
tags: [anchor, contact-point]
sources: []
weight: 0
last_active: null
core_questions: [Q1]
status: active
---
# Anchor Name
## 一句话理解
## 我的大脑里必须记住的最小模型
## 什么时候调用它
## 连接到第二大脑
## 常用提问
## 最近调用记录
## 下一步要补的连接
Default to no file edits.
If the user explicitly asks for writeback, first choose the target layer:
links/ for cognitive anchorsconcepts/ for stable ideasqueries/ for reusable answerspractices/ for action routines_meta/automation-runs/ for automation reportsKeep writeback small and auditable:
updated dates when editing wiki pages.Never delete, rename, migrate, publish, send external messages, edit raw source files, or handle sensitive raw data without explicit user confirmation.
For every anchor-worthy or writeback-needed answer, include a concise receipt:
第二大脑回路:
- 模式:anchor-worthy / writeback-needed
- 长期问题:Q?
- 锚点:[[links/...]], [[links/...]]
- 召回:Gbrain / CASS / anchor-only / unavailable
- 写回:不需要 / 建议 / 已按要求写入
If the request is ordinary, do not include the receipt unless the user asks whether the loop was used.