Second Brain Builder for Openclaw

An AI agent skill designed to compile research, map intellectual lineages, and organically write back precise concept pages to your local second brain.

harrylabsj
v0.1.0
Jun 10, 2026
0
588
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install second-brain-builder

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install second-brain-builder using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Second Brain Builder?

The Second Brain Builder is a specialized utility designed to transform fragmented concepts into durable, structured markdown pages within your personal knowledge base. Leveraging Openclaw Skills, this agent autonomously resolves target terms, searches local and web contexts, and synthesizes high-fidelity research packets including definitions, intellectual lineages, and curated reading paths. By prioritizing local notes and systematically linking parent-sibling-child relationships, it ensures your knowledge base grows organically and accurately without manual upkeep.

All AI-generated content is cleanly marked with an "AI 注" annotation to preserve local ownership and maintain high standards of intellectual integrity. By defaulting to high-quality primary sources, peer-reviewed surveys, and canonical definitions, it prevents hallucinated bibliographies while expanding your personal wiki exactly where and when you need it.

Second Brain Builder Use Cases

  • Deepening a local knowledge graph with precise definitions, background, and failure modes when researching a new technical field.
  • Automatically generating concept lineage maps to trace who pioneered a methodology and finding peer-reviewed papers or canonical books.
  • Structuring chaotic workspace notes and linking them systematically using tools like gbrain and cm context.
  • Adding structured research packets directly to local markdown folders like llm-wiki with strict write-back compliance.
  • Expanding a central concept to explore parent, sibling, and contrasting terms without risking graph explosion.

How Second Brain Builder Works

  1. Resolve the Target: Extracts the knowledge point, aliases, and potential false friends, asking for clarification if the topic is too ambiguous.
  2. Locate the Second-Brain Root: Scans for variables like SECOND_BRAIN_WIKI_ROOT, local candidate folders (~/Hbrain, ~/gbrain, etc.), or workspace paths.
  3. Recall Local Context: Performs rapid index and text searches on existing notes using tools like gbrain and cm context.
  4. Research and Validate: Collects canonical definitions, originators, and historical background from primary references and web sources.
  5. Build Concept Packets: Structures the concept definition, lineage, parent/sibling connections, and a curated 3-7 reading path of authoritative resources.
  6. Write Back with AI Annotations: Integrates the structured content directly into the destination wiki under designated AI 注 headings to preserve existing hand-written metadata.
  7. Next Step Suggestions: Recommends 3-5 bounded, highly relevant next topics for sequential expansion.

Second Brain Builder Setup

To enable this skill within your workspace, ensure you have configured your environment variables to point to your personal knowledge base directory:

export SECOND_BRAIN_WIKI_ROOT="/path/to/your/llm-wiki"
export SECOND_BRAIN_ROOT="/path/to/your/second-brain"

Ensure that you have gbrain and cm CLI utilities available locally so that Openclaw Skills can automatically parse, search, and map context:

# Verify your local second-brain search works
gbrain search "Agentic Workflows" --limit 8

# Validate contextual mapping works
cm context "Agentic Workflows" --json --limit 8 --history 5

Second Brain Builder Data Schema & Taxonomy

Directory Structure

The Second Brain Builder respects local configurations and targets files inside the following directories:

Directory Purpose Notes
concepts/ Stores durable concept Markdown files named as <topic-slug>.md. Highly structured content
references/ Houses global guidelines and template configurations. Must contain writeback-policy.md and research-packet.md

Document Taxonomy

Every generated or updated .md file follows a precise structure to integrate seamlessly into your local knowledge repository:

  • Precise Concept: A rigorous core definition with explicit boundary conditions.
  • Background: Historical and logical motivation behind the concept.
  • Lineage: The conceptual predecessors, original proposers, canonical dates, and milestones.
  • Structural Breakdown: Detailed mechanisms, components, assumptions, and failure modes.
  • Reading Path: 3 to 7 real-world books or peer-reviewed papers ordered by complexity.
  • AI 注 Annotations: A clear prefix (e.g., ## AI 注 or <!-- AI 注 -->) applied strictly above all AI-generated content blocks.

Second Brain Builder Advanced Features

  • Graph Explosion Protection: Strictly limits default recursive expansions. It stops at one depth and proposes the next 3-5 optimal branches based on existing note frequency.
  • Strict Writeback Safety: Consults references/writeback-policy.md before execution to ensure no user-authored text or frontmatter metadata is deleted.
  • Adaptive Source Validation: Dynamically detects weak sources and appends warning/uncertainty disclosures under the AI 注 annotation block.
  • Local Context Preference: Uses local files and index terms as the primary source of truth, avoiding duplicate definitions and utilizing existing knowledge nodes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*