本文へ移動
cccskills
無料GitHub で公開

rag-architect

Design RAG pipelines: chunking, retrieval evaluation, and architecture. Use when building a RAG system, selecting a chunking strategy, choosing a vector database, optimizing retrieval quality, or evaluating with RAGAS metrics.

インストール方法を見る

含まれるファイル(9)

  • SKILL.md7.0 KB
  • chunking_optimizer.py28.8 KB
  • rag_pipeline_designer.py27.2 KB
  • references/chunking_strategies_comparison.md9.9 KB
  • references/embedding_model_benchmark.md11.9 KB
  • references/rag_evaluation_framework.md14.8 KB
  • references/rag-design-guide.md10.8 KB
  • references/tool-cli-reference.md5.3 KB
  • retrieval_evaluator.py23.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

RAG Architect

The agent designs, implements, and optimizes production-grade RAG pipelines, from document chunking through evaluation.

Core Capabilities

  • Chunking strategy selection — match corpus characteristics to fixed-size, sentence, paragraph, semantic, recursive, or document-aware chunking with sized parameters.
  • Embedding & vector-DB choice — pick an embedding model (local vs API) and vector store (Pinecone, Weaviate, Qdrant, Chroma, pgvector) by scale, latency, and cost.
  • Retrieval design — dense, sparse (BM25), or hybrid retrieval with Reciprocal Rank Fusion plus cross-encoder reranking when precision must exceed 0.85.
  • Query transformations — HyDE, multi-query, and step-back techniques for style mismatch and ambiguous queries.
  • Guardrails — PII detection, hallucination/NLI checks, source attribution, confidence scoring, and injection prevention.
  • Evaluation — RAGAS faithfulness/relevance plus IR metrics (Precision@K, Recall@K, MRR, NDCG) with failure analysis.
  • Production patterns — caching, streaming, fallbacks, incremental re-indexing, and cost control.

When to Use

  • Building a RAG system end to end.
  • Selecting a chunking strategy or choosing a vector database.
  • Optimizing retrieval quality or adding reranking.
  • Evaluating a pipeline with RAGAS or IR metrics.

Clarify First

Before designing the pipeline, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Corpus characteristics — size, document structure, and domain (drives the chunking-strategy selection and parameters)
  • Scale / latency / cost constraints — query volume and budget (selects the embedding model and vector DB)
  • Retrieval precision target — the accuracy bar (precision >0.85 forces hybrid retrieval + cross-encoder reranking)
  • Query types — ambiguous, multi-hop, or style-mismatched (decides which query transforms: HyDE / multi-query / step-back)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

Python tools live at the skill root (no scripts/ dir). Full flags/output formats: references/tool-cli-reference.md.

ToolPurposeCommand
chunking_optimizer.pyAnalyze a corpus and recommend the optimal chunking strategy with parameterspython chunking_optimizer.py ./docs --output results.json
retrieval_evaluator.pyEvaluate retrieval with Precision@K, Recall@K, MRR, NDCG + failure analysispython retrieval_evaluator.py queries.json ./corpus ground_truth.json
rag_pipeline_designer.pyGenerate a full pipeline design, cost projection, and Mermaid diagram from requirementspython rag_pipeline_designer.py requirements.json --output pipeline_design.json

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/rag-design-guide.md — the 8-step workflow, every selection matrix (chunking, embedding, vector DB, retrieval, query transforms), context-window optimization, RAGAS targets, guardrails, a worked YAML pipeline example, production patterns, common pitfalls, troubleshooting table, and success criteria. Read when designing or debugging a pipeline.
  • references/tool-cli-reference.md — full flag/parameter tables, examples, and output formats for chunking_optimizer.py, retrieval_evaluator.py, and rag_pipeline_designer.py. Read before running the scripts.
  • references/chunking_strategies_comparison.md — deep comparison of the five chunking strategies with size distributions, quality metrics, and domain recommendations. Read when choosing a chunking strategy.
  • references/embedding_model_benchmark.md — benchmark of OpenAI, open-source, specialized, and domain-specific embedding models. Read when selecting an embedding model.
  • references/rag_evaluation_framework.md — full evaluation framework: retrieval/generation/end-to-end dimensions, offline/online/human methodologies, metric implementations. Read when building an evaluation harness.

Scope & Limitations

This skill covers:

  • End-to-end RAG pipeline architecture design: chunking, embedding, vector storage, retrieval, reranking, and evaluation.
  • Quantitative chunking analysis across four strategy families (fixed-size, sentence, paragraph, semantic).
  • Retrieval quality evaluation using standard IR metrics (Precision@K, Recall@K, MRR, NDCG) with a built-in TF-IDF baseline.
  • Automated pipeline design with component selection, cost projection, and Mermaid architecture diagrams.

This skill does NOT cover:

  • LLM prompt engineering or generation-side optimization -- see engineering/prompt-engineer-toolkit.
  • Database schema design for metadata stores alongside vector databases -- see engineering/database-designer.
  • Production observability, alerting, and SLO dashboards for deployed pipelines -- see engineering/observability-designer.
  • Agent orchestration or multi-step reasoning workflows that sit on top of RAG retrieval -- see engineering/agent-workflow-designer.

Integration Points

SkillIntegrationData Flow
engineering/prompt-engineer-toolkitOptimize system prompts and few-shot examples fed alongside retrieved chunksPipeline design output --> prompt templates that reference chunk format and metadata
engineering/database-designerDesign relational metadata stores (tags, access control, source tracking) paired with the vector databaseVector DB recommendation --> metadata schema for hybrid storage
engineering/observability-designerSet up latency, throughput, and accuracy monitoring for the deployed RAG pipelineEvaluation metrics and SLO targets --> dashboards and alerting rules
engineering/agent-workflow-designerEmbed the RAG retrieval step inside multi-agent reasoning workflowsRetrieval config --> agent tool definition with top-K and threshold parameters
engineering/ci-cd-pipeline-builderAutomate embedding re-indexing, evaluation regression tests, and deployment on document changesEvaluation thresholds --> CI gate that blocks deploys when metrics regress
engineering/api-design-reviewerReview the query and ingestion API surface exposed by the RAG servicePipeline config --> OpenAPI spec review for search and ingest endpoints

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

aeo

無料

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9012026年10月7日 更新

borghei のスキルをすべて見る

このスキルの問題を報告する