cassandra-guide

cassandra-guide is a skill for Claude Code, Codex from khalilbenaz/claude-skills-collection. It costs 73 tokens per session (2,087 once invoked), scanned A, original, MIT.

A guide to designing and operating Apache Cassandra, a distributed NoSQL database for storing large amounts of data across multiple machines. It covers CQL, partition keys, data sorting, replication, compaction, and operational tuning.

In plain words
What is it for?
Use it to design Cassandra tables around application queries, choose partition and clustering keys, configure replication and compaction, and tune a production cluster.
Why use it?
It helps avoid uneven data distribution, slow queries, overloaded machines, and schema choices that are difficult to change later.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design Cassandra tables around application queries, choose partition and clustering keys, configure replication and compaction, and tune a production cluster.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khalilbenaz/claude-skills-collection/cassandra-guide
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 khalilbenaz/claude-skills-collection --skill cassandra-guide
Clone the repo
git clone --depth 1 https://github.com/khalilbenaz/claude-skills-collection

Made for: Claude Code, Codex.

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 cassandra-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/cassandra-guide/github.svg)](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/cassandra-guide)
Your own site
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/cassandra-guide"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/cassandra-guide/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 cassandra-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/cassandra-guide"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/cassandra-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,087 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00073 $0.02087
Opus 5 $0.00036 $0.01043
Sonnet 5 $0.00015 $0.00417
Haiku 4.5 $0.00007 $0.00209

Measured 9d ago against content hash 8199dd02250c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

cassandra-guide 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 9d 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.

database-skills/cassandra-guide/SKILL.md · 206 lines

How it starts

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

Cassandra Guide

1. Modéliser par les requêtes (Query-Driven Design)

Cassandra n'est pas relationnel : le schéma découle des requêtes, pas l'inverse.

Étapes :

  1. Lister exhaustivement les patterns de requête de l'application.
  2. Créer une table par requête — la dénormalisation est normale et attendue.
  3. Choisir la partition key pour distribuer uniformément les données entre nœuds.
  4. Choisir les clustering columns pour le tri intra-partition et les filtres de range.

Critères de choix de partition key :

  • Cardinalité élevée → distribution uniforme (évite les "hot partitions").
  • Pas de colonne nullable ni à faible cardinalité (statut booléen, enum à 3 valeurs).
  • Si une seule colonne ne suffit pas, utilisez une clé composite : PRIMARY KEY ((user_id, month), event_time).
-- Table events par utilisateur et mois (bucketing temporel)
CREATE TABLE events_by_user (
    user_id    UUID,
    month      TEXT,          -- ex. '2026-06'
    event_time TIMEUUID,
    payload    TEXT,
    PRIMARY KEY ((user_id, month), event_time)
) WITH CLUSTERING ORDER BY (event_time DESC);

2. Concevoir le schéma CQL

Types recommandés :

  • UUID / TIMEUUID pour les identifiants (TIMEUUID = ordonné chronologiquement).
  • FROZEN<map<text,text>> pour les structures imbriquées immuables.
  • TEXT plutôt que VARCHAR (identiques, TEXT préféré par convention).
  • COUNTER uniquement dans des tables dédiées (non mixable avec d'autres colonnes writables).

User Defined Types (UDT) :

CREATE TYPE address (
    street TEXT,
    city   TEXT,
    zip    TEXT
);

CREATE TABLE customers (
    id      UUID PRIMARY KEY,
    name    TEXT,
    address FROZEN<address>
);

Materialized Views — attention :

  • Utiles pour les requêtes secondaires, mais coût d'écriture doublé.
  • En production haute charge, préférer des tables de lookup manuelles + batch logged.

3. Configurer la réplication

Contexte Stratégie Config
Dev / single DC SimpleStrategy replication_factor: 1
Prod single DC SimpleStrategy replication_factor: 3
Prod multi-DC NetworkTopologyStrategy RF par DC (dc1: 3, dc2: 3)

Read the full file on GitHub · 206 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. 9d ago First seen · 206 lines · 73 tokens per session scan A 8199dd02250c

Subscribe to this mod's changes

cassandra-guide is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (22 stars, last pushed 19d ago), licensed MIT. It adds 73 tokens to every session and 2,087 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

database-patterns

DB schema design and query tuning: normalization, indexing, N+1, transactions, EXPLAIN. Triggers: schema, index, slow query, N+1, PostgreSQL, MySQL, EXPLAIN, deadlock, query plan.

softspark/ai-toolkit · 55 tokens

migration-patterns

Zero-downtime DB migrations: expand-contract, double-write, backfill, blue-green. Triggers: migration, schema change, backfill, ALTER TABLE, online DDL.

softspark/ai-toolkit · 41 tokens

migrate

Run/create DB migrations (Alembic, Prisma, Laravel, Django, Flyway, Drizzle); checks backup. Triggers: apply migration, rollback, generate migration.

softspark/ai-toolkit · 38 tokens

mongo-migration

MongoDB schema migration safety reviewer and migration script generator. ALWAYS use when writing, reviewing, or planning MongoDB schema changes — field additions/removals, index builds, schema validator changes, document type migrations, shard key modifications, or any bulk update touching production collections.…

johnqtcg/awesome-skills · 140 tokens

mysql-migration

MySQL schema migration safety reviewer and DDL generator. ALWAYS use when writing, reviewing, or planning MySQL schema changes — ALTER TABLE, CREATE/DROP INDEX, column type changes, charset conversions, data backfills, or any DDL touching production tables. Covers online DDL algorithm selection (INSTANT/INPLACE/COPY)…

johnqtcg/awesome-skills · 132 tokens

oracle-migration

Oracle Database schema migration safety reviewer and DDL generator. ALWAYS use when writing, reviewing, or planning Oracle schema changes — ALTER TABLE, CREATE/DROP INDEX, column type changes, constraint additions, partition DDL, or any DDL touching production tables. Covers DDL auto-commit implications…

johnqtcg/awesome-skills · 141 tokens