stratal-seeders

Manage Stratal database seeding via CLI commands and TypeScript seeders.

10|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/strataljs/stratal --skill stratal-seeders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stratal-seeders
Source: https://github.com/strataljs/stratal/tree/main/.agents/skills/stratal-seeders
Command: npx skills add https://github.com/strataljs/stratal --skill stratal-seeders

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of populating your Stratal application's database with initial or test data, ensuring consistency and ease of development.

Core Features & Use Cases

  • Seeder Creation: Write custom TypeScript seeders using a provided base class.
  • Automatic Registration: Seeders are discovered automatically from module providers.
  • CLI Interface: Manage seeding operations (run, list, dry-run) via a dedicated command-line tool.
  • Use Case: When setting up a new development environment, use this Skill to quickly populate the database with sample users, products, and configurations.

Quick Start

Run all discovered seeders using the command npx stratal-seed run --all.

Frequently Asked Questions about stratal-seeders

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

FAQPage Schema
How do I populate my database with initial test data during development?

You manage database seeding by creating custom TypeScript seeders using a provided base class. These seeders are discovered automatically from module providers, allowing you to quickly populate your database with sample data like users or products.

How do I run database seeding scripts from the command line?

You can execute database seeding operations via a dedicated CLI interface. Run all discovered seeders at once using `npx stratal-seed run --all`, or execute individual seeders and perform dry runs directly from the command line.

How are custom seeders discovered and registered in a Stratal application?

Custom seeders are discovered automatically from module providers within your Stratal application. This automatic registration eliminates manual setup and streamlines the data population workflow.

Can I access application services inside my database seeding scripts?

Yes, database seeding scripts can access application services directly. The seeding process integrates with Stratal's dependency injection (DI) system, enabling your custom seeders to utilize existing application services during data population.

Can I preview database changes before executing the data population scripts?

Yes, you can preview database changes before executing data population scripts. The CLI interface supports dry runs, allowing you to test seeders and verify data population logic without modifying the actual database.