Логотип Database Design Engineering

Database Design Engineering

Спільнота
peterbamuhigire
database-design-engineering

Use when designing or reviewing relational or document-backed data architecture for SaaS platforms, ERP systems, APIs, analytics stores, or mobile sync. Covers domain modeling, tenancy, indexing, migrations, event stream data contract and schema evolution, integrity, retention, and performance tradeoffs.

Add to TypingMind

Огляд

Видавецьpeterbamuhigire
Репозиторійchwezi-dev-engine
Назва навичкиdatabase-design-engineering
Зірки
29
Форки
6
Файли в пакеті
4
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: peterbamuhigire. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Database Design Engineering у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/backend-databases/database-design-engineering
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/backend-databases/database-design-engineering .claude/skills/database-design-engineering
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Database Design Engineering в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Database Design Engineering, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Database Design Engineering не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Database Design Engineering

Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.

Use When

  • Use when designing or reviewing relational or document-backed data architecture for SaaS platforms, ERP systems, APIs, analytics stores, or mobile sync. Covers domain modeling, tenancy, indexing, migrations, integrity, retention, and performance tradeoffs.

Do Not Use When

  • The task is query tuning or production incident diagnosis without a schema-design decision; use the database operations or reliability skill.
  • The datastore is a search index, cache, or vector store whose source-of-truth semantics belong elsewhere.

Required Inputs

InputRequiredWhy it matters
Domain entities, invariants, and lifecycle rulesyesDetermines tables, keys, constraints, and valid state transitions
Read and write access patternsyesDrives indexes, transaction boundaries, and denormalization choices
Data volume, growth, and retention expectationsyesExposes scaling and archival constraints
Existing schema and migration constraintsconditionalEnables safe evolution without data loss or prolonged locking

Workflow

Model invariants and ownership, choose keys and relationships, enforce integrity in the database, design indexes from verified access paths, plan reversible expand-contract migrations, then test concurrency, rollback, and representative query plans.

Quality Standards

The schema enforces material invariants with types, constraints, and transactions rather than application convention alone. Each index supports a named query, and every migration states lock, backfill, compatibility, rollback, and validation behavior.

Outputs

OutputConsumerAcceptance condition
Logical and physical schemaApplication and data engineersIdentifies ownership, keys, constraints, relationships, types, and intentional denormalization
Index and transaction planImplementersLinks access patterns to indexes and defines concurrency behavior
Migration packetRelease and operations teamsIncludes sequencing, compatibility window, backfill, validation, rollback, and risk notes

Evidence Produced

CategoryArtifactFormatExample
Data safetyMigration planMarkdown doc per skill-composition-standards/references/migration-plan-template.mddocs/data/migration-2026-04-16-add-tenant-column.md
Data safetyEntity modelMarkdown doc per skill-composition-standards/references/entity-model-template.mddocs/data/entity-model-billing.md
Data safetyAccess pattern registerMarkdown doc per skill-composition-standards/references/access-patterns-template.mddocs/data/access-patterns-billing.md

References

  • Use the references/ directory for deep detail after reading the core workflow below.

Use this skill when schema choices will shape correctness, performance, or future maintainability. It complements vendor-specific database skills by focusing on design logic that survives framework changes.

Load Order

  1. Load world-class-engineering.
  2. Load this skill to design the data model and lifecycle.
  3. Load engine-specific parent skills afterward: mysql-engineering or postgresql-engineering.

Database Workflow

1. Model the Domain

Define:

  • Core entities and their lifecycles.
  • Ownership and tenancy boundaries.
  • Transactional invariants.
  • Reporting and audit requirements.
  • Retention, archival, and deletion rules.
  • The release and migration constraints for live data.

Model events and states, not just forms and screens.

2. Choose the Storage Shape

Prefer relational design when:

  • Consistency matters.
  • Multi-table invariants exist.
  • Reporting and joins are central.

Prefer document or key-value structures for:

  • Flexible metadata.
  • Cached projections.
  • Denormalized read models or unstructured payloads.

Do not use schemaless storage as a substitute for undecided modeling.

3. Define Table Boundaries

  • One table should represent one durable business concept or event stream.
  • Separate current state from append-only history when auditability matters.
  • Distinguish master data, transactions, and derived projections.
  • Avoid overloading one table with mutually exclusive concepts.

4. Design for Scale and Safety

  • Add tenant or ownership keys early.
  • Design indexes around real query predicates and sort order.
  • Keep writes idempotent where retries are possible.
  • Plan archival, purging, and partitioning before large-volume tables arrive.
  • Use expand-contract migrations for live systems.
  • Separate transactional truth from projections, integrations, and analytical read models.
  • Design test-data and backfill strategies for major schema evolution before the first risky migration.

Core Standards

Integrity

  • Enforce invariants at the strongest reasonable layer: schema, transaction, application, worker.
  • Use foreign keys where ownership is mandatory and module boundaries permit it.
  • Use append-only ledgers for financial and audit-critical domains.
  • Never encode important business rules only in UI validation.

Tenancy

  • Every tenant-scoped table must carry the tenant key.
  • Every tenant-scoped query must constrain by tenant key.
  • Every unique constraint must reflect tenancy where appropriate.
  • Cross-tenant analytics should use controlled derived datasets, not raw shared queries.

