db-design
/db-design
Prowadzi projektowanie schematu bazy: encje, relacje, klucze, ograniczenia, normalizację, indeksy i kwestie eksploatacyjne dla systemów OLTP.
- Autor
- jiaxiaojunQAQ ↗
- Repozytorium
- SkillCamo ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 04.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Prowadzi projektowanie schematu bazy: encje, relacje, klucze, ograniczenia, normalizację, indeksy i kwestie eksploatacyjne dla systemów OLTP.
Oryginalny opis (EN)
Deep database design workflow—entities and relationships, keys and constraints, normalization vs denormalization, indexing strategy, integrity, and operational concerns. Use when designing OLTP schemas or reviewing greenfield data models.
Jak działa
- When to Offer This Workflow
- Stage 1: Domain & Access Patterns
- Stage 2: Entities & Relationships
- Stage 3: Keys & Constraints
- Stage 4: Normalization Trade-offs
- Stage 5: Indexing & Performance
- Stage 6: Operations & Evolution
- Final Review Checklist
- Tips for Effective Guidance
- Handling Deviations
Podgląd SKILL.md
--- name: db-design description: Deep database design workflow—entities and relationships, keys and constraints, normalization vs denormalization, indexing strategy, integrity, and operational concerns. Use when designing OLTP schemas or reviewing greenfield data models. --- # DB Design Good OLTP design balances integrity, write paths, query patterns, and evolution—not “third normal form everywhere.” ## When to Offer This Workflow **Trigger conditions:** - Greenfield service schema or major new domain - Performance or integrity issues from ad-hoc tables - Multi-tenant isolation questions **Initial offer:** Use **six stages**: (1) domain & access patterns, (2) entities & relationships, (3) keys & constraints, (4) normalization trade-offs, (5) indexing & performance, (6) operations & evolution). Confirm RDBMS and scale expectations. --- ## Stage 1: Domain & Access Patterns **Goal:** List critical queries and writes: QPS, joins, filters, hot rows. **Exit condition:** Top access paths ranked by business importance. --- ## Stage 2: Entities & Relationships **Goal:** ER model; cardinality; optional vs required relationships. ### Practices - Clear table names; avoid opaque “data” blobs unless documented --- ## Stage 3: Keys & Constraints **Goal:** Primary keys (surrogate vs natural); foreign keys with explicit ON DELETE policy; unique constraints for business rules. ### Multi-tenant - `tenant_id` on rows that need isolation; composite keys or indexes as appropriate --- ## Stage 4: Normalization Trade-offs **Goal:** Normalize to reduce update anomalies; denormalize read hotspots with documented trade-offs. --- ## Stage 5: Indexing & Performance **Goal:** Indexes serve real queries; watch write amplification and index bloat. --- ## Stage 6: Operations & Evolution **Goal:** Migration strategy (expand/contract); backup/restore; PII columns flagged. --- ## Final Review Checklist - [ ] Access patterns drive schema - [ ] Keys, FKs, and constraints explicit - [ ] Multi-tenant isolation if applicable - [ ] Normalization decisions justified - [ ] Index plan aligned with queries - [ ] Migration and ops considerations noted ## Tips for Effective Guidance - NULL semantics and defaults matter for bugs and migrations. - Pair with **db-migrate** for online schema changes. ## Handling Deviations - Document stores: embed vs reference with consistency story.
Pliki w paczce (2)
- SKILL.md 2 KB
- _meta.json 1 KB
Wersje
W bazie nie ma innych skilli o nazwie db-design.
Migawka bazy z 13.11.2026 · wersja paczki aea2e3025342 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100design-postgres-tables
Wspiera ogólne projektowanie tabel PostgreSQL: typy danych, ograniczenia, indeksy, normalizację, schematy JSONB i tabele intensywnie aktualizowane lub z upsertami. - 100database-design
Projektuje lub recenzuje schemat bazy i model danych: normalizację, indeksy, ograniczenia, migracje, partycjonowanie i ścieżki audytu. - 90warehouse-and-schema-design
Prowadzi przez projektowanie hurtowni danych i schematów: modele faktów i wymiarów, klucze, ziarno, normalizację a denormalizację oraz granice warstwy serwującej. - 100database-design
Projektuje relacyjne bazy według wzorców: normalizacja, klucze, relacje, ograniczenia, nazewnictwo, znaczniki czasu i strategia migracji. - 100schema-designer
Projektuje schemat bazy danych z normalizacją, relacjami, ograniczeniami i indeksami przy tworzeniu tabel. - 85role-database:schema-design
Podpowiada projekt schematu bazy danych: normalizację, multi-tenancy, klucze główne, soft delete, tabele czasowe i ewolucję schematu.