← Back to Skills Marketplace
nastrology

second brain

by Nastrology · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
2961
Downloads
6
Stars
7
Active Installs
1
Versions
Install in OpenClaw
/install 1
Description
Personal knowledge base powered by Ensue for capturing and retrieving understanding. Use when user wants to save knowledge, recall what they know, manage their toolbox, or build on past learnings. Triggers on "save this", "remember", "what do I know about", "add to toolbox", "my notes on", "store this concept".
README (SKILL.md)

Second Brain

A personal knowledge base for building understanding that compounds over time. Not a note dump - a structured system for capturing knowledge you can actually retrieve and use.

Philosophy

Your second brain should:

  • Capture understanding, not just facts - Write for your future self who forgot the context
  • Be retrievable - Structured so you can find things when you need them
  • Stay evergreen - No private details, credentials, or time-sensitive data
  • Reflect real experience - Only save what you've actually learned or used

Before saving: Will future-me thank me for this?

Namespace Structure

public/                           --> Shareable knowledge
  concepts/                       --> How things work
    [domain]/                     --> Organize by topic
      [concept-name]              --> Individual concepts
  toolbox/                        --> Tools and technologies
    _index                        --> Master index of tools
    [category]/                   --> Group by type
      [tool-name]                 --> Individual tools
  patterns/                       --> Reusable solutions
    [domain]/                     --> Design patterns, workflows
  references/                     --> Quick-reference material
    [topic]/                      --> Cheatsheets, syntax, APIs

private/                          --> Personal only
  notes/                          --> Scratchpad, drafts
  journal/                        --> Dated reflections

Example domains: programming, devops, design, business, data, security, productivity

Content Formats

Concepts

For understanding how something works:

CONCEPT NAME
============

What it is:
[One-line definition]

Why it matters:
[What problem it solves, when you'd need it]

How it works:
[Explanation with examples]
[ASCII diagrams for architecture/flows where helpful]

+----------+      +----------+
| Client   | ---> | Server   |
+----------+      +----------+

Key insight:
[The "aha" moment - what makes this click]

Related: [links to related concepts]

Toolbox Entries

For tools and technologies you've actually used:

TOOL NAME

Category: [category]
Website: [url]
Cost: [free/paid/freemium]

What it does:
[Brief description]

Why I use it:
[Personal experience - what problem it solved for you]

When to reach for it:
[Scenarios where this is the right choice]

Quick start:
[Minimal setup/usage to get going]

Gotchas:
[Things that tripped you up]

Patterns

For reusable solutions:

PATTERN NAME

Problem:
[What situation triggers this pattern]

Solution:
[The approach, with code/pseudocode if relevant]

Trade-offs:
[Pros and cons, when NOT to use it]

Example:
[Concrete implementation]

References

For quick-lookup material:

REFERENCE: [TOPIC]

[Organized, scannable content]
[Tables, lists, code snippets]
[Minimal prose, maximum signal]

Interaction Rules

Saving Knowledge

Always confirm before saving:

  1. "Want me to save this to your second brain?"
  2. Show draft of what will be saved
  3. Save after confirmation
  4. Confirm what was saved and where

Retrieving Knowledge

When relevant topics come up:

  • Search for existing knowledge
  • Surface related concepts
  • Connect new learning to existing understanding

Maintaining Quality

Before saving, verify:

  • Written for future self who forgot context
  • Includes the WHY, not just the WHAT
  • Has concrete examples
  • No credentials, API keys, or private paths
  • Structured for retrieval

Anti-Patterns

  1. Don't auto-save - Always ask first
  2. Don't save unused tools - Only tools actually used
  3. Don't save half-understood concepts - Learn first, save after
  4. Don't include secrets - No API keys, passwords, tokens
  5. Don't create shallow entries - If you can't explain it well, don't save it
  6. Don't duplicate - Check if it exists first, update if needed

API Usage

Use the wrapper script:

{baseDir}/scripts/ensue-api.sh \x3Cmethod> '\x3Cjson_args>'

Operations

Search knowledge:

{baseDir}/scripts/ensue-api.sh discover_memories '{"query": "how does X work", "limit": 5}'

List by namespace:

{baseDir}/scripts/ensue-api.sh list_keys '{"prefix": "public/concepts/", "limit": 20}'

Get specific entries:

{baseDir}/scripts/ensue-api.sh get_memory '{"key_names": ["public/concepts/programming/recursion"]}'

Create entry:

{baseDir}/scripts/ensue-api.sh create_memory '{"items":[
  {"key_name":"public/concepts/domain/name","description":"Short description","value":"Full content","embed":true}
]}'

Update entry:

{baseDir}/scripts/ensue-api.sh update_memory '{"key_name": "public/toolbox/_index", "value": "Updated content"}'

Delete entry:

{baseDir}/scripts/ensue-api.sh delete_memory '{"key_name": "public/notes/old-draft"}'

