Skip to content
Back to skills

Agentic Sequential Skill

ASecurity

Arrange a sequential RAG workflow with one optional query rewriter, one required retriever, one optional reranker, and one required grounded generator. Use after Manage selects a simple one-route retrieval and generation process.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 1, 2026
ai-agents

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add DocAILab/Agentic-RAG-Skill --skill agentic-sequential-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agentic Sequential Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agentic Sequential Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/docailab-agentic-sequential-skill/badge)](https://www.skillsdirectory.com/skills/docailab-agentic-sequential-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agentic-sequential-skill
description: Arrange a sequential RAG workflow with one optional query rewriter, one required retriever, one optional reranker, and one required grounded generator. Use after Manage selects a simple one-route retrieval and generation process.
---

# Sequential RAG Skill

Use this Skill only after the Manage stage selects it. This Skill defines process order and Component selection guidance; it does not implement rewriting, retrieval, reranking, or generation.

## Component selection

1. Optionally select one `rewriter` Component when query-document wording mismatch is likely.
2. Select exactly one `retriever` Component.
3. When selecting the HyDE Rewriter, select a semantic Vector Retriever and do not use the hypothetical document as a BM25-only query.
4. Optionally select one `reranker` Component when first-stage ranking is noisy.
5. Select exactly one `generator` Component.
6. Load only the selected Component Skill bodies and implementations.

Prefer BM25 without a Rewriter for exact names, identifiers, and strong lexical anchors.

Prefer Vector Retrieval without a Rewriter for ordinary paraphrases and semantic matching.

Prefer the single-sample HyDE Rewriter (`N=1`) followed by Vector Retrieval when the original query is short, abstract, or phrased differently from relevant corpus documents.

## Query handling

- Send the original query to the optional Rewriter.
- Send the single `rewritten_query` to the Retriever when the HyDE Rewriter is selected.
- Send the original query to the Reranker and Generator.
- Never add a hypothetical HyDE document to the retrieved evidence.

## Workflow

Execute `scripts/workflow.py:run` after every required slot is bound:

```text
RAGRequest
  -> optional rewriter
  -> retriever
  -> optional reranker
  -> generator
  -> RAGResult
```

The workflow script may call slots through `components`, but it must never import a concrete Component implementation.

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml201 B
  • ragskill.yaml644 B
  • scripts/workflow.py2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.