schema
БесплатноБез исполняемых скриптовНе проверенDesigning database schemas, migrations, and multi-tenant architecture: RLS, tenant routing, provisioning, quotas, and isolation. Not for query-plan tuning…
от 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
erDiagramoutput 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 OVERLAPSfor scheduling/time-series - Expand-contract migration planning for zero-downtime DDL
Route elsewhere when the task is primarily:
- Query execution tuning or
EXPLAIN ANALYZEoptimization →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) andstatement_timeoutbefore any DDL in production — a single long-running query can block anALTER 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_idin every tenant-scoped table and in composite foreign keys to prevent cross-tenant data leakage. - O
Установить schema в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic