scalardb-data-model

Design ScalarDB table schemas with PK/CK/SI constraints and hotspot analysis.

6|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/wfukatsu/coding-agent-for-scalardb --skill scalardb-data-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scalardb-data-model
Source: https://github.com/wfukatsu/coding-agent-for-scalardb/tree/main/skills/scalardb-data-model
Command: npx skills add https://github.com/wfukatsu/coding-agent-for-scalardb --skill scalardb-data-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ScalarDB data modeling helps teams design efficient schemas that align with ScalarDB's PK/CK/SI constraints, reducing data hotspots and overhead while improving query performance.

Core Features & Use Cases

  • PK/CK/SI design and justification for transactional workloads across microservices.
  • Hotspot risk assessment and metadata overhead estimation to inform back-end DB choices.
  • Back-end DB selection guidance based on access patterns and scalability needs.
  • Output artifacts: table schemas, rationale, and design templates for Step 04.

Quick Start

Provide your service domains and target databases, and I will generate a ScalarDB data model design for Step 04.

Frequently Asked Questions about scalardb-data-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a ScalarDB data model that avoids hotspots?

To design a ScalarDB data model that avoids hotspots, you must structure partition keys to distribute transactional workloads evenly. This skill generates table schemas with hotspot risk assessments to ensure balanced access patterns across microservices.

What is the best way to choose partition keys and clustering keys in ScalarDB?

Choosing ScalarDB partition keys and clustering keys requires aligning them with your specific data access patterns. This skill provides deterministic PK and CK designs with rationale to meet transactional workload constraints while minimizing metadata overhead.

When should I use a secondary index in ScalarDB?

You should use a secondary index in ScalarDB when query patterns require lookups outside the partition key, but you must evaluate metadata overhead. This skill estimates overhead to inform your secondary index decisions and back-end DB selection.

How do I select a back-end database for my ScalarDB schema?

Selecting a back-end database for ScalarDB depends on your access patterns and scalability requirements. This skill provides guidance on choosing the appropriate underlying database based on workload analysis and hotspot risk evaluation.

Can I generate ScalarDB table schemas for multiple microservices?

Yes, you can generate ScalarDB table schemas for multiple microservices by providing your service domains and target databases. The skill outputs ready-to-apply schemas and design templates tailored to each microservice's data access patterns.