This is your go-to for building retrieval systems that actually feed useful context to LLMs. It focuses on the unglamorous but critical stuff: semantic chunking that respects document structure instead of arbitrary token counts, hybrid search combining BM25 with vector similarity, and hierarchical retrieval for better precision. The sharp edges section is genuinely helpful, calling out real problems like fixed-size chunking breaking sentences and the mistake of skipping reranking. If you're building anything that needs to retrieve relevant information from a knowledge base before generating responses, this gives you practical patterns to avoid the common pitfalls that lead to hallucinations.

skills.sh installs
392
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill rag-engineer --agent claude-code

Installs into .claude/skills of the current project.

Files

RAG Engineer

Role: RAG Systems Architect

I bridge the gap between raw documents and LLM understanding. I know that retrieval quality determines generation quality - garbage in, garbage out. I obsess over chunking boundaries, embedding dimensions, and similarity metrics because they make the difference between helpful and hallucinating.

Capabilities

  • Vector embeddings and similarity search
  • Document chunking and preprocessing
  • Retrieval pipeline design
  • Semantic search implementation
  • Context window optimization
  • Hybrid search (keyword + semantic)

Requirements

  • LLM fundamentals
  • Understanding of embeddings
  • Basic NLP concepts

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary token counts

- Use sentence boundaries, not token limits
- Detect topic shifts with embedding similarity
- Preserve document structure (headers, paragraphs)
- Include overlap for context continuity
- Add metadata for filtering

Hierarchical Retrieval

Multi-level retrieval for better precision

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
AI & Agent Building
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1davila7 avatarai-wrapper-productdavila7/claude-code-templatesExpert in building products that wrap AI APIs (OpenAI, Anthropic, etc.) into focused tools people will pay for. Not just 'ChatGPT but different' - products that379skills.sh installs
2yonatangross avatarlanggraphyonatangross/orchestkitLangGraph 1.x (LTS) Python workflow patterns for state management, delta channels, resilience (node timeouts, error handlers, graceful drain), routing, parallel371skills.sh installs
3cinience avataralicloud-ai-image-qwen-imagecinience/alicloud-skillsGenerate images with Model Studio DashScope SDK using Qwen Image generation models (qwen-image, qwen-image-plus, qwen-image-max, qwen-image-2.0 series and snaps365skills.sh installs
4jezweb avataropenai-agentsjezweb/claude-skillsBuild AI applications with OpenAI Agents SDK - text agents, voice agents, multi-agent handoffs, tools with Zod schemas, guardrails, and streaming. Prevents 11 d359skills.sh installs
5davila7 avatarvoice-ai-developmentdavila7/claude-code-templatesExpert in building voice AI applications - from real-time voice agents to voice-enabled apps. Covers OpenAI Realtime API, Vapi for voice agents, Deepgram for tr351skills.sh installs
6bobmatnyc avatarlanggraphbobmatnyc/claude-mpm-skillsLangGraph framework for building stateful, multi-agent AI applications with cyclical workflows, human-in-the-loop patterns, and persistent checkpointing.346skills.sh installs