CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rag-pipeline-builder

This guide outlines an end-to-end retrieval-augmented generation pipeline and provides code examples for its main components. It also covers retrieval evaluation, context-window management, and a checklist of implementation tasks.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A lean, well-structured, largely executable set of recipes covering the full RAG pipeline, ending with an evaluation plan and output checklist. The main weaknesses are multiple undefined helper functions that reduce copy-paste readiness, the absence of feedback loops in the evaluation workflow, and no progressive disclosure to reference files in an over-long single file.

Suggestions

Move deep-detail sections (e.g., the 'interface ChunkMetadata' TypeScript schema and the evaluation metrics implementation) into references/ files and link them one level deep from SKILL.md.

Define or replace the undefined helpers ('bm25_search', 'reciprocal_rank_fusion', 'deduplicate', 'llm', 'retrieval_fn', 'count_tokens', 'calculate_page') with concrete implementations so the code is copy-paste ready.

Add an explicit feedback loop to the Evaluation Plan, e.g. 'if recall < 0.8, reduce chunk_size or increase k and re-evaluate'.

DimensionReasoningScore

Conciseness

The body is almost entirely executable code with terse section headers ('## Chunking Strategy', '## Reranking') and no explanations of concepts Claude already knows; comments are limited to useful ones like '# Dense retrieval (semantic)'. Every section adds concrete guidance, matching the 'lean and efficient' anchor.

5 / 5

Actionability

Mostly concrete, real-API code with specific parameters and models ('RecursiveCharacterTextSplitter', "CrossEncoder('cross-encoder/ms-marco-MiniLM-L-6-v2')"), but several sections rely on undefined helpers ('bm25_search', 'reciprocal_rank_fusion', 'deduplicate', 'llm', 'retrieval_fn'), which are gaps beyond the 'minor gaps' of a 5 yet well above the pseudocode level of a 3.

4 / 5

Workflow Clarity

'Documents → Chunking → Embedding → Vector Store → Retrieval → Reranking → Generation' gives a clear sequence, sections follow it in order, and the Evaluation Plan plus 'Output Checklist' provide checkpoints. However, there are no explicit feedback loops (nothing says what to adjust when metrics are poor), so it falls short of a 5.

4 / 5

Progressive Disclosure

All eight topics are inlined in a single ~245-line SKILL.md with no reference files; deep-detail content like the 'interface ChunkMetadata' TypeScript schema and the metrics implementation would belong in references/. Section structure is good, but content that should be separate is inline, matching anchor 3 rather than 4.

3 / 5

Total

16

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: explicit third-person capability list plus a clear 'Use when' clause with natural trigger keywords. The only gaps are a few missing trigger synonyms and slight overlap risk from the broader terms 'document search' and 'knowledge bases'.

DimensionReasoningScore

Specificity

It enumerates concrete capabilities — 'chunking strategies, metadata schemas, retrieval algorithms, reranking, and evaluation plans' — alongside 'Designs retrieval-augmented generation pipelines', giving comprehensive coverage of the domain and matching the multiple-specific-actions anchor. It is not a 4 because any coverage gaps (e.g., embedding) are at most minor.

5 / 5

Completeness

It explicitly answers what ('Designs retrieval-augmented generation pipelines... Includes chunking strategies, metadata schemas, retrieval algorithms, reranking, and evaluation plans') and when ('Use when building "RAG systems", "document search", "semantic search", or "knowledge bases"') with concrete trigger phrases, in third-person voice.

5 / 5

Trigger Term Quality

Natural quoted triggers are present: 'RAG systems', 'document search', 'semantic search', 'knowledge bases'. Common variations such as 'retrieval-augmented generation' spelled out, 'vector database', or 'chat with documents' are missing, so coverage is good but not comprehensive.

4 / 5

Distinctiveness Conflict Risk

RAG is a clear niche with distinct triggers, but 'document search' and 'knowledge bases' are broad enough to overlap with general document or search skills — minor overlap risk rather than the minimal risk of a 5.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/rag-pipeline-builder/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.