# ai-rag-pipeline

ai-rag-pipeline — a skill for building RAG pipelines: web search supplies the facts, a model writes the cited answer. Handy for research agents and claim checking.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 240 installs · ★ 31 repo stars
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/tools/llm/ai-rag-pipeline/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/ai-rag-pipeline

## What it does

The skill lays out how to assemble retrieval pipelines from hosted apps on inference.sh. Search brings back fresh results, the model receives them inside the prompt and answers with sources attached. You get a few shapes to pick from: one search plus one answer, two search engines merged into a single analysis, or URL content pulled and condensed.

Commands run as `belt app run` against `tavily/search-assistant`, `exa/search`, `exa/answer`, `tavily/extract`, and models routed through `openrouter/` such as GPT-4o and Gemini 2.5 Pro. The agent stores search output in a shell variable and pastes it into the next prompt. Claim checking has its own flow: gather evidence first, then return a verdict alongside supporting and contradicting material.

You need the `belt` CLI (`npx skills add belt-sh/cli`) plus a session from `belt login`; `belt app run` fails without it. The skill's permission is scoped to `Bash(belt *)`, so it stays out of the rest of your shell. Long search dumps are meant to be summarised first — otherwise the model's context fills up fast.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill ai-rag-pipeline -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ai-rag-pipeline/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ai-rag-pipeline/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill ai-rag-pipeline -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ai-rag-pipeline/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill ai-rag-pipeline -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ai-rag-pipeline/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers tools/llm/ai-rag-pipeline
```

2. **Manually: put the files in place**
- File: `.github/skills/ai-rag-pipeline/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill ai-rag-pipeline -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path tools/llm/ai-rag-pipeline
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ai-rag-pipeline/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill ai-rag-pipeline -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/tools/llm/ai-rag-pipeline/SKILL.md

## When to use it
- answer a question from live search results with sources attached
- fact-check a claim against collected evidence and get a verdict
- merge Tavily and Exa output into one analysis that flags contradictions
- extract readable text from a set of URLs and boil it down
- produce a topic report with stats and expert commentary

## Example prompts
- Run a RAG pass on quantum computing: search with `tavily/search-assistant`, then have `openrouter/` write a summary with citations
- Fact-check a claim about generative AI in creative work — gather research first, then give me a verdict and sources
- Pull the content from these URLs with `tavily/extract` and list the key findings

## Similar
- [exa-rag](https://affpapa.org/en/nevibecode/skills/exa-rag.md) — skill · 251 installs
- [tavily-best-practices](https://affpapa.org/en/nevibecode/skills/tavily-best-practices.md) — skill · 21100 installs
- [rag-eval](https://affpapa.org/en/nevibecode/skills/glebis-rag-eval.md) — skill · 150 installs
- [dspy-rag-pipeline](https://affpapa.org/en/nevibecode/skills/dspy-rag-pipeline.md) — skill · ★ 125 repo stars
- [rag-pipeline-builder](https://affpapa.org/en/nevibecode/skills/rag-pipeline-builder.md) — skill · 251 installs
- [ai-data-engineering-rag-pipeline](https://affpapa.org/en/nevibecode/skills/ai-data-engineering-rag-pipeline.md) — skill · 165 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 81 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
