AI/ML Engineering, Claude Code plugin
Retrieval systems plugin
Use these skills to diagnose and improve a retrieval pipeline, from chunking and hybrid search to evidence selection and evaluation. First identify whether the failure occurs in retrieval, ranking, or answer generation.
rag-pluginWhat to give your agent
A skill supplies a procedure. Give your agent the project evidence and constraints needed to apply it.
- A small question set with known evidence passages and expected behavior.
- A versioned corpus, chunking configuration, and retrieval settings.
- The retrieved candidates and final context for each failed answer.
Find why a policy answer uses an obsolete document
A support assistant cites a retired policy even though the current policy is in the corpus. Changing the answer prompt may not fix the retrieval failure.
Inspect the evidence path
For each failing question, save candidate document IDs, scores, version metadata, and the final passages sent to the model. Locate where the current policy disappears.
Change one retrieval decision
Test metadata filtering, chunk boundaries, or reranking separately on the same question set. Keep the generator fixed so the comparison isolates retrieval behavior.
Check grounding and abstention
Include questions whose answer is absent and questions with conflicting versions. Verify that the answer cites the selected current evidence or states that the evidence is insufficient.
Per question: expected evidence, retrieved IDs, selected context
Failure stage: retrieval / ranking / generation
Comparison: fixed corpus, queries, and generator
Answer check: citation supports the specific claimHow to check the result
- Retired content is excluded according to the product’s version rules.
- The expected evidence appears in the selected context.
- Missing evidence produces the intended abstention behavior.
A failure to watch for
A fluent answer can conceal a retrieval miss. Inspect the evidence that reached the model before tuning the answer style.
This is an illustrative exercise. Run the checks against your own project to establish the result.
Skills in this pack
Open a skill to see its activation guidance, source sections. These descriptions come from the linked source files.
7 of 7 skills
Agentic RAG Patternsagentic-rag
Build agentic RAG systems with autonomous planning, reflection, and tool use. Use this skill when implementing agent-driven retrieval, query decomposition, iterative refinement, or multi-source RAG orchestration. Activate when: agentic RAG, A-RAG, autonomous retrieval, query planning, iterative RAG, multi-step retrieval, agent retrieval, RAG agent.
Inside the source file
- What Makes RAG "Agentic"
- Core Architecture
- Pattern 1: Query Decomposition
- Pattern 2: Tool-Based Routing
- Pattern 3: LangGraph Agentic RAG
- Pattern 4: Multi-Source Orchestration
- Pattern 5: Self-Reflective RAG
- Pattern 6: Retrieval Gate (Retrieve Only When Needed)
Chunking Strategies for RAGchunking-strategies
Optimize document chunking for RAG performance and retrieval quality. Use this skill when splitting documents, choosing chunk sizes, implementing semantic chunking, or improving RAG retrieval accuracy. Activate when: chunking, split documents, chunk size, text splitting, document processing, RAG performance, semantic chunking, overlap.
Use it when
- Designing a new RAG pipeline
- Retrieval quality is poor because answers are split across chunk boundaries
- Documents mix content types (code, tables, prose, HTML)
- Balancing context-window limits against retrieval precision
Inside the source file
- Why Chunking Matters
- Chunking Methods Comparison
- Pattern 1: Fixed-Size with Overlap
- Pattern 2: Semantic Chunking
- Pattern 3: Parent-Child Chunking
- Pattern 4: Late Chunking
- Pattern 5: Markdown/Code-Aware Chunking
- Metadata Enrichment
Corrective RAG (CRAG) & Self-RAGcorrective-rag
Implement Corrective RAG (CRAG) and Self-RAG for reliable, self-healing retrieval systems. Use this skill when building reliable RAG, preventing hallucinations, implementing retrieval evaluation, or adding self-correction to RAG pipelines. Activate when: corrective RAG, CRAG, self-RAG, hallucination prevention, retrieval evaluation, RAG reliability, self-healing RAG, document grading.
Use it when
- High-stakes applications - Medical, legal, financial
- Low-quality knowledge bases - Outdated or noisy docs
- User-facing products - Where hallucinations damage trust
- Compliance requirements - Need audit trail of sources
Inside the source file
- The Problem with Standard RAG
- CRAG Architecture
- Pattern 1: Document Grading
- Pattern 2: Full CRAG Pipeline
- Pattern 3: Self-RAG with Reflection Tokens
- Pattern 4: LangGraph CRAG Implementation
- Evaluating CRAG
- Best Practices
GraphRAG Patternsgraphrag-patterns
Implement GraphRAG combining knowledge graphs with RAG for multi-hop reasoning. Use this skill when building knowledge graph RAG, implementing multi-hop queries, using Neo4j with RAG, or connecting entities across documents. Activate when: GraphRAG, knowledge graph, multi-hop reasoning, Neo4j RAG, entity extraction, relationship queries, graph database, connected data.
Inside the source file
- When to Use GraphRAG vs Vector RAG
- Core Architecture
- Pattern 1: Entity Extraction → Knowledge Graph
- Pattern 2: Graph-Enhanced Retrieval
- Pattern 3: Text-to-Cypher for Direct Graph Queries
- Pattern 4: Hybrid Vector + Graph Retrieval
- Pattern 5: Path-Based Retrieval (Explain Connections)
- Pattern 6: Microsoft GraphRAG (Community Summaries)
Hybrid Retrieval for RAGhybrid-retrieval
Implement hybrid search combining vector and keyword retrieval for RAG systems. Use this skill when building RAG retrieval, combining semantic search with BM25, implementing reciprocal rank fusion (RRF), or optimizing retrieval accuracy. Activate when: vector search, keyword search, BM25, semantic search, hybrid RAG, retrieval optimization, search relevance, reranking.
Use it when
- Vector search misses exact keyword matches (IDs, error codes, product names)
- Domain terminology needs exact matching
- Users mix natural-language questions with specific terms
Inside the source file
- Why Hybrid Retrieval
- Architecture
- Core Patterns
- Reranking for Better Precision
- Evaluating Hybrid vs Single-Path Retrieval
- Weight Tuning Guidelines
- Best Practices
- Quick Decision Tree
Production RAG Checklistproduction-rag-checklist
Deploy RAG systems to production with proper architecture, monitoring, and operations. Use this skill when deploying RAG to production, scaling retrieval systems, implementing RAG monitoring, or building enterprise RAG infrastructure. Activate when: production RAG, RAG deployment, enterprise RAG, RAG architecture, RAG monitoring, RAG scaling, RAG infrastructure, RAG ops.
Inside the source file
- Pre-Production Checklist
- Architecture Patterns
- Caching Strategies
- Error Handling & Fallbacks
- Observability & Monitoring
- Security Checklist
- Cost Optimization
- Deployment Checklist
RAG Evaluation & Testingrag-evaluation
Test and benchmark RAG systems with proper metrics and evaluation frameworks. Use this skill when evaluating RAG quality, measuring retrieval performance, using RAGAS metrics, or building RAG test suites. Activate when: RAG evaluation, RAG testing, RAGAS, retrieval metrics, faithfulness, relevance, context precision, RAG benchmarking.
Use it when
- Setting up an evaluation pipeline for a new RAG system
- Comparing chunking, retrieval, or reranking strategies
- Building regression tests that run on every change
- Debugging poor answers (retrieval failure or generation failure?)
Inside the source file
- Key Metrics Overview
- Building the Test Set
- Retrieval Metrics (ID-Based)
- RAGAS Framework
- Understanding Each Metric
- Custom LLM-as-Judge
- Latency Tracking
- Building a Test Suite
Install the plugin in Claude Code
Open Claude Code in the project where you want to use this pack. Add the marketplace once, then install the pack by its marketplace name.
1. Add the marketplace
/plugin marketplace add latestaiagents/agent-skills2. Install this pack
/plugin install rag-plugin@latestaiagents3. Check the installed components
Use Claude Code’s plugin manager to confirm the plugin is enabled for the intended scope. Inspect its bundled command files and MCP configuration below before configuring the integrations you plan to use.
Claude Code installation documentationInstall commands follow the repository’s current branch. The inventory on this page is pinned to the source revision below, so a later install may differ.
Commands and MCP configuration
The plugin contains these command files. Read the task instructions before invoking the installed command in your agent.
build-rag.mdStep-by-step guidance to build a RAG pipeline from scratch
eval-rag.mdEvaluate RAG pipeline quality with comprehensive metrics
rag-debug.mdDebug RAG pipeline issues with systematic retrieval and generation analysis
MCP configuration
The source declares 1 integrations. Expand one to inspect its purpose and environment variable names. The configuration needs a technical review before use; indexing a connector does not verify its package or service compatibility.
pineconeDeclared in source
Configuration variables
PINECONE_API_KEY
Source and review status
This inventory is taken from commit a5e492b, committed November 4, 2026. Skill instructions and bundled integrations have not completed a technical review. The worked example is editorial guidance, separate from the source file contents.