/cyborgdb-skills:cyborgdb-installfrom cyborgdb-skills
Fully automated CyborgDB install from zero to a working first similarity query. Installs the service with default disk backing store, loads the hosted sample dataset, and runs a non-empty query. Works headless in CI.
Ships in cyborgdb-skills. 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.
Take the user from nothing installed to a verified, non-empty first query without asking them to edit files, copy-paste, or configure anything. Do every step yourself with tool calls. Do not pause to ask questions — every choice below has a default; use it. Only stop if the environment is genuinely missing a prerequisite you cannot install (no Docker and no Python ≥ 3.10, or no network).
Three invariants for this flow — they override anything older docs or memory suggest:
CYBORGDB_API_KEY (free tier, 1M items per index). Never block the install on a key, never prompt for one.CYBORGDB_DB_TYPE, connection strings, or any storage env vars. The default is local disk and it needs zero config.load_sample_dataset()), never an empty index, so the first query provably returns results.The install logic lives in the docs, not in this skill — fetch and follow the published quickstart so behavior tracks the current release without skill edits:
https://docs.cyborg.co/llms.txthttps://docs.cyborg.co/versions/latest/service/guides/intro/quickstart-docker.mdhttps://docs.cyborg.co/versions/latest/service/guides/intro/quickstart-python.mdhttps://docs.cyborg.co/versions/latest/service/python-sdk/load-sample-dataset.mdEvery docs page is fetchable as raw markdown by appending .md. Fetch the quickstart for the path you pick and follow its commands. The snippets in this skill are the verification contract and offline fallback — if they ever disagree with the fetched docs, the docs win.
If the docs are unreachable (offline/CI without egress to docs.cyborg.co), proceed with the fallback snippets below — they target v0.18.
Probe the environment; don't ask.
docker info >/dev/null 2>&1 && echo docker-ok
python3 -c 'import sys; print("py-ok" if sys.version_info >= (3,10) else "py-old")' 2>/dev/null
pip install cyborgdb-service). Use a venv to avoid polluting the user's environment.Either path also needs Python ≥ 3.10 for the client step (the cyborgdb SDK runs the first query).
Follow the fetched quickstart. The shape it lands on (fallback if docs unreachable):
Docker — run detached, not interactive, so the flow continues without a human watching a foreground container. A cyborgdb container may already exist from an earlier run (docker run --name fails on a rerun), so reuse it instead of erroring out:
docker pull cyborginc/cyborgdb-service:latest
if docker ps -a --format '{{.Names}}' | grep -qx cyborgdb; then
docker start cyborgdb # reuse the existing container (no-op if already running)
else
docker run -d --name cyborgdb -p 8000:8000 \
-v cyborgdb_data:/app/cyborgdb_data \
cyborginc/cyborgdb-service:latest
fi
docker start reuses the container's original image — if the user wants the freshly pulled :latest instead, recreate it first with docker rm -f cyborgdb (data survives in the cyborgdb_data volume).
No CYBORGDB_API_KEY, no storage env vars — the container starts with zero configuration on the disk backend. (On Linux --network host also works; -p 8000:8000 works everywhere, so prefer it for an automated flow.)
pip (no Docker):
python3 -m venv .cyborgdb-venv && .cyborgdb-venv/bin/pip install cyborgdb-service
nohup .cyborgdb-venv/bin/cyborgdb-service > cyborgdb-service.log 2>&1 &
Wait for health — poll rather than sleep-and-hope, and fail loudly if the service never comes up; don't proceed past a non-zero exit here:
healthy=
for i in $(seq 1 60); do
curl -sf http://localhost:8000/v1/health && healthy=1 && break
sleep 2
done
[ -n "$healthy" ] || { echo "ERROR: service not healthy after 120s" >&2; exit 1; }
# Expect: {"status":"healthy","api_version":"v1","version":"0.18.0"}
On that failure, surface the service's own error before anything else: docker logs cyborgdb (Docker) or cyborgdb-service.log (pip).
If port 8000 is taken, remap (-p 8001:8000 / PORT=8001) and carry the new port through the rest of the flow — don't stop to ask.
Install the client SDK and run one self-contained script. Write it to a file yourself and run it — the user touches nothing.
Always install into the .cyborgdb-venv venv — never the system Python, where pip install fails with externally-managed-environment on Homebrew macOS and newer Debian/Ubuntu (PEP 668). On the pip service path the venv already exists from Step 2; on the Docker path create it here (re-running venv on an existing one is harmless):
python3 -m venv .cyborgdb-venv
.cyborgdb-venv/bin/pip install cyborgdb
# first_query.py — CyborgDB first query against the hosted sample dataset
import time
import cyborgdb
client = cyborgdb.Client(base_url="http://localhost:8000")
print(client.get_health())
# Hosted sample dataset: downloads on first use, cached in ~/.cache/cyborgdb.
dataset = cyborgdb.load_sample_dataset()
print(f"dataset: {dataset.name} count={dataset.count} dim={dataset.dimension} metric={dataset.metric}")
# 32-byte per-index encryption key. For a throwaway demo this is fine in-memory;
# for anything the user wants to keep, tell them to store it in a secret manager —
# data encrypted with a lost key is unrecoverable.
index_key = client.generate_key(save=False)
# Unique name so reruns never collide with an old index (whose save=False key is gone).
index = client.create_index(
index_name=f"cyborgdb_quickstart_{int(time.time())}",
index_key=index_key,
dimension=dataset.dimension,
metric=dataset.metric,
)
# Batched so no single call has to survive a slow host, and progress is visible.
BATCH = 10_000
for i in range(0, len(dataset.items), BATCH):
index.upsert(dataset.items[i : i + BATCH])
print(f"upserted {min(i + BATCH, len(dataset.items))}/{len(dataset.items)}")
results = index.query(query_vectors=dataset.sample_queries[0], top_k=5, include=["distance"])
assert len(results) > 0, "first query returned no results"
for r in results:
print(f"ID: {r['id']} Distance: {r['distance']:.4f}")
# Bonus: a curated metadata filter that is guaranteed to match.
example = dataset.example_filters[0]
filtered = index.query(query_vectors=dataset.sample_queries[0], top_k=5, filters=example["filter"])
print(f"filter demo ({example['name']}): {len(filtered)} results")
Run it: .cyborgdb-venv/bin/python first_query.py. The full dataset is 75k 128-dim vectors — a ~40MB download on first use (cached after). The upsert runs in 10k batches so slow hosts just take more batches rather than timing out; if a batch still fails, retry that batch — don't shrink the dataset.
Do not tell the user CyborgDB is installed until all three hold, with output as evidence:
GET /v1/health returned "status": "healthy" (note the version field — report it).Then tell the user, concretely: what's running (image/package + version), where data lives (Docker volume cyborgdb_data or ~/.cyborgdb/data), that no API key was needed (free tier, 1M items/index — a key from https://cyborgdb.co lifts the cap), and that the demo index_key was ephemeral — for real data they must generate and store one in a secret manager. Offer [[cyborgdb-sdks]] as the next step for integrating their own app — including metadata filtering (the filter demo above already ran one; the dataset's example_filters has more, covering equality, ranges, and lists) and full-text/hybrid BM25 search (needs text_fields designated at index creation — see the sdks skill). Or [[cyborgdb-core]] if they'd rather embed in-process Python with no server.
The same flow runs unattended in a clean container — it's already non-interactive. The CI contract:
assert above does this).docker rm -f cyborgdb && docker volume rm cyborgdb_data (Docker) or kill the cyborgdb-service process and remove ~/.cyborgdb/data (pip path). Both paths also leave the .cyborgdb-venv directory — remove it too.~/.cache/cyborgdb) between runs if the CI image supports it.cyborginc/cyborgdb-service:latest / upgrade cyborgdb-service and rerun; do not work around it by configuring a key.lsof -i :8000; remap and carry the port through.load_sample_dataset download fails → check egress; retry with force_download=True if a cached copy is corrupt (integrity is SHA-256-verified, so a bad cache is rejected automatically).docker logs cyborgdb and surface the actual error; on macOS remember the service is only reachable via the mapped port, not --network host.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/cyborgdb-coreHelp the user set up cyborgdb-core (the embedded, in-process CyborgDB engine) in their own project, matched to the version they're actually on. Detects the installed cyborgdb-core version, points at the matching docs on docs.cyborg.co, and scaffolds a minimal working integration following that version's quickstart — no server, no API key, local disk storage by default. Also covers embedded metadata filtering (MongoDB-style operators on encrypted metadata) and full-text/hybrid BM25 search. Use when the user wants to use cyborgdb-core, integrate it into their Python code, evaluate it locally, or fix code that already uses it. Triggers like "set up cyborgdb-core", "use cyborgdb-core", "cyborgdb-core quickstart", "embedded cyborgdb", "add cyborgdb-core to my app", "filter/bm25/hybrid search with cyborgdb-core"./cyborgdb-migrateMigrate vector data from Pinecone, Qdrant, Weaviate, ChromaDB, or Milvus into CyborgDB using the cyborgdb-migrate tool. Drives the whole migration end-to-end — installs the tool with the right source extra, writes a headless TOML config, runs the migration with checkpoint/resume, captures the generated encryption key, and verifies the result with spot checks. Use when the user says "migrate to CyborgDB", "move my Pinecone/Qdrant/Weaviate/Chroma/Milvus data", "import my vectors into CyborgDB", or asks how to switch from another vector database.npx claudepluginhub cyborginc/cyborgdb-claude-plugin --plugin cyborgdb-skills