Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

database-schema-design

БесплатноБез исполняемых скриптовНе проверен

Design storage-model and migration-safety packets for relational, document-heavy, and hybrid data systems. Use when the user needs entity ownership…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Database Schema Design

Use this skill when the main job is choosing and evolving the storage model, not dumping generic SQL or ORM snippets.

database-schema-design is the backend storage-design anchor for:

  • choosing between relational-first, document-heavy, and hybrid models
  • turning domain entities into tables, collections, ownership boundaries, and lifecycle rules
  • justifying constraints, indexes, tenant scope, history/audit structures, and deletion/retention behavior
  • planning staged schema evolution so migrations, backfills, and cleanup are believable
  • handing downstream teams one compact storage-design packet before implementation, verification, reporting, or observability work branches out

Read these support docs before handling larger or riskier work:

When to use this skill

  • Design a new schema for a product feature, internal tool, admin workflow, customer-data surface, or live-ops/game backend system.
  • Refactor an existing storage model with weak constraints, naming drift, poor cardinality modeling, or untrusted indexing.
  • Decide which fields must be first-class columns or indexed document fields versus flexible metadata payloads.
  • Plan multi-tenant, audit-log, entitlement, status-history, retention, or soft-delete boundaries.
  • Review whether a migration is safe, staged realistically, and honest about backfills, compatibility windows, and cleanup.
  • Produce one bounded storage packet before implementation or while a risky backend change is being shaped.

When not to use this skill

  • The main job is REST/GraphQL contract shape, endpoint behavior, webhook semantics, or versioning → api-design.
  • The main job is identity/session/provider setup or auth-owned user/org boundaries → authentication-setup.
  • The main job is migration verification, repository coverage, or contract/regression tests → backend-testing.
  • The main job is published docs, quickstarts, or developer-facing schema/API explanations → api-documentation.
  • The main job is broad hardening beyond data integrity, like secret handling, CSRF, cookies, or abuse controls → security-best-practices.
  • The main job is dashboard/reporting presentation or telemetry/alert coverage on top of already-modeled data → looker-studio-bigquery or monitoring-observability.
  • The request has no real domain, access pattern, or lifecycle context yet; in that case return the missing questions instead of pretending the schema is settled.

Instructions

Step 1: Classify one primary storage-design packet

Use one primary lane and one smallest useful artifact.

schema_packet:
  workload_shape: oltp | analytics-adjacent | event-log | content-heavy | mixed | unknown
  data_lane: relational-first | document-heavy | hybrid | unknown
  change_type: greenfield | incremental | migration | cleanup | scale-fix
  ownership_focus: product-core | internal-ops | marketing-customer-data | game-live-ops | mixed
  durability_needs: basic | transactional | audit-heavy | compliance-sensitive | unknown
  hottest_risk: integrity | queryability | migration-safety | lifecycle-drift | unclear
  output_packet: design-memo | schema-review | migration-rollout | erd-plus-decisions | unknown

Normalize first:

  1. What are the real business entities or aggregates?
  2. Which reads, writes, filters, joins, or reports are highest value?
  3. Is this greenfield design, live-system change, or schema cleanup?
  4. Which rules are true business invariants versus temporary implementation convenience?
  5. Which platform constraints already exist (database engine, ORM, hosted service, compliance, scale)?

Step 2: Gather the minimum credible evidence

Do not design storage from vibes alone. Pull the smallest packet that supports real decisions:

  • product/domain objective
  • current schema, models, or representative records if they exist
  • known reads/writes, filters, joins, search/reporting needs, and retention rules
  • tenant/ownership, audit/history, and deletion expectations
  • rollout constraints: traffic, migration windows, lock risk, compatibility concerns, downstream consumers
  • open questions that would make the design fake-ready

If the evidence is thin, say so explicitly and keep the packet at review/memo level instead of pretending it is implementation-ready.

Step 3: Choose the data lane deliberately

Use references/storage-decision-matrix.md.

  • Relational-first when integrity, transactions, shared invariants, joins, or reporting matter most.
  • Document-heavy when one aggregate is usually read/written together and the shape varies enough that strict relational modeling would be fake precision.
  • Hybrid when the t
Полный SKILL.md на GitHub

Установить database-schema-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

SKILL.toonevals/evals.jsonreferences/intake-packets-and-route-outs.mdreferences/schema-review-checklist.mdreferences/storage-decision-matrix.md

FAQ

Что делает скилл database-schema-design?

Design storage-model and migration-safety packets for relational, document-heavy, and hybrid data systems. Use when the user needs entity ownership, constraints, indexes, staged schema changes, or queryable-vs-flexible field decisions across backend/fullstack products, internal ops tools, marketing/customer-data workflows, or game/live-ops systems. Route API contracts to api-design, auth-owned identity/session modeling to authentication-setup, verification to backend-testing, and reporting/telemetry follow-through to looker-studio-bigquery or monitoring-observability.

Как установить скилл database-schema-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл database-schema-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить database-schema-design с