query

Search Second Brain wiki pages and prepare cited synthesis answers.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Cain-Ish/claude-code-plugin --skill query-cain-ish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query
Source: https://github.com/Cain-Ish/claude-code-plugin/tree/main/skills/query
Command: npx skills add https://github.com/Cain-Ish/claude-code-plugin --skill query-cain-ish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you quickly locate the right notes in your local Second Brain wiki when you have a question to answer.

Core Features & Use Cases

  • Wiki search via MCP: Runs a BM25-style search over wiki pages (optionally scoped to a category) and returns the best candidate pages.
  • Relational follow-up when relevant: For questions about dependencies, blast radius, or “what relates to X,” it also expands results using the wiki graph neighbors.
  • Claude-ready synthesis with citations: Reads the top candidate pages and guides Claude to synthesize an answer using those sources, without fabricating citations.

Quick Start

Ask the skill to search for answers by saying: query "How does the counting pipeline handle fallback gotchas?" --scope learnings

Frequently Asked Questions about query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search my local notes and wiki pages to get cited answers?

To get cited answers from local notes, this Skill runs a BM25-style search over your Second Brain wiki pages, reads the top candidates, and synthesizes a grounded response with explicit citations linked to those sources without fabricating references.

What is the best way to find dependency and blast-radius relationships in a wiki?

Finding dependency and blast-radius relationships in a wiki relies on graph neighbor expansion. The Skill identifies relevant pages through initial search and then expands results using the wiki graph neighbors to capture all connected relational content.

How do I scope a knowledge retrieval search to a specific category of wiki content?

You can scope a knowledge retrieval search to a specific category by appending the --scope argument with your desired category name. This constrains the BM25 wiki search to return only candidate pages within that defined topical boundary.

What happens if a wiki search returns empty results for my question?

When a wiki search returns empty results, the Skill includes explicit handling for this scenario. It ensures the synthesis process acknowledges the lack of source material rather than fabricating citations or generating unsupported answers.

Do I need a specific knowledge base setup to use relational wiki queries?

Yes, relational wiki queries require a local Second Brain wiki accessible via the knowledge-base MCP. You need existing wiki pages indexed so the tool can perform BM25 searches and expand graph neighbors for dependency and blast-radius analysis.