← 返回 Skills 市场
harrylabsj

Second Brain Router

作者 haidong · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
36
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install second-brain-router
功能描述
Standalone lightweight router for a personal second-brain loop. Use when the user asks knowledge, judgment, writing, reflection, decision, AI-agent, product,...
使用说明 (SKILL.md)

Second Brain Router

Purpose

This 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.

Expected Vault Shape

Assume a Markdown wiki or vault with these optional paths:

  • my-core-questions.md — long-term questions
  • links/index.md — cognitive anchor index
  • links/*.mdtype: anchor cognitive anchor pages
  • concepts/ — stable concepts
  • queries/ — reusable answers and saved question explorations
  • practices/ — action routines and workflows
  • _meta/automation-runs/ — automation reports

For Dongge's machine, default paths are:

  • Hbrain repo: /Users/jianghaidong/Hbrain
  • Wiki root: /Users/jianghaidong/Hbrain/llm-wiki
  • Anchor index: /Users/jianghaidong/Hbrain/llm-wiki/links/index.md

If these paths do not exist, infer the local wiki root from the current project or ask one concise question.

Trigger Classifier

Classify each user request:

  1. ordinary: answer normally; do not run the second-brain loop.
  2. anchor-worthy: run the lightweight second-brain loop.
  3. 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:

  • understanding, judgment, strategy, reflection, decision, writing, output, or review
  • AI agents, coding agents, second brain, personal knowledge systems, memory, CASS, Gbrain, wiki
  • cognition, metacognition, long-termism, compounding, feedback loops, self, no-self, meaning
  • any long-term core question in the user's vault

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, 更新锚点, 创建页面, 整理到第二大脑.

Lightweight Loop

For anchor-worthy and writeback-needed requests:

  1. Read only lightweight routing files when they exist:
    • my-core-questions.md
    • links/index.md
  2. Select 1-3 likely anchors from links/*.md.
  3. Read only those selected anchor pages.
  4. Run focused recall when available:
    • gbrain search "\x3Cuser question>" --limit 5
    • gbrain search "\x3Canchor name>" --limit 5
    • cm context "\x3Cuser question>" --json --limit 5 --history 5
  5. If a recall tool fails or is unavailable, continue and state the failure briefly.
  6. Answer using:
    • the user's first-brain framing
    • the anchor minimal model
    • retrieved local context
    • CASS/experience lessons when available
  7. Decide whether to write back or propose a writeback.

Do not read the whole wiki index, full log, full schema, large references, or raw sources during the lightweight loop.

Minimal Anchor Template

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

## 一句话理解

## 我的大脑里必须记住的最小模型

## 什么时候调用它

## 连接到第二大脑

## 常用提问

## 最近调用记录

## 下一步要补的连接

Writeback Rules

Default to no file edits.

If the user explicitly asks for writeback, first choose the target layer:

  • links/ for cognitive anchors
  • concepts/ for stable ideas
  • queries/ for reusable answers
  • practices/ for action routines
  • _meta/automation-runs/ for automation reports
  • CASS/playbook only for repeated agent workflow lessons

Keep writeback small and auditable:

  1. Read the target file if it exists.
  2. Preserve existing content and frontmatter.
  3. Add only the smallest durable update.
  4. Bump updated dates when editing wiki pages.
  5. Add or propose an index/log update when the local wiki convention requires it.

Never delete, rename, migrate, publish, send external messages, edit raw source files, or handle sensitive raw data without explicit user confirmation.

Routing Receipt

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.

Anti-Patterns

  • Do not load a heavy wiki-maintenance skill by default.
  • Do not do full-vault scans for ordinary questions.
  • Do not create wiki pages just because a question is interesting.
  • Do not hide recall failures; short transparency is better than pretending the loop ran.
  • Do not answer as generic internet knowledge when a relevant anchor exists.
安全使用建议
Install only if you want the agent to use a local second-brain/wiki workflow for broad thinking, writing, and decision prompts. Review or change the hardcoded vault paths, and be aware that local recall may read personal notes unless your agent asks for confirmation first.
能力评估
Purpose & Capability
The stated purpose is to route knowledge-management questions through a personal second-brain workflow, and the described capabilities match that purpose: reading anchor/index files, running local recall commands, answering with retrieved context, and optional small wiki writeback.
Instruction Scope
The trigger categories are broad, including knowledge, judgment, writing, reflection, decision, and review, so the skill may activate for routine work that overlaps with personal-knowledge use. The artifact also defines ordinary cases and limits writeback to explicit save/update requests.
Install Mechanism
The package contains only a single markdown skill file with no executable scripts, dependencies, install hooks, or hidden runtime components. Static scan, dependency scan, and VirusTotal telemetry are clean.
Credentials
Local vault access is central to the skill and is mostly bounded to lightweight routing files, selected anchors, and limited recall queries. The hardcoded Dongge paths are disclosed but make the skill personalized and should be configured or reviewed before broader use.
Persistence & Privilege
The skill defaults to no file edits, requires explicit user intent for writeback, instructs small auditable updates, and forbids delete, rename, migration, publishing, external messaging, source edits, or sensitive raw-data handling without explicit confirmation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install second-brain-router
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /second-brain-router 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Initial standalone release: lightweight cognitive-anchor routing, local recall, and minimal wiki writeback protocol.
元数据
Slug second-brain-router
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Second Brain Router 是什么?

Standalone lightweight router for a personal second-brain loop. Use when the user asks knowledge, judgment, writing, reflection, decision, AI-agent, product,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 Second Brain Router?

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

Second Brain Router 是免费的吗?

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

Second Brain Router 支持哪些平台?

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

谁开发了 Second Brain Router?

由 haidong(@harrylabsj)开发并维护,当前版本 v1.1.0。

💬 留言讨论