Agent skill

Second Brain Query

by PieroSierra in PieroSierra/SecondBrain

Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.

No licenceAuto-check passedKnowledge Management

Install Second Brain Query

skills CLI
$ npx skills add PieroSierra/SecondBrain --skill second-brain-query -a claude-code

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

GitHub CLI
$ gh skill install PieroSierra/SecondBrain second-brain-query --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/PieroSierra/SecondBrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/second-brain-query .claude/skills/second-brain-query && 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-query
GitHub stars
152
Token cost
~2.1k tokens
SKILL.md length
1,056 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
None found

At a glance

Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.

  • Works in 9 steps: Parse the question → Check preconditions → Read the index and identify relevant… → …
  • Tasks that involve Second brain
  • SKILL.md covers Invocation, Execution, Invariants and Error Conditions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Second Brain Query is an agent skill from PieroSierra/SecondBrain. Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.

Its SKILL.md is about 2.1k 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: A personal knowledge base that lives in this folder. Drop content in, have it organized automatically, ask questions, and get sourced answers — either through Claude Code slash…

When your agent uses it

  • Tasks that involve Second brain

Example prompts

  • “/second-brain-query”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Parse the question
  2. Check preconditions
  3. Read the index and identify relevant topics
  4. Read relevant wiki articles
  5. Synthesise the answer
  6. Generate the thread title
  7. Generate output filename
  8. Write the output file
  9. Display and confirm

What it can do on your machine

Read from SKILL.md and the folder at commit cdcf96f. 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 (its code samples are markdown).

    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 Query loads about 2.1k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 1,056 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,056 words (~2,117 tokens).

“Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.”

— opening of SKILL.md by PieroSierra
name
second-brain-query
argument-hint
[--image "<path>"]... "<question>"
user-invocable
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/second-brain-query of PieroSierra/SecondBrain.

Open the folder on GitHubat commit cdcf96f

Compare with similar skills

Second Brain Query 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 Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Second Brain Query this skillPieroSierra/SecondBrain152—~2.1kAutomated safety check: PassNone
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 PieroSierra/SecondBrain

All 15 skills in this repo
  • Second Brain Delint

    PieroSierra/SecondBrain

    Work through open findings in the latest lint report one at a time — propose a fix, apply on approval, skip on rejection.

    152 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Second Brain Describe Images

    PieroSierra/SecondBrain

    Describe one or more images pasted with a note and return the descriptions as JSON.

    152 GitHub stars~673 tokensUpdated 3 days ago
    Auto-check passed
  • Second Brain Edit Wiki

    PieroSierra/SecondBrain

    Apply targeted edits to one or more wiki articles from a natural-language instruction, preserving structural invariants.

    152 GitHub stars~827 tokensUpdated 3 days ago
    Auto-check passed
  • Second Brain Follow Up

    PieroSierra/SecondBrain

    Continue an existing conversation thread by re-reading the wiki and appending a follow-up answer to the thread file.

    152 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Second Brain Import Craft

    PieroSierra/SecondBrain

    Import a specific document from your configured Craft space into raw/craft/.

    152 GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Second Brain Import File

    PieroSierra/SecondBrain

    Import a file of any supported type (PDF, image, .txt/.md) into the vault's raw/ directory, ready for ingestion.

    152 GitHub stars~2.7k tokensUpdated 3 days ago
    Auto-check passed

Questions about Second Brain Query

What does Second Brain Query do?

Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/. Second Brain Query is an agent skill from PieroSierra/SecondBrain. Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.

When should I use Second Brain Query?

Second Brain Query fits situations like: tasks that involve Second brain.

How do I install Second Brain Query in Claude Code?

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

How do I install Second Brain Query in Codex?

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

Can I use Second Brain Query 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 PieroSierra/SecondBrain --skill second-brain-query -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-query, .gemini/skills/second-brain-query, .github/skills/second-brain-query and .opencode/skills/second-brain-query in your project.

What does Second Brain Query need to run?

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

Does Second Brain Query 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 Query 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 Query use?

No licence was found for Second Brain Query or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Second Brain Query use?

About 2.1k tokens (SKILL.md is roughly 8.5k 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 Query?

Skills that share tags, products or a category with Second Brain Query: 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 Query?

PieroSierra (a GitHub user) maintains it in PieroSierra/SecondBrain, which has 152 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 5, 2026.

Source: PieroSierra/SecondBrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.