Agent skill · AI & Agents

agentic-rag-patterns

Advanced RAG with Self-RAG, Corrective-RAG, and knowledge graphs. Use when building agentic RAG pipelines, adaptive retrieval, or query rewriting.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill agentic-rag-patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Declared author: SkillForge
Path: skills/ai-llm/agentic-rag-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Agentic RAG Patterns Build self-correcting retrieval systems with LLM-driven decision making. > **LangGraph 1.0.6** (Jan 2026): langgraph-checkpoint 4.0.0, compile-time checkpointer validation, namespace sanitization. ## Architecture Overview ``` Query → [Retrieve] → [Grade] → [Generate/Rewrite/Web Search] → Response ↓ ↓ Documents Quality Check ↓ Route Decision: - Good docs → Generate - Poor docs → Rewrite query - No docs → Web fallback ``` ## Self-RAG State Definition ```python from langgraph.graph import StateGraph, START, END from typing import TypedDict, List, Annotated from langchain_core.documents import Document import operator class RAGState(TypedDict): """State for agentic RAG workflows.""" question: str documents: Annotated[List[Document], operator.add] generation: str web_search_needed: bool retry_count: int relevance_scores: dict[str, float] ``` ## Core Retrieval Node ```python def retrieve(state: RAGState) -> dict: """Retrieve documents from vector store.""" question = state["question"] documents = retriever.invoke(question) return {"documents": documents, "question": question} ``` ## Document Grading (Self-RAG Core) ```python from pydantic import BaseModel, Field cl

What's inside
Steps it walks through
  1. Architecture Overview
  2. Self-RAG State Definition
  3. Core Retrieval Node
  4. Document Grading (Self-RAG Core)
  5. Query Transformation
  6. Web Search Fallback (CRAG)
  7. Generation Node
  8. Conditional Routing
  9. Complete CRAG Workflow
  10. Pattern Comparison
  11. Key Decisions
  12. Common Mistakes
  13. Related Skills
  14. Capability Details
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the agentic-rag-patterns skill do?

Advanced RAG with Self-RAG, Corrective-RAG, and knowledge graphs. Use when building agentic RAG pipelines, adaptive retrieval, or query rewriting.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill agentic-rag-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going