/cassandra-expert:diagnosefrom cassandra-expert
Systematic troubleshooting for Apache Cassandra clusters. Diagnoses performance issues, latency problems, node failures, and unexpected behavior using USE method and double-loop learning.
Ships in cassandra-expert. 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.
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)paxos_variant first; v1 and v2 have different fixesMutationStage pending means Paxos is CPU-bound; more threads make it worseiostat -x) means Paxos is disk-bound, common on EBS gp2; check the Paxos cache and chunk cache sizes before thread poolsClientRequest CASWrite ContentionHistogram and UnfinishedCommit rising means contended partitionsCASWrite timeouts with a low p50 point to a few hot partitions, not to the whole clusterObject.wait on PaxosState (thread dump) mean hot partitions hold the pool; other tables slow down too../../references/general/lwt.mdnodetool 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 issuesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/data-modelData modeling and schema design for Apache Cassandra. Use when designing tables, choosing partition keys, modeling time-series data, or reviewing existing schemas./optimizePerformance optimization for Apache Cassandra clusters. Use when tuning configuration, improving throughput, reducing latency, optimizing resource usage, or configuring vnodes/num_tokens./token-skewAnalyze token distribution and data ownership skew across Cassandra nodes and racks. Separates token placement quality from data distribution effects of keyspace replication./trainingInteractive Cassandra training with guided curriculum. Covers fundamentals through advanced topics with hands-on CQL and code examples. Use when a user wants to learn Cassandra, not just get answers.npx claudepluginhub rustyrazorblade/skills --plugin cassandra-expertOther plugins' skills for the same job