seed
/seed
Generuje deterministyczne dane przykładowe z schematu bazy z kluczami obcymi w kolejności zależności, bez zapisu do bazy.
- Autor
- hainrixz ↗
- Repozytorium
- claude-db ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Generuje deterministyczne dane przykładowe z schematu bazy z kluczami obcymi w kolejności zależności, bez zapisu do bazy.
Argumenty
/seed <path-to-schema> [--rows N] [--format sql|json]
Oryginalny opis (EN)
Generate FK-aware, deterministic sample/seed data from a database schema, ORM model, or migrations — INSERT statements emitted in dependency order (parents first), values derived from row index so output is stable and reviewable. Read-only; never writes to a database. For dev/test fixtures only. Use when the user asks to seed, generate sample/test/fixture/dummy/fake data, populate tables, or create starter rows for Postgres, MySQL, SQLite, and friends.
Jak działa
- What to do
- Notes
Podgląd SKILL.md
--- name: seed description: Generate FK-aware, deterministic sample/seed data from a database schema, ORM model, or migrations — INSERT statements emitted in dependency order (parents first), values derived from row index so output is stable and reviewable. Read-only; never writes to a database. For dev/test fixtures only. Use when the user asks to seed, generate sample/test/fixture/dummy/fake data, populate tables, or create starter rows for Postgres, MySQL, SQLite, and friends. argument-hint: "<path-to-schema> [--rows N] [--format sql|json]" allowed-tools: Read, Grep, Glob, Bash --- <!-- Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) · tododeia.com · id er-f37b7121 --> # /claude-db:seed Generates **FK-aware, deterministic** sample/seed `INSERT`s from a schema. **Read-only** — it never connects to or writes to a database. The output is **dev/test data only**: predictable values derived from the row index (no RNG), suitable for fixtures, local development, and CI — never for production. `$ARGUMENTS` = `<path-to-schema> [flags]`. The target is a schema/DDL, ORM model, or migration file. If no path is given, detect one in the working directory (look for `*.sql`, `schema.prisma`, `models.py`, migration dirs). If nothing is found, say so plainly and suggest pointing at a file or running `/claude-db:design` to create one. ## What to do 1. Resolve the schema path (from `$ARGUMENTS` or detection above). 2. Run the generator: ```bash node scripts/gen-seed.mjs --file <schema> --rows N [--format sql|json] ``` - `--rows N` defaults to 5 (clamped 1–1000). `--format` defaults to `sql`; `json` returns the statements as an array plus metadata. - The script topologically sorts tables so each table's FK parents are inserted **first**, fills FK columns with valid parent ids, and skips auto-increment/identity PKs. 3. Present the result: - The **insert order** (dependency order, parents → children) and per-table row counts. - The generated **`INSERT` statements**, grouped by table in that order. - The parser **confidence** and any tables skipped or cycles ignored. 4. Offer to **save to a file** (e.g. `seed.sql` or `fixtures.json`) — only write if the user confirms a path. Otherwise leave it inline. ## Notes - Deterministic by design: re-running with the same `--rows` yields byte-identical output, so seeds are diff-friendly and reproducible. - Values are illustrative placeholders (emails like `user1@example.com`, fixed timestamps, sequential ids) — **not** realistic or privacy-safe production data. - Cyclic FKs are ignored for ordering; deferred-constraint or self-referential cases may need a manual pass after generation. For **dev/test fixtures only**. Never run generated seeds against a production database. Respond in the user's language (EN/ES).
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · hainrixz/claude-db | 100 | MIT |
| q00/ouroboros | 100 | MIT |
| chrishuffman5/domain-expert | 100 | MIT |
| yrzhe/claude-skills | 100 | MIT |
| robinslange/learning-loop | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 1b70a285ecc6 (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
- 100azuresql-db-seed
Wypełnia lokalną bazę appdb w kontenerze Azure SQL Database realistycznymi danymi testowymi: skrypty seed, dane przykładowe i ładowanie plików CSV. - 100seedgen
Analizuje model danych repozytorium i generuje skrypt z danymi testowymi zgodny z enumami, kluczami obcymi i ograniczeniami, z lokalizacją nazw. - 100seed-data
Generuje realistyczne dane startowe dla środowisk dev, test, demo i stress, łącznie z przypadkami brzegowymi i skryptami. - 100misata
Generuje realistyczne wielotabelowe dane testowe, zasila bazę deweloperską i buduje fixtury ze spójnymi złączeniami i sumami, zamiast pisać skrypt w Faker, numpy lub pandas. - 90audit
Audytuje schemat bazy danych, model ORM lub migracje pod kątem projektu i wydajności, z dwiema ocenami od 0 do 100 i raportem. - 100seedmint
Generuje realistyczne dane testowe i przykładowe ze schematu TypeScript, Zod, Prisma, SQL lub JSON, w wybranej lokalizacji.