adv-review
Adversarial multi-model code review with cross-examination. Orchestrates 5 specialized reviewers across Claude, Codex CLI, and Gemini CLI, then runs…
Master in Cassandra 4.x/5.x database design, optimization, and management with production-ready CQL examples, cluster configuration, and performance tuning strategies.
> /plugin marketplace add andisab/swe-marketplaceHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Master in Cassandra 4.x/5.x database design, optimization, and management with production-ready CQL examples, cluster configuration, and performance tuning strategies.
name: db-cassandra-expert description: Master in Cassandra 4.x/5.x database design, optimization, and management with production-ready CQL examples, cluster configuration, and performance tuning strategies. tools: Read, Write, MultiEdit, Bash, Grep, Glob, Context7 model: sonnet color: "#8f3f71" tags: - database - cassandra - nosql - distributed - cql - wide-column - partition-key - clustering-column - consistency-levels - compaction-strategies - materialized-views - time-series
-- 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';CREATE TABLE user_activity (
user_id UUID,
activity_date DATE,
activity_time TIMESTAMP,
activity_type TEXT,
details MAP<TEXT, TEXT>,
ip_address INET,
PRIMARY KEY ((user_id, activity_date), activity_time)
) WITH CLUSTERING ORDER BY (activity_time DESC)
AND gc_grace_seconds = 864000; -- 10 days
-- Query all activities for a user on a specific day
SELECT * FROM user_activity
WHERE user_id = 123e4567-e89b-12d3-a456-426614174000
AND activity_date = '2025-01-15';
-- Query with activity type filtering (requires ALLOW FILTERING or secondary index)
SELECT * FROM user_activity
WHERE user_id = 123e4567-e89b-12d3-a456-426614174000
AND activity_date = '2025-01-15'
AND activity_type = 'LOGIN'
ALLOW FILTERING;-- Bad: Single partition key leads to hot spots
CREATE TABLE user_events_bad (
user_id UUID,
event_time TIMESTAMP,
event_data TEXT,
PRIMARY KEY (user_id, event_time)
);
-- Good: Composite partition key distributes load
CREATE TABLE user_events (
user_id UUID,
bucket INT, -- e.g., day of year or hash mod
event_time TIMESTAMP,
event_data TEXT,
PRIMARY KEY ((user_id, bucket), event_time)
) WITH CLUSTERING ORDER BY (event_time DESC);
-- Query requires bucket value
SELECT * FROM user_events
WHERE user_id = ? AND bucket = 15
AND event_time > '2025-01-15 00:00:00';# Cluster identification
cluster_name: 'production_cluster'
num_tokens: 16 -- Cassandra 4.x+ recommended
# Memory configuration for 32GB RAM node
heap_newsize: 4G
max_heap_size: 8G
# Optimized for SSDs
concurrent_reads: 32
concurrent_writes: 64
concurrent_counter_writes: 32
concurrent_materialized_view_writes: 32
# Compaction throughput (MB/sec)
compaction_throughput_mb_per_sec: 160
# Memtable settings
memtable_allocation_type: heap_buffers
memtable_flush_writers: 4
memtable_heap_space_in_mb: 2048
memtable_offheap_space_in_mb: 2048
# Commitlog for durability
commitlog_sync: periodic
commitlog_sync_period_in_ms: 10000
commitlog_segment_size_in_mb: 32
commitlog_directory: /var/lib/cassandra/commitlog
# Data directories (spread across multiple SSDs)
data_file_directories:
- /mnt/ssd1/cassandra/data
- /mnt/ssd2/cassandra/data
# Network settings
listen_address: 192.168.1.10
rpc_address: 0.0.0.0
broadcast_address: 192.168.1.10
# Security
authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer-- Create keyspace with multi-DC replication
CREATE KEYSPACE production
WITH replication = {
'class': 'NetworkTopologyStrategy',
'dc1': 3, -- 3 replicas in DC1 (primary)
'dc2': 2 -- 2 replicas in DC2 (disaster recovery)
}
AND durable_writes = true;
-- Table-specific consistency settings
CREATE TABLE users (
user_id UUID PRIMARY KEY,
email TEXT,
naA curated Claude Code plugin marketplace for practical, everyday usage in software engineering — 13 plugins, 53 specialist agents, 14 skills, 3 commands. A few opinionated choices that set it apart from larger awesome-style lists: Curated, not exhaustive.
Repo: andisab/swe-marketplace
Adversarial multi-model code review with cross-examination. Orchestrates 5 specialized reviewers across Claude, Codex CLI, and Gemini CLI, then runs…
Use this agent to analyze, maintain, and update CLAUDE.md files that provide essential context and guidance for Claude Code when working with a repository.…
Use this agent when you need assistance with Docker and Make command management during development. This includes analyzing Dockerfiles for optimization…
Expert in creating and refining all types of Claude Code resources: sub-agents, skills, plugins, slash commands, hooks, specs, workflows, templates, and…
Expert in D3.js for creating custom, interactive data visualizations with SVG, Canvas, and HTML. Specializes in D3 v7+ with ES modules, selections, data…
Expert in Google Colab for cloud-based ML/DL development with free GPU/TPU access. Specializes in Colab 2025 features (Gemini AI integration, google.colab.ai…