Skip to main content
skill CX Codex

sandbox · takagoto — Claude Code skill: what it does, how to install

Quickly scaffolds a minimal retrieval-only RAG pipeline with sample data for hands-on experimentation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a claude-code
Open on GitHub

What sandbox does

This skill prepares a self-contained sandbox/ directory containing sample text in data.txt, a single-file retrieval script, and a short README.md. The pipeline breaks text into 200-token chunks with 50-token overlap, encodes them locally via all-MiniLM-L6-v2, stores the vectors in an in-memory ChromaDB instance, and fetches the top three matches with similarity scores.

Generation via LLM is intentionally omitted to keep focus strictly on retrieval mechanics. Language preference defaults to Python unless specified in progress/learner-profile.md, with TypeScript also supported. If dependencies like chromadb, langchain, or sentence-transformers are missing, the skill presents the exact package manager commands needed before running the code.

What it helps with

  • scaffold a minimal local retrieval pipeline
  • test chunking and embedding behavior in ChromaDB
  • evaluate retrieval similarity scores on custom text

Example prompts for the agent

  • Spin up a minimal RAG sandbox pipeline
  • Scaffold a local RAG retrieval script using Python and ChromaDB
  • Create the sandbox directory and test retrieval against sample data

How to install sandbox

1Skills CLI (Vercel)

npx skills add TakaGoto/rag-learning-academy --skill sandbox -a claude-code

2Manually: put the files in place

~/.claude/skills/sandbox/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/sandbox/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sandbox

How to install sandbox in Claude Code?

Run npx skills add TakaGoto/rag-learning-academy --skill sandbox -a claude-code. The definition will be placed in ~/.claude/skills/sandbox/SKILL.md.

What does the sandbox skill do?

It sets up a lightweight RAG retrieval environment with sample paragraphs, local embeddings, and an in-memory vector database.

Does the generated pipeline generate text answers?

No, it stops at the retrieval phase and only prints the relevant chunks with their similarity metrics.

Source text

SKILL.md · MIT
---
name: sandbox
description: "Spin up a minimal RAG pipeline instantly to experiment with"
---

# Sandbox: Get a Working RAG Pipeline in 5 Minutes

> **Scope:** This skill **scaffolds a minimal pipeline** for quick experimentation. For guided, step-by-step building with explanations, use `/build`.

Scaffold a complete, minimal RAG pipeline with sample data so the learner has something running immediately. This is for experimentation, not production.

> **Language awareness:** See `.claude/LANGUAGE_AWARENESS.md`.

## Step 1: Check Environment

Read `progress/learner-profile.md` for the learner's chosen language. If no profile exists, default to Python.

Check if dependencies are installed. If not, guide the learner through setup:

**Python:**
```bash
pip install chromadb langchain sentence-transformers
```

**TypeScript:**
```bash
npm install chromadb langchain @langchain/community
```

For Go/Rust, note that setup is more manual and offer to walk through it.

## Step 2: Create the Sandbox

Create a `sandbox/` directory with three files:

### File 1: Sample Data (`sandbox/data.txt`)
A short collection of 5-10 paragraphs about a topic (e.g., coffee brewing methods, or RAG itself). Keep it under 2000 words. The data should be interesting enough that queries feel meaningful.

### File 2: The Pipeline (`sandbox/pipeline.[ext]`)
A single-file RAG pipeline that:
1. Loads the sample data
2. Chunks it (fixed-size, 200 tokens, 50 overlap)
3. Embeds chunks using a local model (all-MiniLM-L6-v2)
4. Stores in ChromaDB (in-memory)
5. Takes a query, retrieves top-3 chunks
6. Prints the retrieved chunks with similarity scores

No LLM generation step yet. Keep it simple: retrieval only.

### File 3: README (`sandbox/README.md`)
Quick instructions: how to run it, what to try, and 3 suggested experiments:
1. Try different queries and see what comes back
2. Change the chunk size and see how results change
3. Add your own data file and query it

## Step 3: Run It Together

Run the pipeline with a sample query and show the output. Walk through what happened at each step: "Here's where it chunked your data... here's the embedding step... here's what ChromaDB returned."

## Step 4: Suggest Experiments

Give the learner 3 things to try right now:

1. "Try a query where the answer spans two chunks. Notice how the pipeline only returns individual chunks."
2. "Change chunk size from 200 to 50 tokens. Run the same query. What changed?"
3. "Add a paragraph about something totally different to data.txt. Query for it. Does it retrieve correctly?"

Then suggest next steps:
- `/lesson` to understand the concepts behind what you just built
- `/break-it` to learn by debugging
- `/build` to extend this into a full pipeline with generation

© TakaGoto · MIT · TakaGoto/rag-learning-academy

Similar skills

All skills for AI and ML →

sandbox by other authors comes first.

From the same set16

triage This skill asks what you’re trying to learn, build, debug, or review in RAG, then points you to a fitting command or agent. Use it when the next step isn’t clear. CX Codex +1 ★ 24repo stars start Walks a newcomer through picking a language and track, scoring their level, and running a first RAG pipeline in the same session. CX Codex +1 ★ 24repo stars roadmap This skill maps RAG coursework, achievements, knowledge gaps, and suggested next steps. Use it to see what you’ve finished and what to study next. CX Codex +1 ★ 24repo stars recap Builds a brief recap of the previous lesson from progress files: what you covered, the main ideas, and what comes next. Handy when you come back to a course after a break. CX Codex +1 ★ 24repo stars quiz Generates interactive RAG quizzes with question-by-question scoring. Identifies knowledge gaps before you build retrieval pipelines. CX Codex +1 ★ 24repo stars paper-review Takes you through a RAG research paper section by section: background, method, results, and what to borrow for your own pipeline. Useful when a skim of the abstract is not enough. CX Codex +1 ★ 24repo stars journal The skill saves short notes about what you understood or got stuck on, appending them to progress/journal.md. Useful when you want a learning diary without the ceremony. CX Codex +1 ★ 24repo stars fix Diagnoses and repairs broken RAG pipelines without lectures or theory. Useful when retrieval returns garbage or the model hallucinates. CX Codex +1 ★ 24repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor