rag-chroma — Claude Code skill: what it does, how to install
Reference patterns and code snippets for integrating the Chroma vector database, filtering metadata, and running semantic retrieval.
npx claude-code-templates@latest --skill ai-research/rag-chromaWhat rag-chroma does
This skill supplies patterns for running the Chroma embedding database in local or self-hosted environments. It covers collection lifecycle management, persisting vector indexes to disk with PersistentClient, and running similarity queries on document chunks.
It also contains examples for the default all-MiniLM-L6-v2 embedding model, OpenAI and HuggingFace functions, and LangChain document loaders. Running the Python examples requires chromadb and sentence-transformers installed in your project.
What it helps with
- persist text embeddings and structured metadata to disk
- execute similarity searches with logical metadata filters
- configure OpenAI or HuggingFace embedding providers in Chroma
- connect Chroma vector storage to LangChain splitters
Example prompts for the agent
- Set up a local Chroma PersistentClient and add documents with source metadata.
- Write a Chroma similarity query that filters results using logical operators.
- Show how to plug OpenAI embeddings into a Chroma collection in Python.
How to install rag-chroma
1claude-code-templates
npx claude-code-templates@latest --skill ai-research/rag-chroma2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill rag-chroma -a claude-code3Manually: put the files in place
~/.claude/skills/rag-chroma/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rag-chroma/
Manually: put the files in place
.agents/skills/rag-chroma/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/rag-chroma/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates rag-chroma2Manually: put the files in place
.github/skills/rag-chroma/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/rag-chromaManually: put the files in place
.devin/skills/rag-chroma/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.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 rag-chroma
How do I install rag-chroma in Claude Code?
Run npx claude-code-templates@latest --skill ai-research/rag-chroma in your terminal.
What does rag-chroma do?
It guides Claude Code on implementing vector workflows in Chroma, including CRUD operations, metadata filters, and embedding function configuration.
What dependencies are needed for Chroma?
For Python setups, install chromadb and sentence-transformers. For Node.js, install chromadb along with @chroma-core/default-embed.