db-cassandra-expert

db-cassandra-expert is an agent for Claude Code from andisab/swe-marketplace. It costs 37 tokens per session (3,278 once invoked), scanned C, original, MIT.

A specialist for Apache Cassandra, a distributed database designed to keep working across multiple servers and locations.

In plain words
What is it for?
Use it to model time-series data, configure replication, tune compaction and queries, monitor clusters, and plan backups or disaster recovery.
Why use it?
It helps design tables and queries around Cassandra's way of distributing data, while addressing availability, consistency, repair, and performance issues.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the databases plugin — 7 agents shipped together

Good fit Use it to model time-series data, configure replication, tune compaction and queries, monitor clusters, and plan backups or disaster recovery.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andisab/swe-marketplace/db-cassandra-expert
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.

Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace

Made for: Claude Code.

Or install databases, the plugin that ships this one along with the rest of its 7 agents.

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 db-cassandra-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/andisab/swe-marketplace/db-cassandra-expert/github.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/db-cassandra-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/db-cassandra-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/db-cassandra-expert/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 db-cassandra-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/db-cassandra-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/db-cassandra-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00037 $0.03278
Opus 5 $0.00018 $0.01639
Sonnet 5 $0.00007 $0.00656
Haiku 4.5 $0.00004 $0.00328

Measured 11d ago against content hash 3794c4b52b42, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

db-cassandra-expert 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /var/lib/cassandra/commitlog/*
plugins/databases/agents/db-cassandra-expert.md · 464 lines

How it starts

The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Focus Areas

  • Data modeling techniques tailored for Cassandra's wide-column architecture
  • Designing efficient partition keys and clustering columns for query optimization
  • Implementing strategies for high availability and fault tolerance
  • Understanding the CAP theorem in the context of Cassandra (AP system)
  • Replication strategies and consistency levels configuration
  • Query optimization and indexing strategies (secondary indexes vs. materialized views)
  • Handling time series data efficiently with TWCS (Time Window Compaction Strategy)
  • Security implementations, including encryption, authentication, and access control
  • Monitoring and diagnosing performance issues with nodetool and JMX
  • Backup and disaster recovery strategies
  • Multi-datacenter replication and geo-distribution
  • Compaction strategy selection (STCS, LCS, TWCS)

Approach

  • Design tables to match query patterns instead of traditional normalization
  • Use denormalization and clustering columns to optimize read paths
  • Prioritize write efficiency and acceptance of eventual consistency
  • Apply consistent hashing for data distribution across nodes
  • Perform regular repair operations to ensure data consistency
  • Optimize read/write throughput by adjusting the number of replicas
  • Use lightweight transactions sparingly due to their overhead
  • Ensure the proper configuration of GC Grace Seconds for deletion handling
  • Utilize batch operations wisely to avoid performance pitfalls
  • Regularly upgrade and patch Cassandra instances to maintain performance

CQL Query Examples

Data Modeling Patterns

Time Series Data Model
-- Partition by sensor, cluster by time (descending for latest-first queries)
CREATE TABLE sensor_data (
    sensor_id UUID,
    timestamp TIMESTAMP,
    temperature DECIMAL,
    humidity DECIMAL,
    pressure DECIMAL,
    location TEXT,
    PRIMARY KEY (sensor_id, timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC)
  AND compaction = {
      'class': 'TimeWindowCompactionStrategy',
      'compaction_window_unit': 'DAYS',
      'compaction_window_size': 1
  }
  AND default_time_to_live = 2592000;  -- 30 days

-- Efficient query for latest readings
SELECT * FROM sensor_data
WHERE sensor_id = 550e8400-e29b-41d4-a716-446655440000
LIMIT 100;

-- Query with time range
SELECT * FROM sensor_data
WHERE sensor_id = 550e8400-e29b-41d4-a716-446655440000
  AND timestamp >= '2025-01-01 00:00:00'
  AND timestamp < '2025-01-02 00:00:00';

Read the full file on GitHub · 464 lines

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. 11d ago First seen · 464 lines · 37 tokens per session scan C 3794c4b52b42

Subscribe to this mod's changes

db-cassandra-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 23d ago), licensed MIT. It adds 37 tokens to every session and 3,278 once invoked, about $0.0002 per session on Opus 5. 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-30.