triaging-live-sql-activity

triaging-live-sql-activity is a skill for Cursor from cockroachdb/cursor-plugin. It costs 61 tokens per session (3,309 once invoked), scanned A, a copy of triaging-live-sql-activity, Apache-2.0.

A guide for diagnosing performance problems happening right now in a CockroachDB database cluster. CockroachDB is a distributed SQL database that stores data across multiple servers.

In plain words
What is it for?
Investigating slowness, high resource use, runaway queries, stuck transactions, and the applications or users causing them; it can also produce SQL for cancelling problematic work.
Why use it?
It finds long-running queries, busy sessions, and open transactions using SQL alone, so you can investigate without the database’s web console or monitoring services.

Skill for Cursor ✓ vendor

Written for Cursor: shipped in a Cursor plugin.

Part of the cockroachdb plugin — 34 skills shipped together

Good fit Investigating slowness, high resource use, runaway queries, stuck transactions, and the applications or users causing them; it can also produce SQL for cancelling problematic work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cockroachdb/cursor-plugin/triaging-live-sql-activity
About the project

CockroachDB Plugin for Cursor connects the Cursor coding agent to CockroachDB clusters for database work such as exploring schemas, writing SQL, debugging queries, and managing distributed clusters. It supports self-hosted and CockroachDB Cloud connections, and its catalogue add-ons provide database-focused agents, skills, rules, and instructions.

cockroachdb/cursor-plugin · 2 stars · on GitHub

Install

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.

Any agent
npx skills add cockroachdb/cursor-plugin --skill triaging-live-sql-activity
Clone the repo
git clone --depth 1 https://github.com/cockroachdb/cursor-plugin

Made for: Cursor.

Or install cockroachdb, the plugin that ships this one along with the rest of its 34 skills.

Wrote 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.

agentmods badge for triaging-live-sql-activity

README.md
[![agentmods](https://agentmods.dev/badge/skills/cockroachdb/cursor-plugin/triaging-live-sql-activity/github.svg)](https://agentmods.dev/skills/cockroachdb/cursor-plugin/triaging-live-sql-activity)
Your own site
<a href="https://agentmods.dev/skills/cockroachdb/cursor-plugin/triaging-live-sql-activity"><img src="https://agentmods.dev/badge/skills/cockroachdb/cursor-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.

agentmods 80×15 button for triaging-live-sql-activity

Your own site · 80×15
<a href="https://agentmods.dev/skills/cockroachdb/cursor-plugin/triaging-live-sql-activity"><img src="https://agentmods.dev/badge/skills/cockroachdb/cursor-plugin/triaging-live-sql-activity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,309 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 7aff882278b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

skills/cockroachdb-observability-and-diagnostics/triaging-live-sql-activity/SKILL.md · 397 lines

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: VIEWACTIVITY or VIEWACTIVITYREDACTED privilege
    • VIEWACTIVITYREDACTED: 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 / CANCELSESSION privileges for cancellation operations

Check your privileges:

SHOW SYSTEM GRANTS FOR <username>;

See permissions reference for detailed RBAC setup.

Read the full file on GitHub · 397 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 397 lines · 61 tokens per session scan A 7aff882278b0

Subscribe to this mod's changes

triaging-live-sql-activity is a skill published in the GitHub repository cockroachdb/cursor-plugin (2 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.

Related

triaging-live-sql-activity compared with skills from other repositories

triaging-live-sql-activity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
triaging-live-sql-activitycockroachdb/cursor-pluginSkill228d agoApache-2.0A61Cursor
triaging-live-sql-activitycockroachdb/claude-pluginSkill428d agoApache-2.0A61Claude Code
sql-optimization-patternswshobson/agentsSkill42kyesterdayMITA44Claude Code
mma-investigatorcockroachdb/cockroachSkill33k2d agononeA47Claude Code
mongodb-query-optimizerfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A98Claude Code
solr-querygriddynamics/rosettaSkill370yesterdayApache-2.0A27Claude Code, Codex
qdrant-advisorqdrant/skillsSkill267yesterdayApache-2.0A216Claude Code