/zilliz:diagnosefrom zilliz
Use when the user reports a Zilliz Cloud cluster or Milvus collection is unhealthy, slow, stuck, hitting quotas, or returning errors, or asks to diagnose or troubleshoot latency, load, or health issues.
Ships in zilliz. 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.
--cluster-id explicitly.This skill performs read-only diagnosis using existing zilliz commands. It does NOT mutate clusters, collections, indexes, or data. Every recommendation is presented as a suggestion plus the exact next command the user can run themselves.
Two entry points:
| User says | Use section |
|---|---|
| "diagnose my cluster", "cluster is slow / stuck / unhealthy" | Cluster Diagnosis |
| "diagnose this collection", "search is slow on X", "X won't load" | Collection Diagnosis |
When the user's intent spans both (e.g. "everything is slow"), run cluster diagnosis first — a collection-level symptom often has a cluster-level cause.
Follow this checklist in order. Stop early only if you find a P0 problem (cluster not RUNNING, quota hard-stop) — surface it before running the rest.
Run these in parallel where possible and prefer -o json for machine parsing:
zilliz context current
zilliz cluster describe --cluster-id <id> -o json
zilliz cluster list --all -o json # peer clusters for context
zilliz billing usage -o json # quota / spend headroom
Then pull time-series metrics covering the last hour and last 24h. Use the chart output for human review and -o json if you need to compute thresholds:
zilliz cluster metrics --cluster-id <id> \
-m CU_COMPUTATION -m CU_CAPACITY -m CU_SIZE -m REPLICA_COUNT \
-m STORAGE -m SLOW_QUERIES \
-m SEARCH_QPS -m SEARCH_LATENCY_P99 \
-m SEARCH_FAIL_RATE -m INSERT_FAIL_RATE \
--period 1h
Repeat with --period 24h for trend context.
Walk each rule. Each finding must cite the evidence (command + observed value).
| Check | Evidence | If true, suggest |
|---|---|---|
| Cluster status ≠ RUNNING | cluster describe .status | Pause diagnosis; explain status; if SUSPENDED suggest cluster resume |
| Plan vs. observed QPS mismatch (e.g. Serverless under sustained high QPS) | plan + SEARCH_QPS | Discuss plan upgrade tradeoff |
CU_COMPUTATION p95 > 80% of CU_CAPACITY for sustained windows | metric series | Recommend scaling CU or adding replicas |
SEARCH_LATENCY_P99 rising while QPS flat | latency vs qps | Likely index/CU pressure; drill into top collections |
Non-zero *_FAIL_RATE | fail-rate series | Cross-check with recent user-reported errors |
SLOW_QUERIES non-zero | metric | Drill into per-collection diagnosis for the offenders |
| Storage trending toward quota | STORAGE + billing | Suggest cleanup / plan change before hard cap |
| Region likely far from client | endpoint + user-reported RTT | Note possible region mismatch — cannot measure RTT from CLI |
Render a single report with three sections, in this order:
Severity | Finding | Evidence | Suggested Next Step.zilliz ... commands matching each suggestion. Never run mutating commands yourself — let the user run them.zilliz collection describe --name <coll> -o json
zilliz collection get-stats --name <coll> -o json
zilliz collection get-load-state --name <coll> -o json
zilliz index list --collection <coll> -o json
# For each index name reported above:
zilliz index describe --collection <coll> --index-name <index-name> -o json
zilliz partition list --collection <coll> -o json
Pull per-collection metrics for the last hour and 24h:
zilliz collection metrics -c <coll> \
-m SEARCH_QPS -m SEARCH_LATENCY_P99 -m SEARCH_FAIL_RATE \
-m QUERY_QPS -m QUERY_LATENCY_P99 \
-m INSERT_QPS -m INSERT_LATENCY_P99 \
-m ENTITIES -m ENTITIES_LOADED -m ENTITIES_INDEXED \
--period 1h
If the collection lives in a non-default database, pass --database <db> on the data-plane collection, index, and partition commands above (zilliz collection metrics is a control-plane command and uses --cluster-id rather than --database).
| Check | Evidence | If true, suggest |
|---|---|---|
| Load state ≠ Loaded (or partially loaded) | get-load-state | collection load --name <coll>; explain that unloaded collections cannot serve search |
ENTITIES_LOADED ≪ ENTITIES | metrics | Load incomplete or recently grew; wait or reload |
ENTITIES_INDEXED ≪ ENTITIES | metrics | Indexing lag; investigate before tuning |
| Vector field present but no vector index, or FLAT on large row count | index list + get-stats | Recommend HNSW / IVF_* with a parameter range appropriate for row count; mark as recommendation, not absolute |
Index params clearly off (e.g. nlist ≪ √N for IVF) | index describe + row count | Suggest revised values; note that benchmarking is needed for the final number |
| Replica count = 1 with sustained high QPS | collection describe replicas + SEARCH_QPS | Suggest more replicas, conditioned on CU headroom from cluster diagnosis |
| Schema reasons: very wide varchar, many un-indexed scalar fields used in filters | collection describe schema | Note impact; suggest scalar indexes where applicable |
| No partition key but row count is large and queries are naturally partitionable | schema | Mention partition-key option (cannot be added in place — design-time decision) |
Non-zero SEARCH_FAIL_RATE | metric | Cross-check with cluster-level fail-rate metrics |
| Latency rising while QPS flat | latency vs qps | Index pressure or growing segment count; consider compaction; note that segment-level state is not exposed via CLI |
Same three-section format as cluster diagnosis. When a collection finding's true root cause is at the cluster level (e.g. CU saturation), say so explicitly and reference the cluster report.
delete, drop, release, resume, suspend, create, update, index create/drop, or any mutating data-plane command as part of diagnosis. Present them as suggestions only.enabled flag can be inspected via zilliz alert list). If a question requires unexposed engine internals, say so plainly rather than guessing.-o json (optionally with --query) when comparing values against thresholds; use the default chart output when surfacing trends back to the user.--database through every data-plane command.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zilliztech/zilliz-plugin --plugin zilliz24 skills in this plugin
/aclUse when the user wants to manage Zilliz Cloud access control (cloud-level RBAC) -- custom project or org roles, policies, member grants, or SCIM group bindings. For Milvus database users and privileges see user-role./ask-zillizUse when the user asks Zilliz Cloud or Milvus architecture, onboarding, plan selection, CU/vCU pricing and sizing, schema or hybrid-search design, pymilvus SDK code, migration, Global Cluster, BYOC, or best-practice questions./backupUse when the user wants to create, list, describe, delete, export, or restore backups, or manage backup policies on Zilliz Cloud.Other plugins' skills for the same job