/ragu-build:ragu-buildfrom RAGU build assistant
Interviews users about their RAGU use case, selects an appropriate pipeline, and generates a validated ragu_build.yaml plus a runnable build script.
Ships in RAGU build assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: determine what the user actually needs through a short interview, then produce two artifacts:
ragu_build.yaml — the recorded decisions and rationale;build_<name>.py — a working RAGU build script.The RAGU library is already documented: every module ships a README.md describing its role in the pipeline and providing examples.
This skill is a decision process and navigation map, not a retelling of that documentation.
Do not read module sources unless explicitly allowed below. Do not summarize whole READMEs.
Read narrowly, guided by references/module-map.md.
Conduct the interview in whatever language the user writes in.
All paths under:
references/assets/scripts/are relative to this skill's own directory, not to the user's project root.
Resolve the skill directory using whatever mechanism the current agent environment provides. Never assume that the skill lives inside the user's repository or that its resources are reachable through paths relative to the current working directory.
Before asking the user anything, infer everything that can reasonably be discovered from the project.
This removes unnecessary interview questions.
Read:
references/module-map.md
Use it only as a navigation map for RAGU components and documentation.
Inspect relevant project state in one batch where practical.
If the user named a data directory, inspect:
For example:
find <dir> -type f | sed 's/.*\.//' | sort | uniq -c
du -sh <dir>
This establishes:
Do not recursively inspect document contents unless necessary.
Look for already-running or already-configured storage infrastructure.
Useful signals include:
docker ps
and project-local evidence such as:
qdrant_storage/;Use only obvious project configuration. Do not search through unrelated files.
If available, run:
nvidia-smi
Use the result only to determine whether local GPU-backed models are realistic.
Failure or absence of nvidia-smi is not itself an error.
Do not search for:
.env contents;Which model provider or runtime the user intends to use is an interview question, not something to discover from private credentials.
Before starting the interview, tell the user in one short statement what was discovered and what will be treated as given.
For example:
Your data directory contains about 900 text files totaling ~40 MB. No running vector or graph storage is visible, and a local NVIDIA GPU is available. I'll plan around those facts unless you want to override them.
Anything already established in Phase 0 must not be asked again.
Present inferred facts as correctable facts rather than questions.
The purpose of the interview is to eliminate incompatible pipeline branches with as few questions as possible.
Use the current environment's interactive question mechanism when one is available and appropriate.
Otherwise ask directly in chat.
Do not depend on any specific platform tool name such as AskUserQuestion.
Ask one or two questions at a time.
Never dump the whole interview into a single form or message.
Phrase questions using example queries and example data, not RAGU implementation terminology.
Avoid terms such as:
Technical terminology may appear in the explanation after the user answers, but not unnecessarily in the question itself.
Q1 is the deliberate exception: whether to build a graph is asked explicitly because this decision dominates both cost and architecture, and many users already know whether they want one.
If they do not know, use Q1b.
After each answer, briefly explain which pipeline branches were eliminated.
Order questions by branching factor.
Use at most six primary questions.
If a question's answer follows from:
skip it.
Never let an unanswered question stall the deliverable.
If the user:
ask once more.
If the answer is still unavailable:
Every such assumption must appear in all relevant outputs.
In the Phase 2 decision table, write:
ASSUMPTION
in the based on what column.
In ragu_build.yaml, mark it with:
# ASSUMPTION
In build_<name>.py, keep the assumed value as a named constant near the top of the script.
Do not bury assumed values deep inside the implementation.
In the final report, list unresolved assumptions as things the user should verify before the first real run.
An unanswered question should cost one line in the final report.
It must never cost the whole deliverable.
Exact wording and options live in:
references/decision-matrix.md
section:
Questions
Use that wording when available.
The decision sequence is:
| # | About | Eliminates |
|---|---|---|
| 1 | whether to build a graph, including its cost | graph / flat index |
| 1b | how answers are distributed across documents — only if Q1 is "not sure" | graph / flat index |
| 2 | examples of typical queries | search engine |
| 3 | exact terms, codes, IDs or part numbers in queries | lexical / sparse retrieval |
| 4 | where models run | LLM / embedder client |
| 5 | corpus size and update pattern | storage backends |
| 6 | extraction quality versus cost — graph builds only | artifact extractor |
If Q1 selects a vector-only / flat-index build:
Q1b runs only when Q1 is effectively:
not sure
Never ask both Q1 and Q1b as independent decisions.
Before generating any files, show the user a concise decision table with:
| choice | why | based on what |
|---|
The based on what column must identify the source of each decision:
ASSUMPTION.Also explicitly state important components that are not included and why.
For example:
No Global engine — none of the example queries asked for corpus-wide themes or summaries. It can be added later without changing the ingestion strategy.
Do not list every conceivable unused RAGU component. Mention exclusions only when they represent meaningful architectural branches.
Wait for user confirmation before Phase 3.
If the user changes one decision:
After the user confirms the decision summary, generate the build.
Read:
references/decision-matrix.md
in full.
It is the source of truth for:
Take every class name and constructor parameter from the matrix rather than from memory.
If the matrix does not contain enough detail for a selected component:
references/module-map.md to locate the corresponding RAGU module;README.md.Do not read the whole README unless the required information cannot otherwise be located.
Do not inspect source code merely for convenience.
If a required constructor detail exists in neither:
then inspect only the real constructor signature.
For example:
grep -n "def __init__" -A 25 <file>
Use this only as a last resort.
Do not explore implementation internals.
Never invent constructor parameters.
ragu_build.yamlWrite:
ragu_build.yaml
It must record the selected build decisions.
For every meaningful decision include:
Keep rejected architectural alternatives out of the Python script; they belong here when worth recording.
Mark unresolved defaults explicitly:
# ASSUMPTION
build_<name>.pyStart from:
assets/build_template.py
The template represents stock build B:
graph + local search.
Adapt it to the decisions selected during the interview.
Use:
references/decision-matrix.md for exact signatures;A comparable hand-written example is:
examples/extract_with_llm_and_local_search.py
when it exists in the user's RAGU checkout.
Keep the generated script intentionally flat.
Preferred structure:
async def main(...);if __name__ == "__main__" guard.Do not create helper functions that are called only once unless they materially improve correctness.
Do not include:
Keep choices that were considered but not selected in ragu_build.yaml.
Any unresolved assumption must remain visible as a named constant near the top.
For example:
# ASSUMPTION: user did not specify the collection name.
COLLECTION_NAME = "ragu"
The validator runs main() for real.
Therefore:
main();The generated script is for the user to run intentionally.
The validator belongs to this skill at:
scripts/validate_build.py
Resolve this path relative to the skill's own directory.
Never assume it is relative to the user's project.
Run validation using a Python interpreter capable of importing the user's ragu installation.
Prefer, in order:
$VIRTUAL_ENV;.venv/bin/python;venv/bin/python;python3.Confirm that the selected interpreter can import RAGU before relying on the validator.
A typical check is:
if [ -n "$VIRTUAL_ENV" ] && [ -x "$VIRTUAL_ENV/bin/python" ]; then
PY="$VIRTUAL_ENV/bin/python"
elif [ -x ".venv/bin/python" ]; then
PY=".venv/bin/python"
elif [ -x "venv/bin/python" ]; then
PY="venv/bin/python"
else
PY="python3"
fi
"$PY" -c "import ragu"
Then run:
"$PY" <skill-dir>/scripts/validate_build.py build_<name>.py
Use the actual resolved skill directory in place of <skill-dir>.
If no available interpreter can import ragu:
Stop trying to execute the validator.
The files may still be generated, but the final report must identify validation as blocked.
The validator:
main();Validation must not intentionally send requests to external model providers or execute real model inference.
Fix every validator error caused by the generated script before reporting success.
Do not suppress or ignore validator failures merely to finish the task.
Report the result concisely.
Open with anything that blocks the first real run, including:
Then state:
ragu_build.yaml was written;build_<name>.py was written;Cost and duration estimates must be presented as estimates, with the assumptions behind them.
Do not imply precision that the available corpus size, model provider, hardware, or extraction strategy does not support.
RAGU ingests plain text and nothing else.
RAGU does not itself provide:
If the user's corpus contains:
say plainly that RAGU cannot ingest those files directly.
Converting them to text is a separate preprocessing step outside the build produced by this skill.
Never generate a build that pretends unsupported files can be read directly.
This skill produces:
It does not modify the RAGU library itself.
Do not patch RAGU source code as part of this workflow.
Do not:
unless the user explicitly asks for execution.
Generating and locally validating the script is allowed.
The resulting script is the user's build to run.
Prefer information sources in this order:
references/decision-matrix.md;references/module-map.md;README.md;Do not browse RAGU implementation source for architecture understanding.
Never invent APIs, class names, arguments, or constructor parameters.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (raguteam/ragu) — no native marketplace selected
npx claudepluginhub p/raguteam-ragu-build-agents-skills-ragu-buildOther plugins' skills for the same job