> RAG system, selecting a chunking strategy, choosing a vector database, optimizing retrieval quality, or evaluating with RAGAS metrics.
npx skills add https://github.com/borghei/Claude-Skills --skill rag-architect
The agent designs, implements, and optimizes production-grade RAG pipelines, from document chunking through evaluation.
Before designing the pipeline, confirm these inputs. If any is unknown or vague, ASK — do not assume:
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.
Python tools live at the skill root (no scripts/ dir). Full flags/output formats: references/tool-cli-reference.md.
| Tool | Purpose | Command |
|------|---------|---------|
| chunking_optimizer.py | Analyze a corpus and recommend the optimal chunking strategy with parameters | python chunking_optimizer.py ./docs --output results.json |
| retrieval_evaluator.py | Evaluate retrieval with Precision@K, Recall@K, MRR, NDCG + failure analysis | python retrieval_evaluator.py queries.json ./corpus ground_truth.json |
| rag_pipeline_designer.py | Generate a full pipeline design, cost projection, and Mermaid diagram from requirements | python rag_pipeline_designer.py requirements.json --output pipeline_design.json |
Load the reference that matches the task — keep this file lean and pull detail on demand:
chunking_optimizer.py, retrieval_evaluator.py, and rag_pipeline_designer.py. Read before running the scripts.This skill covers:
This skill does NOT cover:
engineering/prompt-engineer-toolkit.engineering/database-designer.engineering/observability-designer.engineering/agent-workflow-designer.| Skill | Integration | Data Flow |
|-------|-------------|-----------|
| engineering/prompt-engineer-toolkit | Optimize system prompts and few-shot examples fed alongside retrieved chunks | Pipeline design output --> prompt templates that reference chunk format and metadata |
| engineering/database-designer | Design relational metadata stores (tags, access control, source tracking) paired with the vector database | Vector DB recommendation --> metadata schema for hybrid storage |
| engineering/observability-designer | Set up latency, throughput, and accuracy monitoring for the deployed RAG pipeline | Evaluation metrics and SLO targets --> dashboards and alerting rules |
| engineering/agent-workflow-designer | Embed the RAG retrieval step inside multi-agent reasoning workflows | Retrieval config --> agent tool definition with top-K and threshold parameters |
| engineering/ci-cd-pipeline-builder | Automate embedding re-indexing, evaluation regression tests, and deployment on document changes | Evaluation thresholds --> CI gate that blocks deploys when metrics regress |
| engineering/api-design-reviewer | Review the query and ingestion API surface exposed by the RAG service | Pipeline config --> OpenAPI spec review for search and ingest endpoints |
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Access NCBI GEO for gene expression/genomics data. Search/download microarray and RNA-seq datasets (GSE, GSM, GPL), retrieve SOFT/Matrix files, for transcriptomics and expression analysis.
Bayesian modeling with PyMC. Build hierarchical models, MCMC (NUTS), variational inference, LOO/WAIC comparison, posterior checks, for probabilistic programming and inference.
Multi-objective optimization framework. NSGA-II, NSGA-III, MOEA/D, Pareto fronts, constraint handling, benchmarks (ZDT, DTLZ), for engineering design and optimization problems.
Statistical modeling toolkit. OLS, GLM, logistic, ARIMA, time series, hypothesis tests, diagnostics, AIC/BIC, for rigorous statistical inference and econometric analysis.
Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.
Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
Take borghei/rag-architect from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.