db-seed-generator

Generate repeatable seed data and one-off scripts for Express.js and MongoDB applications.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/spuneiartur/claude-agent-specs --skill db-seed-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-seed-generator
Source: https://github.com/spuneiartur/claude-agent-specs/tree/main/express-js/skills/skills/db-seed-generator
Command: npx skills add https://github.com/spuneiartur/claude-agent-specs --skill db-seed-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate repeatable seed data and one-off scripts for Express.js + MongoDB APIs.

Core Features & Use Cases

  • Seeds in db/seeds/ with numbered execution order (e.g., 001_identities.js)
  • Scripts in scripts/ for one-off imports and migrations
  • Data factories in db/resources/ and a seed registry in db/seeds/index.js
  • Clear guidance on running seeds and scripts with idempotent operations

Quick Start

Create a new seed resource and run the seed runner to populate your database.

Frequently Asked Questions about db-seed-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate repeatable seed data for an Express.js and MongoDB application?

To generate repeatable seed data for an Express.js and MongoDB application, you create data factories in db/resources/ and register them in db/seeds/index.js. Seeds are stored in db/seeds/ with numbered filenames to ensure consistent execution order across environments.

What is the best way to structure one-off database migration scripts in Express.js?

The best way to structure one-off database migration scripts in Express.js is to place them in the scripts/ directory. These scripts leverage the runScript utility from express-goodies to execute bulk updates and data imports cleanly.

Does this seed generation approach support idempotent database operations?

Yes, this seed generation approach supports idempotent database operations. It provides clear guidance on running seeds and scripts so that executing them multiple times across different environments will not duplicate or corrupt your existing data.

How do I bootstrap a MongoDB database with initial data for local development?

To bootstrap a MongoDB database with initial data, you create a new seed resource and run the seed runner. This process populates your database using predefined data factories, allowing you to quickly set up local development environments.

When should I use a numbered seed file versus a one-off script for data migration?

Use a numbered seed file in db/seeds/ for repeatable data needed across environments, and a one-off script in scripts/ for single-use imports or migrations. This separation keeps your bootstrap data distinct from specific bulk updates.