Logo van Database Design Engineering

Database Design Engineering

Community
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

Overzicht

Uitgeverpeterbamuhigire
Repositorychwezi-dev-engine
Skillnaamdatabase-design-engineering
Sterren
29
Forks
6
Meegeleverde bestanden
4
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 4

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door peterbamuhigire op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Database Design Engineering in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/backend-databases/database-design-engineering
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Database Design Engineering in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Database Design Engineering automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Database Design Engineering niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Database Design Engineering gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Database Design Engineering bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Database Design Engineering in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/backend-databases/database-design-engineering. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Database Design Engineering gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Database Design Engineering gebruiken?

Zoveel als je wilt. Je kunt Database Design Engineering gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Database Design Engineering gratis?

Ja. Deze skill is door peterbamuhigire op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