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.
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/sandbox/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/sandbox/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a codex2Manually: put the files in place
.agents/skills/sandbox/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a cursor2Manually: put the files in place
.cursor/skills/sandbox/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TakaGoto/rag-learning-academy sandbox2Manually: put the files in place
.github/skills/sandbox/SKILL.md1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a gemini-cli2Platform CLI
gemini skills install https://github.com/TakaGoto/rag-learning-academy --path .claude/skills/sandboxManually: put the files in place
.devin/skills/sandbox/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill sandbox -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.