rag-skills
AGENTS.md8 starsChanged 7 months agoMITView on GitHub
Project Brief: RAG Skills Repository You are building an open-source repository called "rag-skills" that serves as a modular collection of best-practice guides and skill definitions for coding agents, AI frameworks (like Vercel Agent Skills, Claude Code, etc.), and developers building Retrieval-Augmented Generation pipelines. Repository Purpose: This repo consolidates actionable skills and guides that help developers and AI coding agents improve RAG performance, choose appropriate vector databases and data stores for specific use cases, implement effective chunking strategies, optimize retrieval quality,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository39 other files it gives its agents.
- rag-skillsSkill
- choosing-a-chunking-frameworkSkill
- contextual-chunk-headersSkill
- hierarchical-chunkingSkill
- semantic-chunkingSkill
- chunkingSkill
- sliding-window-chunkingSkill
- rag-for-code-documentationSkill
- rag-for-multimodal-contentSkill
- data-type-handlingSkill
- index-versioning-and-reindexingSkill
- production-rag-deploymentSkill
- deploymentSkill
- generation-evaluation-metricsSkill
- rag-evaluation-frameworksSkill
- retrieval-evaluation-metricsSkill
- evaluation-metricsSkill
- optimize-retrieval-latencySkill
- performance-optimizationSkill
- agentic-rag-routingSkill
- multi-agent-rag-orchestrationSkill
- rag-agentsSkill
- adaptive-retrievalSkill
- context-enrichment-windowSkill
- crag-corrective-ragSkill
- explainable-retrievalSkill
- graph-ragSkill
- hybrid-search-bm25-denseSkill
- hyde-hypothetical-document-embeddingsSkill
- hype-hypothetical-prompt-embeddingsSkill
- multi-pass-retrieval-with-rerankingSkill
- query-transformation-strategiesSkill
- raptor-hierarchical-retrievalSkill
- self-ragSkill
- retrieval-strategiesSkill
- choosing-vector-db-by-datatypeSkill
- qdrant-for-production-ragSkill
- qdrant-setup-ragSkill
- vector-databasesSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 9
Create the following directory layout:
- Distinctive: line 101
Create at least 12 foundational skill files across categories:
- Distinctive: line 141
After completion, the repo should be a well-organized, agent-friendly, and human-readable resource that:
- Distinctive: line 150
Do not write extensive code implementations in the markdown files.
- Distinctive: line 151
Instead, each skill should reference real-world implementations by searching for existing open-source projects, libraries, and tutorials …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Project Brief: RAG Skills Repository
You are building an open-source repository called "rag-skills" that serves as a modular collection of best-practice guides and skill definitions for coding agents, AI frameworks (like Vercel Agent Skills, Claude Code, etc.), and developers building Retrieval-Augmented Generation pipelines.
Repository Purpose: This repo consolidates actionable skills and guides that help developers and AI coding agents improve RAG performance, choose appropriate vector databases and data stores for specific use cases, implement effective chunking strategies, optimize retrieval quality, and orchestrate multi-step RAG workflows. Skills are written as markdown files that can be indexed, parsed, and executed by agents or used as reference documentation by humans.
Repository Structure: Create the following directory layout:
rag-skills/
├── README.md
├── CONTRIBUTING.md
├── LICENSE
├── skills/
│ ├── chunking/
│ ├── vector-databases/
│ ├── retrieval-strategies/
│ ├── data-type-handling/
│ ├── performance-optimization/
│ ├── evaluation-metrics/
│ ├── rag-agents/
│ └── deployment/
├── examples/
│ ├── beginner-rag-pipeline.md
│ ├── multi-agent-rag.md
│ └── production-rag-setup.md
├── templates/
│ ├── skill-template.md
│ └── workflow-template.md
└── scripts/
├── validate-skills.py
└── generate-index.pySkill File Format: Each markdown skill file should follow this structure:
---
title: "Skill Name"
category: "chunking|vector-databases|retrieval-strategies|data-type-handling|performance-optimization|evaluation-metrics|rag-agents|deployment"
level: "beginner|intermediate|advanced"
tags: ["tag1", "tag2", "tag3"]
author: "Author Name"
last_updated: "YYYY-MM-DD"
---
## Overview
[2-3 sentence description of what this skill covers and why it matters for RAG systems]
## Problem Statement
[Describe the specific challenge this skill addresses]
## Key Concepts
- **Concept 1**: Brief explanation
- **Concept 2**: Brief explanation
- **Concept 3**: Brief explanation
## Implementation Guide
### Step 1: [Step Name]
[Detailed explanation with reasoning]
### Step 2: [Step Name]
[Detailed explanation with reasoning]
### Step 3: [Step Name]
[Detailed explanation with reasoning]
## Code Example
\`\`\`python
# Practical, runnable example
\`\`\`
## When to Use This Skill
- Use case 1
- Use case 2
- Use case 3
## When NOT to Use This Skill
- Anti-pattern 1
- Anti-pattern 2
## Related Skills
- [Related Skill 1](../category/skill-name/SKILL.md)
- [Related Skill 2](../category/skill-name/SKILL.md)
## References
- [Reference 1](#)
- [Reference 2](#)
## Metrics & Success Criteria
- Success indicator 1
- Success indicator 2Initial Skills to Create:
Create at least 12 foundational skill files across categories:
Chunking Category (3 skills):
semantic-chunking.md- Chunk documents based on semantic boundaries, not just sizehierarchical-chunking.md- Multi-level chunking for nested document structuressliding-window-chunking.md- Overlap-based chunking to preserve context
Vector Databases Category (3 skills):
qdrant-setup-rag.md- Setting up Qdrant for RAG with filtering and metadataqdrant-for-production-rag.md- Scaling RAG with Qdrant in production environments 3choosing-vector-db-by-datatype.md- Which vector DB for text vs. multimodal vs. code
Retrieval Strategies Category (2 skills):
hybrid-search-bm25-dense.md- Combining keyword and semantic searchmulti-pass-retrieval-with-reranking.md- Two-pass retrieval with cross-encoder reranking
Data Type Handling Category (2 skills):
rag-for-code-documentation.md- Special handling for code snippets, APIs, and technical docsrag-for-multimodal-content.md- Images, tables, and mixed media in RAG systems
Performance Optimization Category (1 skill):
optimize-retrieval-latency.md- Caching, indexing, and query optimization strategies
Root README.md: The README should:
- Explain the purpose and vision of the repo
- Show how to browse skills by category and difficulty level
- Include a quick-start guide for integrating skills into Claude Code, Vercel Agent Skills, or other frameworks
- Show how to use skills programmatically (parsing metadata, executing workflows)
- Link to CONTRIBUTING guidelines for adding new skills
Contributing Guidelines (CONTRIBUTING.md): Specify:
- How to submit new skills
- Skill review criteria (clarity, accuracy, completeness, code examples)
- Naming conventions for skill files
- How to test and validate skills before submission
- Credit and attribution guidelines
Goal: After completion, the repo should be a well-organized, agent-friendly, and human-readable resource that:
- Agents can parse and understand to improve their own RAG implementations
- Developers can browse and reference when building RAG systems
- Teams can integrate into their AI frameworks or skill marketplaces
- Can be extended with new skills and updated as RAG best practices evolve
Important Note on Code Examples: Do not write extensive code implementations in the markdown files. Instead, each skill should reference real-world implementations by searching for existing open-source projects, libraries, and tutorials that demonstrate the concept. For each skill, research and include links to three to five high-quality external resources—GitHub repos, blog posts, or documentation—that show practical implementations. Use brief pseudocode or one-liner examples only to illustrate the concept, then point readers to the actual implementation in those referenced projects. This keeps the skills lightweight, discovery-focused, and ensures users engage with battle-tested code from the community.
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.

