Agent skill

Second Brain Publish

by undefined-ui in undefined-ui/second-brain-os

Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported.

MITAuto-check passedKnowledge Management

Install Second Brain Publish

skills CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install undefined-ui/second-brain-os second-brain-publish --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/undefined-ui/second-brain-os.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/second-brain-publish .claude/skills/second-brain-publish && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
second-brain-publish
GitHub stars
1k
Token cost
~423 tokens
SKILL.md length
161 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported.

  • Works in 5 steps: List the opt-in set. Every page marked… → Follow their links. A published page… → Scan for anything that should never… → …
  • The user wants to publish notes as a site
  • SKILL.md covers Core rule, Workflow, Output format and Calibration
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Second Brain Publish is an agent skill from undefined-ui/second-brain-os. Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported. Use this skill when the user wants to publish notes as a site or digital garden, asks what is safe to make public, or is setting up an export. Do NOT use for exporting a single document, or for running the publishing tool itself.

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Second brain. The repository describes itself as: An AI second brain that maintains itself. Full guide, starter vault, agent skills and scripts for a self-organizing knowledge base in Claude Code and Obsidian. The licence is MIT.

When your agent uses it

  • The user wants to publish notes as a site
  • Asks what is safe to make public
  • Is setting up an export
  • Exporting a single document

Example prompts

  • “/second-brain-publish”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. List the opt-in set. Every page marked for publication.
  2. Follow their links. A published page linking to a private one either
  3. Scan for anything that should never ship: credentials, other people's
  4. Check the frontmatter for fields not meant to be public, such as
  5. Report, do not export. The user runs the build.

What it can do on your machine

Read from SKILL.md and the folder at commit c7fa35b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Second Brain Publish loads about 423 tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 161 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~423

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from undefined-ui/second-brain-os at commit c7fa35b, republished under its MIT licence (© undefined-ui). 161 words, ~423 tokens.

