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 agentmods add rules/cockroachdb/cursor-plugin/cockroachdb-operator-patternsgit clone --depth 1 https://github.com/cockroachdb/cursor-pluginWhat 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 | $0.00000 | $0.04333 |
| Opus 5 | $0.00000 | $0.02167 |
| Sonnet 5 | $0.00000 | $0.00867 |
| Haiku 4.5 | $0.00000 | $0.00433 |
Grade C, and why
cockroachdb-operator-patterns scanned grade C with 1 finding 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 yesterday.
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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
2. Remove the store directory: `rm -rf <store-path>` How it starts
The opening of the file, as written. The whole thing — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CockroachDB Operator & SRE Patterns
Operational procedures from the CockroachDB Runbook Template, Query Parallelism, and cockroachdb-best-practices-demo.
1. Day-1 Operational Readiness
Before operating a CockroachDB cluster, verify this checklist:
| Check | Requirement |
|---|---|
| Clock sync | NTP configured on all nodes, --max-offset set (default 500ms) |
| Load balancer | HAProxy or cloud LB in front of all nodes |
| Connection pooling | Configured per app (4 x vCPUs pool size) |
| Replication factor | 3 for zone survival, 5 for region survival |
| Storage | Dedicated SSDs for CockroachDB store directory |
| One node per OS/container | Never run multiple cockroach processes on same host |
| DBA role | Custom role with appropriate grants (never use root in production) |
| TLS certificates | Generated and distributed; sslmode=verify-full enforced |
| Backup schedule | Automated via CREATE SCHEDULE FOR BACKUP |
| Monitoring | Metrics exported to Prometheus/Datadog/Grafana |
| Alerting | Alert rules configured per Section 4 thresholds |
Key terms:
- Node = one
cockroachserver process (NOT the VM/container) - Cluster = set of connected CockroachDB nodes forming one system
- Range = ~512MB chunk of data, the unit of replication and distribution
2. Pre-Check Before Any Maintenance
✅ ALWAYS: Run these before ANY maintenance operation
-- Verify all nodes are live and available
SELECT node_id, is_live, is_available FROM crdb_internal.gossip_nodes;
-- Check for running jobs that might conflict
SELECT job_id, job_type, description, status, fraction_completed
FROM crdb_internal.jobs WHERE status = 'running';
-- Verify range health
SELECT count(*) AS total_ranges,
count(*) FILTER (WHERE array_length(replicas, 1) < 3) AS under_replicated
FROM crdb_internal.ranges;
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.
- yesterday First seen · 500 lines · 0 tokens per session scan C 566e39923aca
cockroachdb-operator-patterns is a cursor rule published in the GitHub repository cockroachdb/cursor-plugin (1 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,333 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
beanstalk-deploy
Robust deployment patterns for Elastic Beanstalk with GitHub Actions, Pulumi, and edge case handling.
archcore-files
Enforce MCP-only operations when working with .archcore/ files.
dev_workflow
Guide for using Taskmaster to manage task-driven development workflows.
execution
Repository execution and verification commands.
cosmosmith
Cosmosmith project rules adapter.
no-crux-frontmatter
This is a regular rule file that does not have crux: true in its frontmatter. It should be ignored by the CRUX compression hook.