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★ 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
proc-follow-the-design-sequence— later steps depend on earlier ones; skipping steps yields poor integrityproc-design-logically-before-choosing-rdbms— design the logical structure with no RDBMS in mind; choose and implement afterwardproc-start-from-mission-and-objectives— a mission statement and objectives scope the database and reveal its subjectsproc-analyze-and-interview-before-designing— analyze the current system and interview users and management before inventing fieldsproc-normalization-is-built-in— the ideal-field/ideal-table/key guidelines yield normalized tables; normalization is not a separate phase
2. Table Structure
tbl-one-subject-per-table— each table represents exactly one subject (object or event)tbl-ideal-table-checklist— the six-point test for a sound table structuretbl-no-reference-fields— don't copy fields from another table for reporting conveniencetbl-minimize-redundant-data— FK-driven redundancy is fine; keep everything else to an absolute minimum
3. Field Design
fld-ideal-field-checklist— the test for a sound fieldfld-store-single-values-not-lists— a multivalued field becomes its own tablefld-keep-fields-atomic— decompose multipart/composite fields into one field per distinct itemfld-derive-dont-store-calculated-values— calculations belong in a view, not a stored fieldfld-clear-singular-field-names— one unambiguous, singular name per characteristic
4.
Установить relational-database-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic