semantic-search
Skill1 starsChanged 2 months agoMITView on GitHub
Vector-embedding retrieval plus hybrid ranking — corpus, query, embeddings, BM25 fusion, scored results with rationale.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- myths-labs/musetheir own version, first seen Nov 6, 2026
- vrppaul/semantic-code-mcptheir own version, first seen Nov 1, 2026
- wrg32786/aigent-ostheir own version, first seen Oct 13, 2026
- ZhuBit/cowork-semantic-searchtheir own version, first seen Mar 24, 2026
- ahmedibrahim085/Claude-Multi-Agent-Research-System-Skilltheir own version, first seen Dec 10, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- myths-labs/muse★ 38same name
- ZhuBit/cowork-semantic-search★ 28same name
- wrg32786/aigent-os★ 25same name
- ahmedibrahim085/Claude-Multi-Agent-Research-System-Skill★ 11same name
- vrppaul/semantic-code-mcp★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- decideSkill
- deliverSkill
- researchSkill
- sprintSkill
- superteam-coachSkill
- superteam-coachSkill
- azure-ai-foundry-devSkill
- azure-devopsSkill
- bc-mcpSkill
- copilot-studio-buildSkill
- decideSkill
- deliverSkill
- erp-connectorsSkill
- fabric-appsSkill
- fabric-medallionSkill
- fabric-notebooksSkill
- fabric-onelakeSkill
- fabric-power-biSkill
- find-skillsSkill
- mirrorSkill
- ontologySkill
- playwrightSkill
- researchSkill
- sap-btp-agentsSkill
- semantic-reasoningSkill
- sprintSkill
- superteam-coachSkill
- superteam-demoSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Hybrid rank: Run BM25 (sparse, lexical) over the corpus in parallel with vector cosine similarity (dense, semantic).
- Distinctive: line 31
Never mix embeddings from different models in the same index — score comparisons are meaningless
- Distinctive: line 32
Always run hybrid (dense + sparse) unless the query is a pure semantic paraphrase — lexical catches exact-term hits dense misses
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/semantic-search — Hybrid Vector + Lexical Retrieval
Semantic search is a workflow, not a library. The right embedding model depends on corpus size, latency budget, and quality bar. Hybrid ranking (dense + sparse) beats either alone. Every result carries a score and a reason.
When to invoke
- Athanasios needs to find prior art across
.squad/decisions/or past reports - Superman asks "have we already decided this?"
- Coach is deduplicating near-identical patterns across game tapes
- Kevin is writing a section and needs related docs surfaced
Steps
- Define corpus and query. Enumerate the document set (paths, IDs, count, total tokens). Write the exact query you will run against it. Small corpus (<10k docs) — in-memory is fine. Large — plan a vector store (Azure AI Search, pgvector, Qdrant). Verify current versions at author time.
- Choose the embedding model. Verify latest at author time — as of this skill, OpenAI
text-embedding-3-large(3072-dim, English + multilingual) ortext-embedding-3-small(1536-dim, cheaper) are the defaults. On Azure OpenAI, deploytext-embedding-3-largein a region that supports it. For fully Microsoft-native, evaluate MAI embeddings when GA. Do not pull a model ID from memory — check the vendor docs. - Generate embeddings. Batch the corpus (100–500 docs per API call). Store the vectors keyed by doc ID. Cache — embeddings are re-generatable but not free. Log the model ID and dimension alongside the vectors so the index knows what it holds.
- Hybrid rank. Run BM25 (sparse, lexical) over the corpus in parallel with vector cosine similarity (dense, semantic). Fuse scores with Reciprocal Rank Fusion (RRF, k=60 is a sensible default) or a weighted blend. Take top N (typically 5–20).
- Return with scores and rationale. For each result: dense score, sparse score, fused rank, and a one-line rationale ("matches on query term X + close in embedding space to phrase Y"). Include the doc ID / path so the caller can open it.
- Log cost. Note the number of embeddings generated and the per-call cost. Push to G's
pricing.jsonif this runs regularly.
Deliverable format
- Ranked list of results — top N, each with
{doc_id, dense_score, sparse_score, fused_rank, rationale, path} - Embedding model ID and dimension noted
- Corpus size and total embedding cost for the run
Non-negotiables
- Never mix embeddings from different models in the same index — score comparisons are meaningless
- Always run hybrid (dense + sparse) unless the query is a pure semantic paraphrase — lexical catches exact-term hits dense misses
- Pin the embedding model version in the index metadata — re-embed on model upgrades
- Cost-log every batch — this is a per-token API surface
References
- OpenAI — Embeddings guide
- Azure OpenAI — embeddings models
- Azure AI Search — vector search
- Reciprocal Rank Fusion paper (Cormack et al., 2009)
- Superteam ADR — ontology/semantic skills
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

