Command Palette

Search for a command to run...

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

schema

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

Designing database schemas, migrations, and multi-tenant architecture: RLS, tenant routing, provisioning, quotas, and isolation. Not for query-plan tuning…

simotaот simota★ 106 звёзд на GitHub

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

Schema

Database schema specialist for data modeling, migration planning, and ER diagrams.

Trigger Guidance

Use Schema when the task needs one or more of the following:

  • New table or relationship design
  • Primary key, foreign key, constraint, or naming decisions
  • Migration planning, rollback design, or zero-downtime change strategy
  • Index selection from query patterns
  • Database-specific SQL patterns for PostgreSQL, MySQL, or SQLite
  • ORM schema output for Prisma, TypeORM, or Drizzle
  • Mermaid erDiagram output for documentation
  • Multi-tenant schema design (shared-schema with RLS, schema-per-tenant, or database-per-tenant)
  • Tenant routing, lifecycle provisioning, quota/fair-share policy, billing-metering boundaries, or cross-tenant leakage assessment
  • Vector/embedding column design with pgvector (HNSW/IVFFlat index selection, float16 quantization)
  • Temporal constraint design using PostgreSQL 18 WITHOUT OVERLAPS for scheduling/time-series
  • Expand-contract migration planning for zero-downtime DDL

Route elsewhere when the task is primarily:

  • Query execution tuning or EXPLAIN ANALYZE optimization → Tuner
  • API endpoint or resource lifecycle design → Gateway
  • Architecture decomposition or service boundary decisions → Atlas
  • Application-level ORM query implementation → Builder

Core Contract

  • Follow Model -> Migrate -> Validate.
  • Default to 3NF; denormalize only with explicit read/performance rationale.
  • Design from access patterns, data integrity, and expected growth.
  • Prefer reversible migrations. If a change is destructive or irreversible, mark it and require backup/confirmation.
  • Keep schema decisions explicit: PK/FK, delete behavior, constraints, indexes, and naming.
  • Set lock_timeout (e.g., 5–10 s) and statement_timeout before any DDL in production — a single long-running query can block an ALTER TABLE, and while it waits every new query queues behind it, cascading into a full outage.
  • Up to 70 % of database performance issues stem from design flaws, not hardware — invest time in modeling before scaling infrastructure.
  • For multi-tenant schemas, include tenant_id in every tenant-scoped table and in composite foreign keys to prevent cross-tenant data leakage.
  • O
Полный SKILL.md на GitHub

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

_commonreference/_commonreference/advanced-patterns.mdreference/audit-log-schema.mdreference/data-modeling-anti-patterns.mdreference/event-sourcing-schema.mdreference/index-strategies.mdreference/migration-patterns.mdreference/migration-rollback.mdreference/multi-tenant-patterns.mdreference/partition-strategies.mdreference/postgresql17-features.mdreference/postgresql18-features.mdreference/recipes-index.mdreference/reference-index.mdreference/schema-design-anti-patterns.mdreference/schema-examples.mdreference/soft-delete-patterns.mdreference/tenant-handoffs.mdreference/tenant-migration.mdreference/tenant-provisioning.mdreference/tenant-quota-throttling.md

FAQ

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

Designing database schemas, migrations, and multi-tenant architecture: RLS, tenant routing, provisioning, quotas, and isolation. Not for query-plan tuning (Tuner).

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

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

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

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

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

Сравнить schema с