generating-database-seeder
Skill by GoogleCloudPlatform
Generates and runs a MongoDB seeder script that fills a database with sample records based on modern Zod schemas. It is meant for preparing an environment for functional parity testing.
Install generating-database-seeder
Built from the published package, never by AI.
git clone --depth 1 https://github.com/GoogleCloudPlatform/devrel-demos /tmp/devrel-demos && mkdir -p ~/.claude/skills && cp -r /tmp/devrel-demos/other/modernizing-expressjs/.agents/skills/generating-database-seeder ~/.claude/skills/generating-database-seederRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install generating-database-seeder in Claude Code
git clone --depth 1 https://github.com/GoogleCloudPlatform/devrel-demos /tmp/devrel-demos && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/devrel-demos/other/modernizing-expressjs/.agents/skills/generating-database-seeder ~/.gemini/antigravity-cli/skills/generating-database-seederAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install generating-database-seeder in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill generates and executes a database seeder script that populates MongoDB with sample data. It reads modern Zod schemas, such as src/lib/models/schema.ts, to find required fields, data types and default values. The generated samples cover primary resources, such as users or accounts, and sub-resources linked by ObjectId, along with edge cases like empty strings, long text and varied tags or categories.
The seeder clears existing collections before inserting data so the database starts in a deterministic state. It hashes passwords and sanitizes inputs using the project's utility functions. The skill then runs the seeder, for example with npm run db:seed, and checks that the records exist with the correct structure. It is meant for developers who need a fresh, isolated dataset for functional parity testing.
Written from the project's SKILL.md and checked against it.
What it can do
- Analyze schemasReads modern Zod schemas to identify required fields, data types and default values.
- Generate realistic samplesCreates primary and sub-resource sample records with edge cases such as empty strings and long text.
- Implement seederWrites a seeder script that clears existing collections before inserting new data.
- Execute and verifyRuns the seeder, for example with npm run db:seed, and confirms the records exist with the correct structure.
What you need
- MongoDB database
- Modern Zod schemas in the project
- npm, for the example seed command
Try asking
- Create a MongoDB seeder from my Zod schemas for functional parity testing
- Generate sample users and linked records and run the seeder
- Reset my test database and populate it with validated sample data
Good to know
- The seeder clears existing collections before inserting data.
- Skip this skill if the modernization strategy uses the existing legacy database directly.
- Intended for fresh datasets tested in isolation.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: other/modernizing-expressjs/.agents/skills/generating-database-seeder/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to generating-database-seeder
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
generating-database-seeder: common questions
Does this skill delete existing data?
Yes. The source says the seeder script must clear existing collections before insertion to ensure a deterministic state.
When should I not use this skill?
The source says to skip it if the modernization strategy is to use the existing legacy database directly.
What does the seeder use to shape the sample data?
It uses the modern Zod schemas, such as src/lib/models/schema.ts, to satisfy validation rules and relational integrity.
How do I install generating-database-seeder?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is generating-database-seeder free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is generating-database-seeder safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to generating-database-seeder?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
