seed
Skill22 starsChanged 5 months agoMITView on GitHub
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.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- scottlivingston/claude-skillstheir own version, first seen Nov 1, 2026
- ozdemirberkay/seedshottheir own version, first seen Oct 20, 2026
- Q00/ouroborostheir own version, first seen Jul 31, 2026
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
- tchr-dev/autonoveltheir own version, first seen Apr 27, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Q00/ouroboros★ 6.3ksame name
- Pradnyeshp/Claude-Skills★ 2same name
- scottlivingston/claude-skills★ 1same name
- tchr-dev/autonovel★ 1same name
- ozdemirberkay/seedshot★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auditSkill
- checklistSkill
- db-antipatternsSkill
- db-concurrencySkill
- db-connection-poolingSkill
- db-constraintsSkill
- db-defaults-generatedSkill
- db-engine-selectionSkill
- db-index-hygieneSkill
- db-indexingSkill
- db-keysSkill
- db-migration-safetySkill
- db-multitenancySkill
- db-namingSkill
- db-normalizationSkill
- db-orchestratorSkill
- db-partitioning-shardingSkill
- db-platform-fitSkill
- db-query-patternsSkill
- db-referential-integritySkill
- db-replicas-viewsSkill
- db-security-accessSkill
- db-specialized-fitSkill
- db-storage-bloatSkill
- db-temporal-historySkill
- db-types-precisionSkill
- designSkill
- explainSkill
- fixSkill
- introspectSkill
- migrateSkill
- nextSkill
- scoreSkill
- stack-detectSkill
- startSkill
The file
Files
<!-- Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) · tododeia.com · id er-f37b7121 -->/claude-db:seed
Generates FK-aware, deterministic sample/seed INSERTs 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
- Resolve the schema path (from
$ARGUMENTSor detection above). - Run the generator:
node scripts/gen-seed.mjs --file <schema> --rows N [--format sql|json]--rows Ndefaults to 5 (clamped 1–1000).--formatdefaults tosql;jsonreturns 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.
- Present the result:
- The insert order (dependency order, parents → children) and per-table row counts.
- The generated
INSERTstatements, grouped by table in that order. - The parser confidence and any tables skipped or cycles ignored.
- Offer to save to a file (e.g.
seed.sqlorfixtures.json) — only write if the user confirms a path. Otherwise leave it inline.
Notes
- Deterministic by design: re-running with the same
--rowsyields 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).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

