database-design-patterns
Use when designing relational database schemas, normalizing data, choosing keys and constraints, or applying transactions, indexing, and partitioning patterns. Do not use when the task is engine-specific operations or NoSQL design.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- database-design-patterns
- license
- MIT
- metadata
- { "owner": "Harley Bartles", "scope": "Engine-agnostic relational database design and optimization patterns", "status": "active", "use_when": [ "designing or reviewing a relational database schema", "normalizing tables, choosing keys, or defining constraints", "modeling transactions, concurrency, views, or stored procedures", "planning indexes, partitions, or query tuning" ], "source-id": "database-design-patterns", "source-path": "skills/database-design-patterns/SKILL.md", "do_not_use_when": [ "engine-specific operations; prefer database-engines", "NoSQL or document databases" ], "provenance-name": "Database Design Patterns first-party skill", "source-category": "first_party" }
- description
- Use when designing relational database schemas, normalizing data, choosing keys and constraints, or applying transactions, indexing, and partitioning patterns. Do not use when the task is engine-specific operations or NoSQL design.
02 资源文件 13
- 参考文档agents/openai.yaml573 B
- 资产文件assets/authority/authority.yaml2.9 KB
- 资产文件assets/authority/CITATIONS.md2.1 KB
- 资产文件assets/authority/reference-source/database-design-2e/Database-Design-2nd-Edition.pdf2.8 MB
- 资产文件assets/authority/source-map.yaml2.3 KB
- 参考文档references/data-modeling.md511 B
- 参考文档references/indexing-and-query-tuning.md549 B
- 参考文档references/keys-and-constraints.md503 B
- 参考文档references/normalization.md483 B
- 参考文档references/operational-guidance.md424 B
- 参考文档references/partitioning-and-sharding.md530 B
- 参考文档references/transactions-and-concurrency.md517 B
- 参考文档references/views-and-programmability.md558 B
03 SKILL.md 正文
Database Design Patterns
Use this skill for engine-agnostic relational design: data modeling, normalization, keys and constraints, views and programmability, transactions and concurrency, indexing, and partitioning. The operational references adapt the BCcampus Database Design – 2nd Edition textbook and supplement it with citable indexing, query-tuning, and architecture references.
Core topics
- Start with
references/data-modeling.mdfor conceptual, logical, and physical models. - Use
references/normalization.mdfor normal forms and functional dependencies. - Read
references/keys-and-constraints.mdfor keys, uniqueness, and domains. - Use
references/views-and-programmability.mdfor views, procedures, functions, and triggers. - Read
references/transactions-and-concurrency.mdfor isolation, locking, and deadlocks. - Use
references/indexing-and-query-tuning.mdfor index strategy and plan fundamentals. - Read
references/partitioning-and-sharding.mdfor scale-out basics.
Common mistakes
- Designing for today only, ignoring query patterns and growth.
- Skipping normalization or over-normalizing without reason.
- Using natural keys that are not stable or not unique.
- Adding indexes without checking the query plan.
- Treating sharding as a fix for poor indexing or bad queries.
For source-grounded detail, read assets/authority/CITATIONS.md and assets/authority/source-map.yaml.
04 同仓库更多 Skills
writing
Use when drafting, revising, or reviewing prose for human readers and clarity, an authorised voice, or reader-fatigue concerns may interact.
writing-with-clarity
Use when drafting, revising, or reviewing prose intended for human readers, including documentation, README files, reports, explanations, UI copy, errors, comments, commit messages, and pull request text.
writing-style
Use when revising or reviewing human-facing prose against an authorised voice card or a contextual reader-fatigue profile.
skill
暂无简介
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment.
writing-roadmaps
Use when a goal is too large for one writing-plans plan and requires a sequenced roadmap of consecutive plans.