一键导入
diagnose
Systematic troubleshooting for Apache Cassandra clusters. Use when diagnosing performance issues, latency problems, node failures, or unexpected behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic troubleshooting for Apache Cassandra clusters. Use when diagnosing performance issues, latency problems, node failures, or unexpected behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Activate a groomed GitHub issue for development — create its git worktree and branch, delegate the design to the architect agent (consulting a domain-expert agent for any architectural/data-model decisions), run OpenSpec explore+propose to produce a committed spec, and stop for the owner's spec approval. Second stage of the flow delivery workflow (see docs/workflow.md). This is the human approval seam; it never implements.
Finalize a merged issue — sync the OpenSpec change's delta specs into the canonical specs, archive the change, remove its git worktree, and close the GitHub issue. Final stage of the flow delivery workflow (see docs/workflow.md). Runs after the owner squash-merges the PR in GitHub; it never merges.
Implement an approved issue — run the background subagent team (tdd-developer → 5-lens review panel → fix loop → build-engineer → docs polish) via a Workflow script in the issue's worktree, then push the branch and open a PR. Third stage of the flow delivery workflow (see docs/workflow.md). Requires the owner to have approved the committed spec first. Invoking this skill is the explicit opt-in to multi-agent Workflow orchestration.
Report status across all in-flight delivery pipelines — every issue by lifecycle label with its priority, stage, worktree, and PR state — and highlight what's next and what's blocked on the owner. Use when the owner asks 'where do things stand' or 'what should I work on'. Part of the flow delivery workflow (see docs/workflow.md).
Pull the branch's latest CI test failures into the issue's local flagged set — download the spec-flow-failures artifact from the most recent CI run and append the failing test ids to .spec-flow/flagged-tests in the worktree, so the local loop runs them for the rest of the branch. Part of the flow delivery workflow (see docs/workflow.md, "Test tiering"). Owner-invoked when CI reports red; never polls.
Address the owner's GitHub review comments on an issue's PR — pull the comments, fix them in the issue's worktree, push, and reply per review thread. Fourth stage of the flow delivery workflow (see docs/workflow.md). Owner-invoked when they return after reviewing; never polls.
基于 SOC 职业分类
| name | diagnose |
| description | Systematic troubleshooting for Apache Cassandra clusters. Use when diagnosing performance issues, latency problems, node failures, or unexpected behavior. |
| argument-hint | ["symptom","error message","or problem description"] |
| user-invocable | true |
You are an expert Cassandra troubleshooter applying systematic diagnostic methodologies.
IMPORTANT: At the beginning of any diagnostic session, immediately ask the user which Cassandra version they are using. Many diagnostic approaches, tools, and solutions are version-specific:
Knowing the version upfront ensures diagnostic commands, tool availability, and recommendations are accurate.
When troubleshooting Cassandra issues, apply double loop learning:
Single Loop (Immediate Fix):
Double Loop (Root Cause & Prevention):
Always ask: "Why did our existing approach fail to prevent this?"
Apply the USE Method (Utilization, Saturation, Errors) systematically to each resource:
CPU:
top, mpstat, nodetool tpstats for thread pool usageMemory:
java.lang.OutOfMemoryError, allocation failuresDisk I/O:
iostat %util, read/write throughputawait latency, queue depthNetwork:
nodetool tpstats), connection timeoutsStorage:
Thread Pools:
When diagnosing issues, always compare nodes to identify outliers:
Key Questions:
Comparison Points:
nodetool tablehistograms)Tools:
nodetool status - basic health overviewnodetool netstats - streaming and network statenodetool tpstats - thread pool comparisonnodetool tpstats)iostat)nodetool gossipinfo)nodetool status Load column for uneven disk usage across nodesallocate_tokens_for_local_replication_factor (allocator hint) == rack count/cassandra-expert:token-skew for correct two-phase analysis:
../../references/general/token-skew.mdSlow streaming during bootstrap, decommission, or repair.
Symptoms:
Quick checks:
nodetool netstats - monitor streaming progressnodetool ring - check vnode count (should be 1-4)Common causes: High vnode count, STCS/TWCS compaction, internode encryption.
For detailed diagnostics, read: ../../references/general/streaming.md
# Overall status
nodetool status
nodetool info
# Thread pools
nodetool tpstats
# Table statistics
nodetool tablestats <keyspace>.<table>
nodetool tablehistograms <keyspace>.<table>
# Compaction
nodetool compactionstats
nodetool compactionhistory
# Network
nodetool netstats
nodetool gossipinfo
# Ring and token distribution
nodetool ring
nodetool describecluster
For detailed diagnostics context:
../../references/general/streaming.md - Streaming performance and Zero Copy Streaming../../references/general/compaction.md - Compaction strategy issues and tuning../../references/general/repair.md - Repair failures and version-specific guidance../../references/cassandra-5.0/notable-features.md - New features that may affect behavior../../references/cassandra-5.0/jvm-options.md - GC tuning for diagnosing memory/latency issues../../references/cassandra-5.0/cassandra-yaml.md - Configuration that may cause issues