Files
MyAiConfiguration/shared/skills/research/semantic-search/SKILL.md
T
fraujulian e19aa2e27c
CI / PowerShell tests on Ubuntu (push) Failing after 3s
CI / CI configuration security checks (push) Successful in 2s
CI / Capabilities and shell quality (push) Successful in 12s
CI / Python tests and compilation (push) Successful in 22s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 11s
CI / Installed client configuration smoke tests (push) Successful in 59s
CI / Bash integration and installation guards (push) Successful in 1m31s
Updates
2026-11-05 08:31:07 +01:00

32 lines
1.7 KiB
Markdown

---
name: semantic-search
description: MUST apply before open repository searches - run semantic retrieval first for unknown identifiers and behavior questions. Not needed for known paths, symbols, or exact strings, which use direct reads or rg.
---
# Semantic Search
Search the current Git repository, plus the user's registered QMD collections, by meaning. QMD runs locally with Qwen3-Embedding-0.6B, Qwen3-Reranker-0.6B, and QMD Query Expansion 1.7B; a background daemon keeps them loaded.
## Rule
Apply `research`, `repository-research`, and this routing rule before each open repository search. Known exact identifiers, paths, or strings use direct reads or `rg` without loading these skills. Unknown identifiers require semantic retrieval first; guessed keywords are not known identifiers. Reevaluate the route for every follow-up query. Reuse instructions already in context.
## Run
The same command works in Bash and PowerShell:
node "$HOME/.my-ai-configuration/qmd/qmd-search.mjs" --query "<full question about behavior>" --top-k 5
Output: JSON list of `{path, line, score, snippet}`, best first. Repository paths are relative to the repository root; hits from other collections are `qmd://<collection>/<path>`.
## Use the results
1. Phrase the query as a full question about behavior, not a keyword list. Batch related questions into one precise query.
2. Open the top hits and verify them against the current files before acting; the index can lag behind uncommitted edits.
3. If no hit is relevant, run one rephrased search before switching to `rg`.
4. Continue with `repository-research` from the verified hits: callers, tests, and conventions.
## Failure
If the command exits non-zero, continue with `rg` and state the limitation in one sentence.