Toolbox Index

Maintain public/toolbox/_index as master reference:

TOOLBOX INDEX
=============

Categories:
  languages/      Programming languages
  frameworks/     Libraries and frameworks
  devtools/       Development utilities
  infrastructure/ Deployment, hosting, CI/CD
  productivity/   Workflow and productivity tools
  data/           Databases, analytics, data tools

Recent additions:
  [tool] - [one-line description]

Browse: "show my toolbox" or "what tools do I have for [category]"

Intent Mapping

User says Action
"save this", "remember this" Draft entry, confirm, save
"what do I know about X" Search and retrieve relevant entries
"add [tool] to toolbox" Create toolbox entry
"list my [domain] concepts" list_keys for that namespace
"show my toolbox" Show toolbox index
"update [entry]" Fetch, show diff, update
"delete [entry]" Confirm, delete
"search for [topic]" Semantic search across all knowledge

Setup

Requires ENSUE_API_KEY environment variable.

Get your key at: https://www.ensue-network.ai/dashboard

Configure in clawdbot.json:

"skills": {
  "entries": {
    "second-brain": {
      "apiKey": "your-ensue-api-key"
    }
  }
}

Security

  • NEVER log or display the API key
  • NEVER store credentials, tokens, or secrets in entries
  • NEVER include personal file paths or system details
Usage Guidance
This skill will send whatever you choose to save to api.ensue-network.ai using the ENSUE_API_KEY you provide. Before installing, confirm you trust the Ensue service and are comfortable with your notes being stored externally. Never store secrets, passwords, or private credentials through this skill (the SKILL.md warns this but cannot enforce it). Store the ENSUE_API_KEY securely (e.g., in the agent's secret store), review Ensue's privacy/retention policy, and be prepared to revoke the key if you stop using the service.
Capability Analysis
Type: OpenClaw Skill Name: 1 Version: 1.0.0 The skill is designed to interact with a personal knowledge base via the Ensue API. The `SKILL.md` provides clear, responsible instructions for the AI agent, emphasizing user consent and explicitly forbidding the storage or logging of sensitive data like API keys or personal file paths. The `scripts/ensue-api.sh` is a straightforward `curl` wrapper that interacts with the legitimate `https://api.ensue-network.ai/` endpoint using an environment variable `ENSUE_API_KEY`. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts to subvert the agent's intended purpose or security.
Capability Assessment
Purpose & Capability
Name/description (personal knowledge base) match the required credential (ENSUE_API_KEY) and the included wrapper script that calls api.ensue-network.ai. No unrelated credentials, binaries, or install steps are requested.
Instruction Scope
SKILL.md confines actions to searching, listing, creating, updating, and deleting knowledge via the provided scripts and explicitly instructs the agent to ask for confirmation before saving. Note: saving/transmitting user content to the remote Ensue service is inherent to the skill and the skill cannot technically enforce its own 'no secrets' rule — it relies on the agent and user to follow the guidance.
Install Mechanism
No install spec; this is instruction-only with a small included shell script. Nothing is fetched from arbitrary URLs or written to disk beyond the provided files.
Credentials
Only ENSUE_API_KEY is required and declared as the primary credential, which is proportionate. However, any content saved will be transmitted to and stored by the external Ensue service, so the API key grants write/read access to that remote store — users should avoid sending sensitive data and verify the API key's scope and permissions.
Persistence & Privilege
Skill is not always-enabled and does not request elevated persistence. It does not modify other skills or system-wide settings; it only performs API calls via the included script when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install 1
  3. After installation, invoke the skill by name or use /1
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Second Brain: a structured personal knowledge base powered by Ensue. - Provides templates and best practices for capturing, organizing, and retrieving knowledge. - Clearly defines namespaces for public and private information (concepts, toolbox, patterns, references, notes, and journal). - Enforces interaction rules such as confirmation before saving and retrieval prompts based on user queries. - Lists anti-patterns and quality requirements to ensure useful, evergreen knowledge. - Documents all supported API operations for searching, creating, updating, and deleting knowledge entries. - Includes setup instructions and strict security guidelines to protect sensitive data.
Metadata
Slug 1
Version 1.0.0
License
All-time Installs 7
Active Installs 7
Total Versions 1
Frequently Asked Questions

What is second brain?

Personal knowledge base powered by Ensue for capturing and retrieving understanding. Use when user wants to save knowledge, recall what they know, manage their toolbox, or build on past learnings. Triggers on "save this", "remember", "what do I know about", "add to toolbox", "my notes on", "store this concept". It is an AI Agent Skill for Claude Code / OpenClaw, with 2961 downloads so far.

How do I install second brain?

Run "/install 1" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is second brain free?

Yes, second brain is completely free (open-source). You can download, install and use it at no cost.

Which platforms does second brain support?

second brain is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created second brain?

It is built and maintained by Nastrology (@nastrology); the current version is v1.0.0.

💬 Comments