chroma-core/agent-skills/chroma-local
Claude Code and agent skill by chroma-core/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when the user needs self-hosted or local Chroma for semantic search, including `ChromaClient`, `HttpClient`, or Python `EphemeralClient`, local persistence, Docker or `chroma run`, or OSS Chroma without Chroma Cloud features.
Install
npx vskill@latest install chroma-core/agent-skills/chroma-localSKILL.md
Instructions
Determine these before writing code. Prefer discovering them from the repo and the user request. Ask only when the choice materially changes the implementation.
- Runtime shape
- Are they connecting to a running local server, embedding Chroma into tests, or setting up local development from scratch?
- Decide whether they need
chroma run, a Docker or service command,HttpClientorChromaClient, or PythonEphemeralClient.
- Persistence
- Persistent local data: choose an intentional data path.
- Disposable test data: use defaults or a temp directory.
- Embedding model
- Reuse the app's existing embedding provider when possible.
- Otherwise default to
@chroma-core/default-embedin TypeScript or the standard local default in Python. - If the user explicitly wants OpenAI embeddings in TypeScript, install and use
@chroma-core/openai.
- Indexed data shape
- Determine what is being indexed, how it should be chunked, and what metadata is needed for filtering and updates.
Routing
- Existing local server
- Confirm host and port before changing client code.
- Validate the server is reachable before assuming collections are missing.
- Fresh local development
- Add a local startup path such as
chroma runor the repo's existing Docker or service command. - Default to
localhost:8000unless the repo already uses another address.
- Python tests or disposable local workflows
- Prefer
EphemeralClientwhen persistence is unnecessary. - Call out that data is lost when the process exits.
- Persistent local development
- Use a stable data path and make persistence explicit in code or config.
- Do not silently switch between ephemeral and persistent modes.
- Search integration work
- Use
getOrCreateCollection()in TypeScript orget_or_create_collection()in Python. - Design document IDs and metadata so upserts and deletes are straightforward.
- Batch writes when syncing large datasets.
Ask vs proceed
Ask first:
- Embedding model choice (cost and quality implications)
- Whether they need persistent local data
- How they are starting the local server
- Multi-tenant data isolation strategy
Proceed with sensible defaults:
- Use
getOrCreateCollection()(TypeScript) /get_or_create_collection()(Python) - Use cosine similarity (most common)
- Chunk size under 8KB
- Store source IDs in metadata for updates/deletes
- Use a local server on
localhost:8000unless the repo already configures another address or is using PythonEphemeralClient
What to validate
- Correct client import (
ChromaClient,HttpClient, orClient) - Embedding function package is installed (TypeScript)
- Local server is reachable before assuming collections are missing
- Local path and persistence mode are intentional
Implementation notes
- Local Chroma is the right default for development, tests, and self-hosted deployments.
- OSS Chroma does not include Chroma Cloud-only features such as
Schema()andSearch(). - If the user asks for hybrid dense and sparse retrieval, treat that as a likely Chroma Cloud requirement unless the repo already implements an OSS workaround.
- For open source Chroma, dense retrieval with a single embedding function is the normal baseline.
Minimal patterns
Start a local Chroma server when the repo needs one:
Default address: localhost:8000.
TypeScript local client:
Python local client:
Learn More
Fetch Chroma's llms.txt only when you need API or product details that are not already in the repo or this skill: https://docs.trychroma.com/llms.txt
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/chroma-local/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chroma-core/agent-skills/chroma-local)