CockroachDB Plugin for Claude Code connects Claude Code to CockroachDB clusters, which are distributed databases, so the agent can work with schemas, SQL queries, and database operations. It is intended for developers, database administrators, and operators working with self-hosted or CockroachDB Cloud deployments. The catalogue entries provide its MCP connections, specialized agents, skills, and safety hooks.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cockroachdb/claude-plugin --skill triaging-live-sql-activitygit clone --depth 1 https://github.com/cockroachdb/claude-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cockroachdb/claude-plugin/triaging-live-sql-activity)<a href="https://agentmods.dev/skills/cockroachdb/claude-plugin/triaging-live-sql-activity"><img src="https://agentmods.dev/badge/skills/cockroachdb/claude-plugin/triaging-live-sql-activity/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cockroachdb/claude-plugin/triaging-live-sql-activity"><img src="https://agentmods.dev/badge/skills/cockroachdb/claude-plugin/triaging-live-sql-activity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.03309 |
| Opus 5.5 | $0.00024 | $0.01324 |
| Sonnet 5.5 | $0.00012 | $0.00662 |
| Haiku 4.5 | $0.00006 | $0.00331 |
Grade A, and why
triaging-live-sql-activity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to triaging-live-sql-activity — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 397 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Triaging Live SQL Activity
Diagnoses live cluster performance issues by identifying currently active long-running queries, busy sessions, and active transactions. Uses SQL-only interfaces (SHOW statements and crdb_internal views) to provide immediate triage without requiring DB Console, HTTP endpoints, or Prometheus access.
When to Use This Skill
- Users report "the cluster is slow right now"
- High CPU or memory usage on cluster nodes
- Need to identify runaway queries or stuck transactions
- Want to find which applications/users are consuming resources
- Require immediate triage without DB Console access
- Need to generate SQL to cancel problematic sessions/queries
For historical performance analysis: Use profiling-statement-fingerprints to analyze query patterns over time, identify slow fingerprints, and investigate trends without needing live queries. For transaction-level analysis: Use profiling-transaction-fingerprints to analyze historical transaction retry patterns, commit latency trends, and statement composition. For background job monitoring: Use monitoring-background-jobs to monitor schema changes, backups, and automatic jobs that don't appear in SHOW CLUSTER STATEMENTS.
Prerequisites
Required SQL access:
- Connection to any CockroachDB node
- For cluster-wide visibility:
VIEWACTIVITYorVIEWACTIVITYREDACTEDprivilegeVIEWACTIVITYREDACTED: Redacts constants in other users' queries (recommended for privacy)VIEWACTIVITY: Shows full query text for all users- Without these: Only see your own sessions/queries
- Basic understanding of SQL query execution
- (Optional)
CANCELQUERY/CANCELSESSIONprivileges for cancellation operations
Check your privileges:
SHOW SYSTEM GRANTS FOR <username>;
See permissions reference for detailed RBAC setup.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 397 lines · 61 tokens per session scan A 7aff882278b0
triaging-live-sql-activity is a skill published in the GitHub repository cockroachdb/claude-plugin (4 stars, last pushed 28d ago), licensed Apache-2.0. It adds 61 tokens to every session and 3,309 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to triaging-live-sql-activity, differing in 0 lines, and is treated as a copy.
triaging-live-sql-activity compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| triaging-live-sql-activitycockroachdb/claude-plugin | Skill | 4 | 28d ago | Apache-2.0 | A | 61 | Claude Code |
| auditing-table-statisticscockroachdb/cursor-plugin | Skill | 2 | 28d ago | Apache-2.0 | A | 55 | Cursor |
| monitoring-background-jobscockroachdb/cursor-plugin | Skill | 2 | 28d ago | Apache-2.0 | A | 74 | Cursor |
| triaging-live-sql-activitycockroachdb/cursor-plugin | Skill | 2 | 28d ago | Apache-2.0 | A | 61 | Cursor |
| mma-investigatorcockroachdb/cockroach | Skill | 33k | 2d ago | none | A | 47 | Claude Code |
| designing-application-transactionscockroachdb/cursor-plugin | Skill | 2 | 28d ago | Apache-2.0 | A | 102 | Cursor |
| profiling-transaction-fingerprintscockroachdb/cursor-plugin | Skill | 2 | 28d ago | Apache-2.0 | A | 80 | Cursor |