From second-brain
Search the second-brain wiki for pages relevant to a question. Thin wrapper around the knowledge_search MCP tool — returns candidate pages and lets Claude synthesize a cited answer from them.
npx claudepluginhub cain-ish/claude-code-plugin --plugin second-brain[your question] [--scope <category>]This skill is limited to using the following tools:
<!-- user instruction verbatim: "1" -->
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Find wiki pages relevant to a question. This skill is a thin wrapper around the knowledge_search MCP tool: it issues the search, then leaves synthesis to Claude using the returned candidates.
$ARGUMENTS is the user's question. If it contains a --scope <category> token, peel that off and use it as the scope argument; otherwise leave scope unset to search all categories.
Scope can be any wiki subdirectory name (e.g. concepts, entities, learnings). Omit to search all directories.
knowledge_searchknowledge_search(query: "<question>", scope: "<optional category>")
The tool returns a JSON object of the shape:
{
"candidates": [
{ "path": "/home/.../wiki/learnings/2026-04-29-counting-pipeline.md", "score": 3, "first_lines": "# Counting pipeline fallback gotcha\n..." }
]
}
candidates is ranked by BM25 score (highest first, field-weighted: title 3x, description 2x, tags 2x, body 1x), capped at 8 results, and may be empty.
For each candidate (in score order, up to ~3), read the full file with the Read tool. The first_lines snippet is just a hint — the full page often contains the answer the snippet doesn't show.
Write a focused response that:
According to [[counting-pipeline-redundant-fallback]]…If candidates is empty:
/second-brain:improve after the conversation so the next query hits a wiki page.Do not silently fabricate citations — if the wiki has nothing, say so.
/second-brain:improve (proposes pins), the archive_to_wiki MCP tool (graduates resolved entries from PROJECT.md), and the Stop-hook auto-extractor (creates/updates wiki pages from session content).index.md, consider reading it first to browse available pages by category before searching — useful when the question is broad.knowledge_search reads the wiki tree on every call. The index.md catalog is regenerated by knowledge_reindex or after wiki writes.