shadow-search
Skill1 starsChanged yesterdayMITView on GitHub
Search, Retrieval & Ranking Engineering. Use when designing or tuning lexical BM25, Indonesian morphology/analyzers, vector ANN, hybrid RRF fusion, cross-encoder reranking, PIT/search_after pagination, zero-downtime alias reindexing, Recall@K/MRR@K/NDCG@K benchmarks, or search tenant ACL prefiltering. Do NOT use for LLM answer faithfulness (shadow-eval), general Redis cache (shadow-cache), or arbitrary SQL tuning (shadow-db).
In this repository51 other files it gives its agents.
- antislop-codeSkill
- antislop-copywritingSkill
- antislop-humanSkill
- antislop-layoutmobileSkill
- antislopSkill
- antislop-uiSkill
- context7Skill
- handoffSkill
- shadow-accessibilitySkill
- shadow-apiSkill
- shadow-architectSkill
- shadow-authSkill
- shadow-bootstrapSkill
- shadow-browserSkill
- shadow-cacheSkill
- shadow-compatSkill
- shadow-concurrencySkill
- shadow-dataSkill
- shadow-dbSkill
- shadow-debugSkill
- shadow-designSkill
- shadow-discoverySkill
- shadow-docSkill
- shadow-domainSkill
- shadow-eaSkill
- shadow-evalSkill
- shadow-finopsSkill
- shadow-gitSkill
- shadow-grcSkill
- shadow-handoverSkill
- shadow-integrateSkill
- shadow-maintainSkill
- shadow-mobileSkill
- shadow-modernizeSkill
- shadow-monarchSkill
- shadow-observeSkill
- shadow-opsSkill
- shadow-perfSkill
- shadow-planSkill
- shadow-pmoSkill
- shadow-presalesSkill
- shadow-privacySkill
- shadow-qualitySkill
- shadow-realtimeSkill
- shadow-refactorSkill
- shadow-releaseSkill
- shadow-resilienceSkill
- shadow-secSkill
- shadow-supplychainSkill
- shadow-testSkill
- shadow-uatSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Owner: Search pipelines (lexical, vector, hybrid RRF, rerank), analyzer/morphology tuning (Indonesian + English), ranking metrics …
- Very specific: line 13
No Uncalibrated Fixed Thresholds: Never pick arbitrary fixed cosine similarity cutoffs (e.g., score > 0.78) without held-out evaluation …
- Very specific: line 16
Read methodologies/HYBRID-BM25-VECTOR-RRF-AND-ACL.md and playbooks/SEARCH-RELEVANCE-AND-MIGRATION-PLAYBOOK.md:
- Distinctive: line 21
Verify Tenant ACL & Freshness Tombstones: Test cross-tenant isolation and near-real-time document deletion/revocation.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/shadow-search — Search, Retrieval & Ranking Engineering
- Owner: Search pipelines (lexical, vector, hybrid RRF, rerank), analyzer/morphology tuning (Indonesian + English), ranking metrics (
Recall@K,MRR@K,NDCG@K), zero-downtime reindex, and tenant ACL prefiltering. - Boundaries: LLM generation faithfulness/red-teaming (
shadow-eval), Redis key caching (shadow-cache), OLTP SQL query tuning (shadow-db).
1. Preconditions, ACL Safety & Calibration Rules
- Tenant ACL Prefilter Mandatory: Filter
tenant_idandpermission_scopesinside the lexical/vector retrieval query BEFORE top-K scoring and caching — NEVER post-filter top-K results (which leaks existence or returns empty pages) and NEVER return deleted/revoked documents. - No Uncalibrated Fixed Thresholds: Never pick arbitrary fixed cosine similarity cutoffs (e.g.,
score > 0.78) without held-out evaluation curves across languages/slang.
2. 7-Step Search Engineering Playbook
Read methodologies/HYBRID-BM25-VECTOR-RRF-AND-ACL.md and playbooks/SEARCH-RELEVANCE-AND-MIGRATION-PLAYBOOK.md:
- Characterize Query Tasks: Separate exact ID/SKU/pasal lookup (lexical BM25) from conceptual semantic queries (dense vector + hybrid RRF).
- Design Indonesian + Domain Analyzers: Handle slang/typo fuzziness, stopwords carefully, stemming vs exact keyword subfields (
keyword+text). - Curate Held-Out Relevance Judgments: Graded relevance (
0..3) with Indonesian slang, near-duplicates, and high-selectivity filters. - Measure Baseline (
Recall@K,MRR@K,NDCG@K): Evaluate retrieval independently from LLM answer generation (/shadow-eval). - Verify Tenant ACL & Freshness Tombstones: Test cross-tenant isolation and near-real-time document deletion/revocation.
- Tune Hybrid RRF / Rerank Under Latency & Cost Budget: Compare lexical-only vs vector-only vs RRF ($k=60$) + optional cross-encoder rerank.
- Zero-Downtime Alias Reindexing: Build
index_v2-> backfill -> verify counts/parity -> atomic alias swap (index_live), keepingindex_v1for instant rollback.
python "shadow-search/scripts/search_relevance_acl_gate.py" --self-test
python "shadow-search/scripts/search_relevance_acl_gate.py" --evaluate path/to/search_eval.jsonDoes 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.

