scylladb-data-modeling

scylladb-data-modeling is a skill for Claude Code from scylladb/agent-skills. It costs 134 tokens per session (1,529 once invoked), scanned A, original, Apache-2.0.

Guidance for designing tables and queries in ScyllaDB, a database built for applications that handle large amounts of data. It focuses on choosing partition keys, clustering columns, and table structures from the queries the application needs.

In plain words
What is it for?
Use it when creating or reviewing ScyllaDB tables, migrating data models, modeling time-series or event data, investigating performance problems, or evaluating indexes and materialized views.
Why use it?
It helps avoid schema choices that can cause slow queries, timeouts, unevenly loaded nodes, or oversized partitions. It also explains differences developers may encounter when moving from SQL, MongoDB, or Cassandra.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the scylladb plugin — 6 skills shipped together

Good fit Use it when creating or reviewing ScyllaDB tables, migrating data models, modeling time-series or event data, investigating performance problems, or evaluating indexes and materialized views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scylladb/agent-skills/scylladb-data-modeling
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 scylladb/agent-skills --skill scylladb-data-modeling
Clone the repo
git clone --depth 1 https://github.com/scylladb/agent-skills

Made for: Claude Code.

Or install scylladb, the plugin that ships this one along with the rest of its 6 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 scylladb-data-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/scylladb/agent-skills/scylladb-data-modeling/github.svg)](https://agentmods.dev/skills/scylladb/agent-skills/scylladb-data-modeling)
Your own site
<a href="https://agentmods.dev/skills/scylladb/agent-skills/scylladb-data-modeling"><img src="https://agentmods.dev/badge/skills/scylladb/agent-skills/scylladb-data-modeling/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 scylladb-data-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/scylladb/agent-skills/scylladb-data-modeling"><img src="https://agentmods.dev/badge/skills/scylladb/agent-skills/scylladb-data-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,529 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 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.00134 $0.01529
Opus 5 $0.00067 $0.00764
Sonnet 5 $0.00027 $0.00306
Haiku 4.5 $0.00013 $0.00153

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

Security

Grade A, and why

scylladb-data-modeling 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 10d 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.

skills/scylladb-data-modeling/SKILL.md · 106 lines

How it starts

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

ScyllaDB Data Modeling

CQL data modeling patterns and anti-patterns for ScyllaDB. Bad schema is the root cause of most ScyllaDB performance issues — no amount of cluster scaling can fix a fundamentally wrong data model.

When to Apply

Reference these guidelines when:

  • Designing a new ScyllaDB schema from scratch
  • Migrating from SQL/relational databases, MongoDB, or Cassandra to ScyllaDB
  • Reviewing existing table designs for performance issues
  • Troubleshooting slow queries, timeouts, or hot nodes
  • Deciding how to structure primary keys (partition key + clustering columns)
  • Modeling time-series, IoT, or event data
  • Seeing large partition warnings in logs
  • Encountering ALLOW FILTERING in queries or code reviews
  • Adding secondary indexes or materialized views

Key Principle

"Start from the queries, not from the entities."

This is ScyllaDB's core data modeling philosophy. Unlike relational databases where you normalize entities and then write queries against them, in ScyllaDB you:

  1. List your application's queries — every SELECT, UPDATE, and DELETE your application will run
  2. Design one table per query pattern — each table's primary key is crafted to serve a specific query efficiently
  3. Accept denormalization — the same data may exist in multiple tables, each optimized for a different access pattern

In ScyllaDB, the partition key determines which node holds the data and the clustering columns determine the sort order within that partition. The primary key IS your access pattern.

Quick Reference

1. Anti-Patterns — 5 rules

  • antipattern-allow-filteringALLOW FILTERING forces a full-scan. Consult this reference whenever you see it in a query, or when a query does not include the full partition key.
  • antipattern-large-partitions — Partitions that grow without bounds cause memory pressure, slow reads, and compaction issues. Consult when designing time-series tables or any table where rows accumulate per partition key.
  • antipattern-hot-partitions — Uneven partition key distribution causes some nodes/shards to be overloaded while others sit idle. Consult when choosing partition keys for high-write workloads.
  • antipattern-unpaged-queries — Unpaged SELECTs cause unbounded memory growth and cluster instability. Consult when a query may return more rows than a single page, or when reviewing code that calls raw/unpaged execution methods.
  • antipattern-multi-partition-batch — BATCH statements spanning multiple partitions provide no real atomicity benefit and create coordinator hotspots. Consult when reviewing code that uses BATCH to simulate a transaction, or when migrating SQL transaction logic to CQL.

Read the full file on GitHub · 106 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. 10d ago First seen · 106 lines · 134 tokens per session scan A 4679d5f205d5

Subscribe to this mod's changes

scylladb-data-modeling is a skill published in the GitHub repository scylladb/agent-skills (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 134 tokens to every session and 1,529 once invoked, about $0.0007 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-08-31.

Related

Other skills, from other repositories

cassandra

Apache Cassandra distributed NoSQL database reference. Covers CQL queries, data modeling with query-driven design, partition key strategies, consistency levels, compaction, nodetool administration, scaling, and multi-datacenter replication.

bytesagain/ai-skills · 47 tokens

alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.

google/skills · 72 tokens

cloud-databases-onboarding

Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…

google/skills · 83 tokens

spanner-basics

Assists in provisioning instances and databases, designing performant schemas, and querying data in Spanner. Use when designing primary keys, writing SQL queries or client library code, or diagnosing performance issues.

google/skills · 43 tokens

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

kepano/obsidian-skills · 63 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens