nicholasspisak avatar

Second Brain Query

Structured search and synthesis skill that answers questions from a personal knowledge wiki with citations.

skills.sh installs
2.6K
GitHub stars
783
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the query workflow: scan wiki/index.md, search with qmd on larger wikis, then read and follow linked pages
  • Matches answer format to question type, with tables for comparisons, narratives for exploration, and bullets for catalogs
  • Enforces wiki-first retrieval, citing every claim with [[wikilinks]] and reading raw sources only as a last resort
  • Offers to save valuable answers as synthesis pages and logs them, for users who want their wiki to grow from queries

Install

$ npx -y skills add nicholasspisak/second-brain --skill second-brain-query -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Second Brain — Query

Answer questions by searching and synthesizing knowledge from the wiki.

Search Strategy

1. Start with the index

Read wiki/index.md to identify relevant pages. Scan all category sections (Sources, Entities, Concepts, Synthesis) for entries related to the question.

2. Use qmd for large wikis

If qmd is installed (check with command -v qmd), use it for search:

qmd search "query terms" --path wiki/

This is especially useful when the wiki has grown beyond ~100 pages where scanning the index becomes inefficient.

3. Read relevant pages

Read the wiki pages identified by the index or search. Follow [[wikilinks]] to pull in related context from linked pages. Read enough pages to give a thorough answer, but don't read the entire wiki.

4. Check raw sources if needed

If the wiki pages don't fully answer the question, check relevant source summaries in wiki/sources/ for additional detail. Only go to files in raw/ as a last resort.

Synthesize the Answer

Format

Details

Repository
github.com/nicholasspisak/second-brain
Categories
Productivity & Notes, Memory & Context
First seen
Apr 16, 2026

More from nicholasspisak/second-brain

All 4

Similar to Second Brain Query

More Productivity & Notes