RAG Workflow Planner

RAG Workflow Planner is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 37 tokens per session (2,370 once invoked), scanned A, original, MIT.

A guide for designing a Retrieval-Augmented Generation (RAG) system. RAG lets an AI answer questions using information retrieved from a document collection instead of relying only on its built-in knowledge.

In plain words
What is it for?
Use it when starting a RAG project or redesigning an existing one. It covers document splitting, embedding models, vector databases, search, reranking, and a starter architecture.
Why use it?
It helps address poor or unreliable document retrieval by matching the pipeline design to the types of documents, questions, and response-speed needs involved.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it when starting a RAG project or redesigning an existing one. It covers document splitting, embedding models, vector databases, search, reranking, and a starter architecture.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/rag-workflow-planner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Notysoty/openagentskills --skill rag-workflow-planner
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for RAG Workflow Planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/rag-workflow-planner.svg)](https://agentmods.dev/skills/notysoty/openagentskills/rag-workflow-planner)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/rag-workflow-planner"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/rag-workflow-planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02370
Opus 5 $0.00018 $0.01185
Sonnet 5 $0.00007 $0.00474
Haiku 4.5 $0.00004 $0.00237

Measured 8d ago against content hash 6a15363b9cab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

RAG Workflow Planner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rag-workflow-planner/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RAG Workflow Planner

What this skill does

This skill walks through your RAG use case requirements and designs a complete, production-ready Retrieval-Augmented Generation pipeline. It recommends a chunking strategy, embedding model, vector store, retrieval approach, and reranking strategy — each choice justified against your specific requirements. The output includes an ASCII architecture diagram, a component-by-component breakdown, and a starter code outline.

Use this when you're starting a new RAG project or when an existing RAG pipeline is producing poor retrieval quality and you want a systematic redesign.

How to use

Claude Code / Cline

Copy this file to .agents/skills/rag-workflow-planner/SKILL.md in your project root.

Then describe your use case and ask:

  • "Use the RAG Workflow Planner skill to design a pipeline for our customer support chatbot."
  • "Plan a RAG architecture for our internal knowledge base search using the RAG Workflow Planner skill."

The more detail you provide about document types, query patterns, and latency requirements, the more precise the output.

Cursor

Add the "Prompt / Instructions" section to your .cursorrules file. Describe your RAG use case in the chat.

Codex

Describe your use case and answer the requirements questions in the instructions below, then include the full instructions. Codex will produce the architecture design.

The Prompt / Instructions for the Agent

When asked to design a RAG pipeline, follow these steps:

  1. Gather requirements. If not provided, ask for:
    • Document types: PDFs, HTML pages, markdown files, database records, code files, emails, etc.
    • Corpus size: A few dozen documents, thousands, millions?
    • Query types: Short factual questions? Multi-step reasoning queries? Semantic search? Code search?
    • Latency requirements: Real-time chat (< 2 seconds) or batch/async?
    • Freshness requirements: Static documents, or does the corpus update frequently?
    • Language: English only, or multilingual?
    • Budget constraints: Self-hosted vs. managed APIs?
    • Existing tech stack: Are there database or cloud provider preferences?

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 207 lines · 37 tokens per session scan A 6a15363b9cab

Subscribe to this mod's changes

RAG Workflow Planner is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 24d ago), licensed MIT. It adds 37 tokens to every session and 2,370 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Vector Databases

Guides retrieval-store design, indexing, and query behavior for embedding-backed systems without confusing storage with application truth.

agentic-in/elephant-agent · 26 tokens

qdrant-clients-sdk

Qdrant provides client SDKs for various programming languages, allowing easy integration with Qdrant deployments.

qdrant/skills · 28 tokens

chroma

Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…

davila7/claude-code-templates · 63 tokens

qdrant-hybrid-search-prefetches

Constructing prefetch queries for hybrid retrieval, including sparse/dense and multi-field setups, and choosing a sparse embedding model. Use when someone asks 'dense and sparse in one search?', 'how to combine multiple fields for retrieval?', 'payloads or sparse vectors for lexical?', 'which sparse embedding model to…

qdrant/skills · 81 tokens

qdrant-model-migration

Guides embedding model migration in Qdrant without downtime. Use when someone asks 'how to switch embedding models', 'how to migrate vectors', 'how to update to a new model', 'zero-downtime model change', 'how to re-embed my data', or 'can I use two models at once'. Also use when upgrading model dimensions, switching…

qdrant/skills · 88 tokens

qdrant-multitenancy

Guides tenant isolation architecture in Qdrant for multi-tenant or multi-user applications. Use when someone asks 'how to isolate customer data', 'how to build multi-tenant search/RAG', 'how many collections should I create', 'how to partition tenants by payload', 'a customer's data legally has to stay in a certain…

qdrant/skills · 109 tokens