What problem does it solve? Diagnosing hotspots, uneven data distribution, and range fragmentation in CockroachDB normally requires DB Console access, which is not always available. This Skill provides SQL-only diagnostics using SHOW RANGES and SHOW ZONE CONFIGURATIONS to identify range count anomalies, leaseholder concentration, and replication issues directly from a SQL connection. ## Core Features & Use Cases - Range Distribution Analysis: Count ranges per table and index, measure range sizes, and calculate ranges-per-GB fragmentation metrics. - Hotspot Detection: Identify leaseholder concentration on single nodes and validate zone configuration placement against actual replica distribution. - Replication Health Checks: Detect under-replicated or over-replicated ranges that signal node failures or zone config mismatches. - Production-Safe Guardrails: Built-in safety tiers distinguish metadata-only queries from expensive WITH DETAILS queries, with mandatory LIMIT guidance. - Use Case: A DBA notices high CPU on one node and slow reads on the orders table. Using this Skill, they run a leaseholder distribution query, discover 80% of leaseholders sit on node 1, then apply lease_preferences zone config to spread the load. ## Quick Start Ask the AI to analyze the range distribution and leaseholder placement for a specific CockroachDB table to check for hotspots or fragmentation.