Command Palette

Search for a command to run...

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

relational-database-design

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

Distills a logical relational-database design methodology into rules an agent applies while designing or reviewing a schema. Covers the design sequence…

pproencaот pproenca★ 231 звезда на GitHub

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

Relational Database Design

A logical, RDBMS-agnostic method for designing sound relational databases — the decisions a schema forces and how a disciplined logical-design methodology settles them, written so an agent applies them while designing or reviewing a schema. Each rule names a specific wrong default it corrects; there is no rule for things the model already gets right.

The whole method produces the logical structure first — the tables, fields, keys, relationships, and integrity rules an organization's information requires — deliberately independent of any particular RDBMS product or physical/performance concern. Followed faithfully, it yields fully normalized tables without treating normalization as a separate back-end phase.

When to Apply

  • Designing a new relational schema from requirements
  • Reviewing or refactoring an existing schema for structural soundness
  • Resolving repeating groups, multivalued/multipart fields, or redundant data
  • Choosing candidate, primary, and foreign keys for a table
  • Modeling one-to-one, one-to-many, many-to-many, or self-referencing relationships
  • Deciding deletion rules (restrict, cascade, nullify, deny, set default) and participation constraints
  • Deciding where a constraint belongs — field spec, relationship, validation table, or application
  • Diagnosing a schema that duplicates, loses, or corrupts data

This skill covers logical design. It does not cover SQL dialects, indexing, partitioning, query tuning, or analytical/dimensional (star-schema) modeling — those are physical/implementation concerns handled after the logical design is sound.

Rule Categories

# Category Prefix Covers
1 Design Process & Requirements proc- Design logically before choosing an RDBMS, follow the sequence, drive from mission + analysis, normalization is built in
2 Table Structure tbl- One subject per table, the ideal table, no reference fields, minimal redundancy
3 Field Design fld- The ideal field, single values, atomic fields, no stored calculations, clear names
4 Keys key- Candidate key elements, one primary key per table, foreign keys mirror primary keys, stable non-sensitive keys
5 Relationships rel- Junction tables for many-to-many, foreign-key placement, deletion rules, participation, self-referencing
6 Data Integrity, Rules & Views intg- The four integrity levels, field specifications, database-vs-application rules, validation tables, views
7 Antipatterns anti- Flat-file, spreadsheet-as-database, RDBMS-driven design, when bending the rules is defensible
8 Terminology term- Data vs information, nulls, core relational vocabulary

Quick Reference

1. Design Process & Requirements

2. Table Structure

3. Field Design

4.

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

AGENTS.mdassets/templates/_template.mdgotchas.mdmetadata.jsonreferences/_sections.mdreferences/anti-bend-rules-only-deliberately.mdreferences/anti-flat-file-design.mdreferences/anti-rdbms-driven-design.mdreferences/anti-spreadsheet-as-database.mdreferences/fld-clear-singular-field-names.mdreferences/fld-derive-dont-store-calculated-values.mdreferences/fld-ideal-field-checklist.mdreferences/fld-keep-fields-atomic.mdreferences/fld-store-single-values-not-lists.mdreferences/intg-database-vs-application-rules.mdreferences/intg-field-specifications.mdreferences/intg-four-levels-of-data-integrity.mdreferences/intg-validation-tables-for-allowed-values.mdreferences/intg-views-for-derived-and-restricted-data.mdreferences/key-candidate-key-elements.mdreferences/key-foreign-key-mirrors-its-primary-key.mdreferences/key-one-primary-key-per-table.mdreferences/key-prefer-stable-non-sensitive-keys.mdreferences/proc-analyze-and-interview-before-designing.mdreferences/proc-design-logically-before-choosing-rdbms.mdreferences/proc-follow-the-design-sequence.mdreferences/proc-normalization-is-built-in.mdreferences/proc-start-from-mission-and-objectives.mdreferences/rel-deletion-rule-guards-orphans.mdreferences/rel-foreign-key-on-the-many-side.mdreferences/rel-junction-table-for-many-to-many.mdreferences/rel-participation-encodes-constraints.mdreferences/rel-self-referencing-relationships.mdreferences/tbl-ideal-table-checklist.mdreferences/tbl-minimize-redundant-data.mdreferences/tbl-no-reference-fields.mdreferences/tbl-one-subject-per-table.mdreferences/term-data-versus-information.mdreferences/term-null-is-unknown-not-zero.mdreferences/term-relational-vocabulary.md

FAQ

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

Distills a logical relational-database design methodology into rules an agent applies while designing or reviewing a schema. Covers the design sequence (mission → tables → fields → keys → relationships → business rules → views → integrity review), one-subject-per-table decomposition, atomic single-valued fields, candidate/primary/foreign keys, relationship types with deletion rules and participation, the four levels of data integrity, database-vs-application business rules, validation tables, views for derived data, and the flat-file / spreadsheet / RDBMS-driven antipatterns to avoid. The structure is logical and RDBMS-agnostic, and normalized by construction. Use when designing a new relational schema, reviewing or refactoring an existing one, resolving redundant or repeating data, choosing keys, modeling relationships, or deciding where a constraint belongs.

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

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

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

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

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

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