From claude-context-search-qmd
Search past sessions and knowledge bases via QMD. Use when you need context from previous discussions, past decisions, or indexed knowledge bases. Available to Claude, agents, and subagents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-context-search-qmd:context-searchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Search past Claude Code sessions and knowledge bases using QMD.
Search past Claude Code sessions and knowledge bases using QMD.
The UserPromptSubmit hook automatically injects relevant past context on every user message. You don't need to call this manually for user prompts — it's already happening.
When you or a subagent needs to search past sessions or knowledge bases explicitly — for example, to check if a topic was previously discussed, to find a past decision, or to get context for a task — use:
uv run ${CLAUDE_PLUGIN_ROOT}/skills/context-search/scripts/search-tool.py "your search query"
Options:
--cwd /path — search from a specific project root (defaults to current directory)--debug — show timing and collection info on stderr--no-reindex — skip the index freshness check (faster)The tool reads search-config.yaml from the working directory, searches all configured collections, and prints formatted results with file paths and line numbers.
Always prefer search-tool.py over calling qmd directly. The tool handles config resolution, collection flags, path resolution, and output formatting.
If you must call QMD directly, the JSON output fields are:
file — QMD URI (e.g., qmd://collection-name/file.md), NOT pathtitle — document titlescore — relevance scoresnippet — text excerpt with @@ -LINE,COUNT @@ position markersdocid — short hash IDcontext — collection descriptionIMPORTANT: The field is file, not path. There is no path field in QMD output.
/context-search-qmd:setup — Interactive setup/context-search-qmd:search — Manual search/context-search-qmd:status — Show config and index state/context-search-qmd:collections — List/manage collections/context-search-qmd:reindex — Re-index collectionsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub vranac/claude-context-search-qmd --plugin claude-context-search-qmd