yugabytedb-schema-design SKILL.md skillA

yugabytedb-schema-design from srinivasa-vasu/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add srinivasa-vasu/agent-skills/yugabytedb-schema-design@git:20261015.a2fe562

Pins git:20261015.a2fe562 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
srinivasa-vasu/agent-skills
Path
yugabytedb-schema-design/SKILL.md
Versions recorded
8
Latest version
git:20261015.a2fe562, committed Oct 15, 2026
First version recorded
Mar 9, 2026
Size
6,392 bytes
Repository stars
3
License
none declared

Design and review high-performance YugabyteDB YSQL schemas. Covers hash vs range sharding, write hotspots on sequential columns, partial indexes for nullable or skewed columns, low-cardinality indexes, covering indexes, primary keys, foreign key indexes, and redundant index cleanup. Includes read-only scripts and an offline analyzer that review an existing database from its catalog, pg_stats, pg_stat_statements or statements.json. Use this skill when the user asks how to design a YugabyteDB…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# YugabyteDB Schema Design Best Practices

This skill covers **how to design schemas well** for YugabyteDB: the design patterns that make a schema performant in a distributed SQL environment.

## Two Modes

- **Design mode**: the user is designing or changing tables and indexes. Use the reference files
  below and the golden rules.
- **Review mode**: the user wants an *existing* database reviewed: live (you may connect) or offline
  (they have, or can produce, a schema dump / stats export / statements file). Read
  `references/review-mode.md` first. It covers the bundle, safety rules, the scripts, how to triage
  the analyzer's findings, and the rollout runbook. Never run DDL or `ANALYZE` against the user's
  database. Changes go into `changes.sql` (phased, with `rollback.sql`), rendered from the
  triaged `findings.json` so the SQL always matches the report.

## Core Concepts (Read First)

YugabyteDB is an index-organized, distributed SQL database. Every design decision flows from
three foundational facts:

1. **The primary key IS the table.** Rows are stored sorted by PK. No PK = system assigns `ybrowid` (hidden, hash-sharded).
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add srinivasa-vasu/agent-skills/yugabytedb-schema-design@sha256:c91810dd9a2f6b41

The line at the top of this page pins the label git:20261015.a2fe562, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nw2mesbj5bof4hy7.svg)](https://markdownregistry.com/a/art_nw2mesbj5bof4hy7)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Mar 9, 2026 and Oct 15, 2026, about one every 31 days.

versioncommittedcommitsizeaudit
git:20261015.a2fe562 latest2026-10-15 a2fe562 6,392 BA view · diff
git:20261014.5b22e922026-10-14 5b22e92 6,343 BA view · diff
git:20261013.451335c2026-10-13 451335c 6,194 BA view · diff
git:20261013.f64113f2026-10-13 f64113f 6,164 BA view · diff
git:20261012.b89df632026-10-12 b89df63 5,910 BA view · diff
git:20261012.fd375c62026-10-12 fd375c6 6,203 BA view · diff
git:20260312.2e34eb92026-03-12 2e34eb9 3,807 BA view · diff
git:20260309.81659e92026-03-09 81659e9 3,808 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6392 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

srinivasa-vasu/agent-skills · 3 stars · license none declared · pushed 2026-10-15 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nw2mesbj5bof4hy7
GET https://markdownregistry.com/api/v1/resolve?ref=srinivasa-vasu/agent-skills/yugabytedb-schema-design
GET https://markdownregistry.com/api/v1/blob/c91810dd9a2f6b41ee0679733c32140cefbcbecc44ce1f5838c79122a531829a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from srinivasa-vasu/agent-skills

yugabytedb-app-dev SKILL.md skill
srinivasa-vasu/agent-skills · yugabytedb-app-dev/SKILL.md · Build production-grade applications that connect to YugabyteDB across any language runtime or framework. Covers…
git:20260619.4c040aa · audit A · 3 stars
yugabytedb-sizing SKILL.md skill
srinivasa-vasu/agent-skills · yugabytedb-sizing/SKILL.md · Calculate and recommend optimal YugabyteDB cluster sizing based on workload inputs. Use this skill whenever the user…
git:20261007.886b94c · audit A · 3 stars

Every file in srinivasa-vasu/agent-skills

Browse by kind, by grade A, or by owner.