rag-engineering
Skill0 starsChanged 47 days agoMITView on GitHub
Use when building or debugging retrieval-augmented generation — chunking, embedding choice, vector store, hybrid search, reranking, RAG-specific evaluation and failure modes. Do NOT use for general context budgeting/prompt structure (planned skill context-engineering; when unavailable, state the boundary).
6 other projects use a version of this.
Adopted by
Most recently taken up by
- felvieira/claude-skills-fvtheir own version, first seen Nov 1, 2026
- asmamest/Nexus-Skillstheir own version, first seen Oct 15, 2026
- mehulpratapsing/ai-engineer-skill-stacktheir own version, first seen Oct 8, 2026
- Sathvikar01/Agent-engineering-skillstheir own version, first seen Oct 5, 2026
- BejeweledMe/codex-pro-agent-skillstheir own version, first seen Sep 6, 2026
- remembervictorchatbot-vip/AI_Token_Savingtheir own version, first seen Aug 22, 2026
Used with
Projects with it also use security-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillsecurity-review
Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.
Also in 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- felvieira/claude-skills-fv★ 27same name
- BejeweledMe/codex-pro-agent-skills★ 7same name
- Sathvikar01/Agent-engineering-skills★ 3same name
- asmamest/Nexus-Skills★ 1same name
- mehulpratapsing/ai-engineer-skill-stack★ 1same name
- remembervictorchatbot-vip/AI_Token_Saving★ 0same 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- google-ads-managementSkill
- meta-ads-managementSkill
- tiktok-ads-managementSkill
- ai-automationSkill
- ai-researchSkill
- ai-system-designSkill
- context-engineeringSkill
- eval-harnessSkill
- implementation-verificationSkill
- inference-optimizationSkill
- model-selection-hfSkill
- model-servingSkill
- production-opsSkill
- tool-and-mcp-designSkill
- training-data-engineeringSkill
- training-peftSkill
- jev-browserSkill
- premiere-pro-mcpSkill
- suno-music-generatorSkill
- growth-loopSkill
- mobile-store-releaseSkill
- mobile-ui-reviewSkill
- store-listing-assetsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Keep base-model selection separate.
- Distinctive: line 33
Read the RAG failure-mode catalog before diagnosing or approving the design.
- Very specific: line 43
If vector-store access is unavailable, state the boundary.
- Distinctive: line 44
If authorization metadata is unavailable, stop the confidential retrieval path.
- Distinctive: line 45
If corpus content cannot leave its boundary, select local tools or work on redacted/synthetic structure.
- Distinctive: line 46
If no labeled evaluation queries exist, create a bounded annotation task and run only smoke diagnostics.
“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
RAG Engineering
Boundaries
- Own corpus ingestion, chunking, embedding choice, index/store design, lexical/dense/hybrid retrieval, metadata filters, reranking, provenance, and RAG-specific evaluation and diagnosis.
- Enforce authorization and tenant/document visibility before retrieval and again before content fetch. Never use prompt instructions or post-generation filtering as access control.
- For general prompt layout, conversation memory, context budgeting, and compaction, see skill context-engineering.
- For current embedding, vector-store, reranker, license, API, and data-egress facts, see skill ai-research. Never select a changing external capability from memory.
- Keep base-model selection separate; RAG need does not determine the concrete generation model.
Decision Workflow
- Define the question types, corpus, source authority, languages/modalities, confidentiality, tenant/role model, freshness/versioning, citation requirement, latency/cost envelope, and allowed data egress.
- Build ingestion with source identity, parser/version, content hash, permissions, timestamps, document version, lineage, deletion propagation, deduplication, and failure quarantine.
- Define chunking hypotheses from document structure and question granularity. Preserve headings, page/section anchors, parent-child relationships, tables/code where relevant, and stable provenance.
- Select embeddings from workload evidence: language/modality, domain, length, retrieval metric, privacy/egress, license, runtime, and cost. For current metadata, see skill ai-research.
- Select the store/index by required filters, authorization isolation, update/delete consistency, hybrid support, scale, backup, audit, and egress constraints. Do not treat a vector-store brand as an architecture answer.
- Apply query normalization or transformation only with measurable benefit. Retrieve through authorization-scoped dense, lexical, or hybrid paths; apply metadata/version filters before candidates can cross the trust boundary.
- Rerank only authorized candidates. Define top-k, score/abstention thresholds, diversity, freshness, and no-answer behavior from evaluation rather than intuition.
- Assemble generation context with stable source IDs and versioned citations. Require the answer to distinguish supported statements, uncertainty, and no-evidence cases.
- Evaluate separate stages and slices:
- ingestion coverage, freshness, deletion, version, and ACL correctness;
- retrieval recall@k, precision@k, MRR/nDCG where appropriate, answer-bearing chunk rate, and filter leakage;
- reranking lift versus latency/cost;
- grounded answer quality, citation correctness/completeness, hallucination/abstention, and unauthorized disclosure.
- Diagnose by classifying the failure as ingestion, chunking, embedding/query, filter, retrieval, reranking, context assembly, or generation. Change one hypothesis at a time and retain slice-level evidence.
Read the RAG failure-mode catalog before diagnosing or approving the design.
Required Output
Return the data/egress and authorization boundary, ingestion and versioning contract, chunk/embedding/store decision records, retrieval/reranking pipeline, provenance/citation contract, RAG evaluation dataset and gates, diagnostic evidence, rejected alternatives, and all UNVERIFIED production-path claims.
Tool Requirements & Degradation
- Require corpus/parser inspection, permission metadata, index/store access, retrieval traces, query/result logging with redaction, a controlled evaluation corpus, and an end-to-end runner.
- For current service/model/store facts and licenses, see skill ai-research. Keep confidential text out of external tools unless egress is explicitly allowed.
- If vector-store access is unavailable, state the boundary; use existing retrieval logs or a small local controlled corpus to test deterministic hypotheses. Label index statistics, production filtering, scale, and retrieval behavior
UNVERIFIED. - If authorization metadata is unavailable, stop the confidential retrieval path. Do not substitute prompt instructions or test with cross-tenant data.
- If corpus content cannot leave its boundary, select local tools or work on redacted/synthetic structure; do not weaken the egress requirement without human approval.
- If no labeled evaluation queries exist, create a bounded annotation task and run only smoke diagnostics; do not claim RAG quality.
Failure Modes
- Filtering authorization after retrieval or generation, or omitting tenant/role scope from cache and index operations.
- Treating duplicate or stale document versions as harmless and citing an obsolete copy.
- Choosing chunk size, top-k, embedding, or reranker by convention without workload evidence.
- Optimizing semantic similarity while retrieved chunks remain answer-irrelevant.
- Debugging every failure by rewriting the prompt or changing the base model first.
- Evaluating only final answer fluency while ignoring retrieval, citation, abstention, freshness, and leakage.
- Inventing production index statistics or claiming the store path was tested while access was unavailable.
- Sending confidential chunks to an external embedding, reranking, generation, or logging service outside the allowed egress boundary.
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.

