From hive-mind
You MUST use this before planning, scoping, or any work that could benefit from prior decisions, context, or domain knowledge.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hive-mind:searchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Search the hive mind agent knowledge store using qmd and return relevant results.
Search the hive mind agent knowledge store using qmd and return relevant results.
qmd must be installed and on $PATH$HIVE_MIND_PATH environment variable must be set (path to vault root)$HIVE_MIND_COLLECTION must name the qmd collection (default: hive-mind)If any prerequisite is missing, tell the user to run ./setup.sh in the vault directory.
/hive-mind:search <query> — BM25 keyword search (fast, exact terms)
/hive-mind:search <query> --semantic — Vector search (conceptual similarity)
/hive-mind:search <query> --hybrid — Hybrid with LLM reranking (best quality, slowest)
Default is BM25 keyword search. Use --semantic when the query is
conceptual or phrased as a question. Use --hybrid when precision matters.
When you invoke this skill on your own — without specific user-provided search terms — do NOT guess at a query based on the user's intent (e.g., do NOT search "project-name new feature scope"). Those queries return irrelevant results because the vault contains highly specific notes, not generalized ones.
Instead, use the repo-context strategy:
pwdExtract the final directory component of the current working directory.
pwd = /Users/judi/code/trusted-services-lite
→ repo_name = "trusted-services-lite"
→ search_term = "trusted services lite" (de-hyphenated for BM25)
qmd search "<search_term>" --json -n 20 -c $HIVE_MIND_COLLECTION
The vault organizes repo-related notes in repos/<repo-name>/ directories, and notes include repos frontmatter linking to their relevant repository. Searching by repo name surfaces recent sessions, decisions, and context for the project.
From the results, prioritize notes with the most recent date in the title.
Frame the results as "project memories" rather than "search results":
Here's my recent memories for trusted-services-lite:
1. **Session: Auth middleware refactor** (2026-03-28)
2. **PR: Add rate limiting to API endpoints** (2026-03-25)
$ARGUMENTS is empty or contains only the user's intent (not a pointed search query)/hive-mind:search JWT auth strategyIn those cases, use the arguments directly as the query (see Argument Parsing below).
The query is everything in $ARGUMENTS after stripping any flags.
$ARGUMENTS = "JWT auth strategy --semantic"
→ query = "JWT auth strategy"
→ mode = semantic
$ARGUMENTS = "how to handle session tokens"
→ query = "how to handle session tokens"
→ mode = keyword (default)
Keyword (default):
qmd search "<query>" --json -n 10 -c $HIVE_MIND_COLLECTION
Semantic (--semantic):
qmd vsearch "<query>" --json -n 10 -c $HIVE_MIND_COLLECTION
Hybrid (--hybrid):
qmd query "<query>" --json -n 10 -c $HIVE_MIND_COLLECTION
From the JSON output, extract for each result:
Present results as a concise list:
My memories for "JWT authentication":
1. **ECA vs Session-Based Auth** (87%)
2. **Setting Up qmd with Bun** (52%)
After presenting results, offer:
To read a note, use:
qmd get "<filepath>" --full
sqlite vec not sqlite-vec--semanticnpx claudepluginhub arctype-ventures/arctype-plugins --plugin hive-mindCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.