Download SKILL.mdSave it as .claude/skills/second-brain-publish/SKILL.md (or your agent's skills folder).
name
second-brain-publish
description
Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported. Use this skill when the user wants to publish notes as a site or digital garden, asks what is safe to make public, or is setting up an export. Do NOT use for exporting a single document, or for running the publishing tool itself.

Prepare to publish

Once something is crawled, it is out. Every check here is cheap; the failure it prevents is permanent.

Core rule

Explicit opt-in only. A page publishes because it says publish: true, never because nothing excluded it.

Workflow

  1. List the opt-in set. Every page marked for publication.
  2. Follow their links. A published page linking to a private one either leaks the title or produces a dead link. Report both.
  3. Scan for anything that should never ship: credentials, other people's private information, confidential work, personal detail in examples.
  4. Check the frontmatter for fields not meant to be public, such as confidence labels or private source paths.
  5. Report, do not export. The user runs the build.

Output format

Publishable: <n> pages
Links to unpublished pages: <n>
  [[public page]] -> [[private page]]
Flagged content: <list with reasons>
Frontmatter to strip: <fields>
Verdict: <safe to build | fix these first>

Calibration

Err toward flagging. A false positive costs the user ten seconds; a miss is permanent.

If the user asks to publish the whole vault, ask what they intend to do about the private material rather than proceeding.

© undefined-ui, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/second-brain-publish of undefined-ui/second-brain-os.

Open the folder on GitHubat commit c7fa35b

Compare with similar skills

Second Brain Publish next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Second Brain Publish compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Second Brain Publish this skillundefined-ui/second-brain-os1k—~423Automated safety check: PassMIT
Second BrainNicholasSpisak/second-brain7361 repos~1.5kAutomated safety check: NotesNone
3D Brainnateherkai/AIS-OS1.6k—~2.1kAutomated safety check: PassCustom licence
Obsidian Canvas BoardsAgriciDaniel/claude-obsidian15k—~1.4kAutomated safety check: PassMIT
Icm ArchitectRinDig/icm-architect1.8k—~3.2kAutomated safety check: PassMIT
Obsidian CLI Read TransportAgriciDaniel/claude-obsidian15k1 repos~762Automated safety check: PassMIT

Similar skills

  • Second Brain

    NicholasSpisak/second-brain

    Set up a new Obsidian knowledge base with the LLM Wiki pattern.

    736 GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check: notes
  • 3D Brain

    nateherkai/AIS-OS

    A skill your agent uses when someone asks to build a 3D brain, visualize their AIOS or second brain, turn their knowledge into an interactive graph, or run /3d-brain or /3D brain.

    1.6k GitHub stars~2.1k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Obsidian Canvas Boards

    AgriciDaniel/claude-obsidian

    Creates, inspects and updates Obsidian JSON Canvas boards in a vault, with text, file, link, group and edge nodes, using safe recoverable edits.

    15k GitHub stars~1.4k tokensUpdated 28 days ago
    Knowledge ManagementAuto-check passed
  • Icm Architect

    RinDig/icm-architect

    Design any process, idea, problem, or body of knowledge into an ICM (Interpretable Context Methodology) workspace — folder structure as agent architecture — or restructure an existing folder, repo…

    1.8k GitHub stars~3.2k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Obsidian CLI Read Transport

    AgriciDaniel/claude-obsidian

    Detects and uses the official Obsidian command-line interface for read-only vault access, falling back to direct file reads, while all mutations stay on a separate transaction core.

    15k GitHub starsUsed in 1 repo~762 tokens
    Knowledge ManagementAuto-check passed
  • Cascading Goal Tracker

    ballred/obsidian-claude-pkm

    Tracks three-year, yearly, monthly, and weekly goals in linked Markdown files, calculating completion percentages and flagging stalled goals.

    1.9k GitHub stars~1.5k tokensUpdated 7 mo ago
    Knowledge ManagementAuto-check passed

More from undefined-ui/second-brain-os

All 23 skills in this repo
  • Goal Test

    undefined-ui/second-brain-os

    Turn a vague task into a testable definition of done and generate an executable goal-test script for it, optionally with a bounded retry loop around a headless agent.

    1k GitHub starsUsed in 1 repo~754 tokens
    Auto-check passed
  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    1k GitHub stars~802 tokensUpdated yesterday
    Auto-check passed
  • Evals Bootstrap

    undefined-ui/second-brain-os

    Scaffold a first eval suite for an agent: mine real failures into cases, write behavioural checks over traces, and generate the runner.

    1k GitHub stars~786 tokensUpdated yesterday
    Auto-check passed
  • Gate Check

    undefined-ui/second-brain-os

    Find the decisions in a pipeline that do not need the expensive model and propose the gate for each: a rule, a classic classifier, or a small model, with fail-closed routing.

    1k GitHub stars~854 tokensUpdated yesterday
    Auto-check passed
  • Harness Audit

    undefined-ui/second-brain-os

    Audit an agent's harness against the four rings: containment, guides, sensors, permissions.

    1k GitHub stars~855 tokensUpdated yesterday
    Auto-check passed
  • Second Brain Chat Import

    undefined-ui/second-brain-os

    Triage an exported chat history into what to ingest, what to archive and what to delete, with a privacy pass first.

    1k GitHub stars~527 tokensUpdated yesterday
    Auto-check passed

Questions about Second Brain Publish

What does Second Brain Publish do?

Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported. Second Brain Publish is an agent skill from undefined-ui/second-brain-os. Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak through links before anything is exported.

When should I use Second Brain Publish?

Second Brain Publish fits situations like: the user wants to publish notes as a site; asks what is safe to make public; is setting up an export; exporting a single document.

How do I install Second Brain Publish in Claude Code?

Run `npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a claude-code`. Or copy the skill folder (skills/second-brain-publish in undefined-ui/second-brain-os) into .claude/skills/second-brain-publish in your project. Claude Code loads it when a task matches its description.

How do I install Second Brain Publish in Codex?

Run `npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a codex`. Or copy the skill folder (skills/second-brain-publish in undefined-ui/second-brain-os) into .agents/skills/second-brain-publish in your project. Codex loads it when a task matches its description.

Can I use Second Brain Publish in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add undefined-ui/second-brain-os --skill second-brain-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/second-brain-publish, .gemini/skills/second-brain-publish, .github/skills/second-brain-publish and .opencode/skills/second-brain-publish in your project.

What does Second Brain Publish need to run?

SKILL.md names no scripts, command-line tools or credentials: Second Brain Publish is instructions for the agent only.

Does Second Brain Publish access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Second Brain Publish safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Second Brain Publish use?

Second Brain Publish is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Second Brain Publish use?

About 423 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Second Brain Publish?

Skills that share tags, products or a category with Second Brain Publish: Second Brain (NicholasSpisak/second-brain, 736 stars), 3D Brain (nateherkai/AIS-OS, 1.6k stars), Obsidian Canvas Boards (AgriciDaniel/claude-obsidian, 15k stars) and Icm Architect (RinDig/icm-architect, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Second Brain Publish?

undefined-ui (a GitHub user) maintains it in undefined-ui/second-brain-os, which has 1,009 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 7, 2026.

Source: undefined-ui/second-brain-os on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.