Przejdź do treści
Biblioteka skilli
Programowanie · Planowanie

design

/design

Dobiera silnik bazy dla nowego projektu, porównuje go z domyślnym wyborem i przygotowuje startowy model danych z diagramem.

Repozytorium
claude-db ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Dobiera silnik bazy dla nowego projektu, porównuje go z domyślnym wyborem i przygotowuje startowy model danych z diagramem.

Argumenty

/design <one-line description of what you're building> [--paradigm-hint relational|document|...] [--scale small|medium|large] [-
Oryginalny opis (EN)

Greenfield database design — pick the right engine for a new project, compare it against the boring default, and hand back a starter data model with a diagram. Recommendation mode (module M0); never scored, never destructive. Use when the user is starting fresh and asks what database to use, how to model a new app, which engine fits, or for a schema/data-model from scratch.

Jak działa

  1. What to do
  2. Format — novice-first, with an expandable technical layer
  3. --emit <prisma|drizzle|sql> — scaffold a first migration
Sekcje z nagłówków SKILL.md, w oryginale · 27 linii, 488 słów
Podgląd SKILL.md
---
name: design
description: Greenfield database design — pick the right engine for a new project, compare it against the boring default, and hand back a starter data model with a diagram. Recommendation mode (module M0); never scored, never destructive. Use when the user is starting fresh and asks what database to use, how to model a new app, which engine fits, or for a schema/data-model from scratch.
argument-hint: "<one-line description of what you're building> [--paradigm-hint relational|document|...] [--scale small|medium|large] [--emit prisma|drizzle|sql]"
allowed-tools: Read, Grep, Glob, Bash, Task
---
<!-- Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) · tododeia.com · id er-f37b7121 -->

# /claude-db:design

Greenfield engine choice + starter model. This is **module M0 (engine-selection): a recommendation, not a score** — `/claude-db:design` never produces the two audit scores and never writes to a database.

`$ARGUMENTS` = a plain-language description of the project (the data, the access patterns, the scale, any constraints). If it's too thin to choose well, ask 2–3 sharp questions first — or hand off to `/claude-db:start` for the full guided wizard.

## What to do
1. **Walk the M0 decision tree** (`references/engine-selection-tree.md`; see also `references/detection-signals.md` and `data-tiers.md` for the paradigm signals): from the access patterns and shape of the data, narrow to a paradigm (relational / document / key-value / wide-column / vector / time-series / graph), then to a concrete engine.
2. **Recommend an engine** — and always **compare it against the boring default** (Postgres for most app workloads). State plainly when the boring default wins (it usually does) and what specific, concrete need would justify reaching for something else. Be honest about lock-in and operational cost; **never fabricate prices, latency, throughput, or benchmark numbers** — describe trade-offs qualitatively or mark `needs_api` if a real figure is required.
3. **Hand back a starter data model** for the recommended engine — core entities, keys (UUIDv7/ULID/bigint as appropriate, never floats for money, timestamptz/UTC), the obvious relationships/embeddings, and the constraints/indexes a sane first migration would include.
4. **Draw a paradigm-aware diagram** with `node scripts/gen-diagram.mjs --file <schema> [--paradigm relational|document|key-value|wide-column|graph]` (paradigm-aware: ERD for relational, access-pattern map for document, key+GSI sketch for DynamoDB/KV, node/edge for graph).

## Format — novice-first, with an expandable technical layer
- Lead with a **plain, novice-friendly explanation**: which database, in one sentence, and why — no jargon up front.
- Then an **expandable technical layer**: the DDL/collection spec, index choices, key strategy, and the design-rule rationale (which audit modules each choice satisfies, e.g. M2 keys, M4 types, M11 indexing) for the reader who wants depth.
- Close by offering: "When you have a first schema, run `/claude-db:audit` to score it on Design & Integrity and Performance & Scale."

## `--emit <prisma|drizzle|sql>` — scaffold a first migration
After recommending the model (the steps above still run first; `--emit` never replaces the recommendation), scaffold a **reversible first migration** for the chosen target:
- Generate the schema in the requested format — a Prisma schema, a Drizzle schema, or raw SQL DDL — for the recommended starter model.
- Hand the scaffold to the **db-migration-writer** agent (via Task) to write it as a reversible migration (forward + down). The writer reuses `fix`'s guards: refuse on a dirty git tree (treat **no git repo** as writable, backups still go to the plugin data dir), **dry-run preview by default**, and **no-secrets** (never write `.env`/credentials/invented connection strings).
- For **`--emit sql`** specifically, also offer `/claude-db:seed` to generate FK-aware seed data for the new schema.

Respond in the user's language (EN/ES).

Wersje

RepozytoriumWynikLicencja
Ta strona · hainrixz/claude-db90MIT
jeremylongshore/tons-of-skills-marketplace100MIT
ouestlabs/audio-ui100MIT
uiverify/uiverify100MIT
assafkip/kipi-system100MIT
karloscodes/fusionaly-oss100MIT
dilhanz/ship100MIT
codagent-ai/agent-skills100MIT
a8cteam51/claude-code-plugins100MIT

Migawka bazy z 28.10.2026 · wersja paczki 0972fcc7ac1f (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100database-design
    Projektuje lub recenzuje schemat bazy i model danych: normalizację, indeksy, ograniczenia, migracje, partycjonowanie i ścieżki audytu.
  • 100database-design-document
    Projektuje produkcyjny schemat bazy danych z diagramem ERD, definicjami tabel, słownikiem danych, strategią indeksów, decyzjami o normalizacji i planem migracji.
  • 100create-data-model
    Projektuje model danych z wymagań funkcji: schemat, tabele bazy, encje, warstwę danych i diagram ERD.
  • 100designing-database-schemas
    Pomaga projektować schematy baz danych i migracje: modelowanie danych oraz tworzenie migracji.
  • 100designing-database-schemas
    Pomaga projektować schematy baz danych i migracje: modelowanie danych oraz tworzenie migracji.
  • 100database-schema-designer
    Projektuje schematy baz SQL i NoSQL gotowe do produkcji: tabele, diagramy ERD, model danych, normalizacja, plan migracji i strategia indeksów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.