Indexing

  • Index for the access path, not for column popularity.
  • Prefer composite indexes that match filter plus sort order.
  • Remove duplicate or low-value indexes that tax writes.
  • Validate index usefulness against actual queries and execution plans.

Migrations

  • Make every migration forward-safe and observable.
  • Prefer additive changes, backfills, then cutovers, then cleanup.
  • Keep application code compatible across deployment overlap where possible.
  • Rehearse destructive or high-volume changes before production.
  • Tag migrations with rollback posture: reversible, compensating-only, or forward-fix-only.
  • For web projects, provide a root pull-time migration script that reads the app's environment database settings, compares tracked migrations with live migration history, and applies only missing migrations.
  • Never bundle seeds into the normal migration-apply path. Demo data, reference seeds, fixtures, and production bootstrap scripts must require a separate explicit command.

Operable Data Systems

  • Emit release markers and migration identifiers into logs and dashboards where possible.
  • Track replication lag, queue lag, backfill progress, and lock or saturation risk on critical stores.
  • Treat long-running migrations and backfills as operational workflows with owners and stop conditions.
  • Document how data correctness will be verified after migration, replay, or recovery.

Scale, Replication, and Change Data

  • Know which queries must read current truth and which can tolerate replica lag.
  • Design outbox, CDC, or projection pipelines so integration needs do not corrupt the transactional model.
  • Budget storage, index, and retention cost for hot tables before volume becomes painful.
  • Validate the hottest access paths with execution plans, cardinality assumptions, and realistic filters.

Decision Heuristics

Normalize when:

  • Data duplication would create correctness risk.
  • Multiple workflows update the same fact.

Denormalize when:

  • Read performance or query simplicity clearly outweighs duplication cost.
  • The source of truth remains obvious.
  • Refresh or reconciliation strategy is explicit.

Use soft delete when:

  • Recovery, auditability, or legal hold matters.

Use hard delete when:

  • Data minimization or cost pressure is stronger and downstream references are safely handled.

Deliverables

For substantive database work, produce:

  • Entity and lifecycle summary.
  • Table or collection design.
  • Index plan.
  • Migration strategy.
  • Data verification and rollback posture.
  • Data retention and audit plan.
  • Top 5 critical queries or access patterns.
  • Projection, outbox, or replication notes where external reads or integrations exist.

Review Checklist

  • Domain entities reflect real business concepts.
  • Tenant and ownership boundaries are explicit.
  • Invariants are protected at durable layers.
  • Indexes match real access paths.
  • Migrations support live deployment safety.
  • Migration verification and rollback posture are explicit.
  • Audit, retention, and archival rules are documented.
  • Reporting needs do not distort the transactional model without justification.
  • Replica lag, projections, or CDC assumptions are explicit where they matter.

References

Capability contract

Design schemas and migration plans by default. Apply DDL, backfills, retention jobs, or production queries only with explicit database and environment authority.

Degraded mode

If workload samples or schema access are unavailable, provide a read-only logical design and mark index, capacity, and migration claims unverified.

Domain Anti-Patterns

  • Omitting foreign-key or application integrity rules. Fix: state enforcement explicitly.
  • Indexing every column. Fix: derive indexes from measured access paths.
  • Mixing tenant data without a tenant key. Fix: enforce isolation in schema and queries.
  • Shipping destructive migrations in one step. Fix: use expand-contract.
  • Retaining data indefinitely. Fix: define retention and deletion ownership.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Database Design Engineering?

Use when designing or reviewing relational or document-backed data architecture for SaaS platforms, ERP systems, APIs, analytics stores, or mobile sync. Covers domain modeling, tenancy, indexing, migrations, event stream data contract and schema evolution, integrity, retention, and performance tradeoffs.

Навіщо використовувати Database Design Engineering у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Database Design Engineering — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Database Design Engineering у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/backend-databases/database-design-engineering. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Database Design Engineering?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Database Design Engineering?

Зі скількома забажаєте. У TypingMind ви можете використовувати Database Design Engineering із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Database Design Engineering?

Так. На GitHub цю навичку публікує peterbamuhigire за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип nextlevelbuilder

Ui Styling

nextlevelbuilder
ОрганізаціяПопулярне

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user…

15K
141.1K
Файлів: 95
Відкрити
Логотип garrytan

Landing Report

garrytan
СпільнотаПопулярне

Панель черги лише для читання для розгортання з урахуванням робочого простору. (gstack)

19.9K
133.5K
Файлів: 1
Відкрити
Логотип garrytan

Gstack Openclaw Ceo Review

garrytan
СпільнотаПопулярне

Використовуйте, коли вас просять перевірити план, поставити під сумнів пропозицію, провести рев’ю з позиції CEO, знайти слабкі місця в підході, ширше поглянути на обсяг робіт або вирішити, чи варто розширити або скоротити план.

19.9K
133.5K
Інструкції
Відкрити
Логотип JuliusBrussee

Caveman Stats

JuliusBrussee
СпільнотаПопулярне

Показує записане використання токенів у виводі та зчитування з кешу, а також атрибуцію режиму для поточного сеансу Claude Code або знаходить вбудований звіт про використання на хості. Виклик: /caveman-stats.

6.2K
106.3K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