Skip to content
Back to skills

Seed Database

ASecurity

Writes a seed script with realistic, properly related sample data that is safe to run twice and refuses to run in production.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill seed-database --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Seed Database?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Seed Database
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-seed-database-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-seed-database-ai-agent-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: seed-database
description: Writes a seed script with realistic, properly related sample data that is safe to run twice and refuses to run in production.
disable-model-invocation: true
---

Write a seed script for: $ARGUMENTS (tables, feature, or "all").

1. Read the schema, models and migrations. Map the tables, their foreign keys, unique keys, enums and required fields. Note the project's seed convention (prisma/seed.ts, db/seeds.rb, fixtures, a management command) and follow it.
2. Plan the insert order from parents to children. Use realistic values: plausible names, emails at example.com, dates over the last year, prices with sensible ranges. Add edge cases deliberately: a long name, a null optional field, an inactive user, a zero-total order.
3. Make it idempotent: upsert on a natural key or truncate only seed-owned rows, using a fixed random seed so data is the same every run.
4. Add a guard: abort if the database URL contains prod or a non-local host unless `ALLOW_SEED=1`.
5. Never use real customer data and never write secrets or real passwords. Hash a known dev password.

Print row counts per table and the command to run it. Do not run it until the user confirms which database it points to.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.