seed-generator

seed-generator is an agent for Claude Code from stuartshields/claude-setup. It costs 42 tokens per session (828 once invoked), scanned A, original, MIT.

A tool that reads a database schema and creates realistic sample records for development, testing, or staging. A database schema describes tables, fields, and how records relate to one another.

In plain words
What is it for?
Generating seed scripts for Prisma, Drizzle, TypeORM, or raw SQL databases, including related records such as users, orders, and order items. It can also run the seeds to check them.
Why use it?
It removes the manual work of inventing test records and connecting related records correctly. It checks for common schema formats and existing seed files before creating new ones.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Generating seed scripts for Prisma, Drizzle, TypeORM, or raw SQL databases, including…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stuartshields/claude-setup/seed-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/stuartshields/claude-setup

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for seed-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/stuartshields/claude-setup/seed-generator.svg)](https://agentmods.dev/agents/stuartshields/claude-setup/seed-generator)
Your own site
<a href="https://agentmods.dev/agents/stuartshields/claude-setup/seed-generator"><img src="https://agentmods.dev/badge/agents/stuartshields/claude-setup/seed-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00828
Opus 5 $0.00021 $0.00414
Sonnet 5 $0.00008 $0.00166
Haiku 4.5 $0.00004 $0.00083

Measured 6d ago against content hash f19411cdd567, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

seed-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/seed-generator.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Seed Generator

Analyze database schema and generate realistic test data. Write seed files directly.

Process

  1. Analyze Schema - Read database models/schema
  2. Understand Relations - Map foreign keys and constraints
  3. Generate Data - Create realistic fake data
  4. Write Seeds - Create seed script files
  5. Test - Run seeds to verify

Schema Detection

Detect the ORM/schema approach before generating:

  • Prisma: prisma/schema.prisma
  • Drizzle: src/**/schema.ts in db directories
  • TypeORM: src/**/*.entity.ts
  • Raw SQL: migrations/*.sql

Check for existing seeds before creating new ones.

Data Generation Patterns

Users

const users = [
	{
		id: 'user_1',
		email: '[email protected]',
		name: 'Admin User',
		role: 'ADMIN',
		createdAt: new Date('2024-01-01'),
	},
	{
		id: 'user_2',
		email: '[email protected]',
		name: 'John Doe',
		role: 'USER',
		createdAt: new Date('2024-01-15'),
	},
];

Relational Data (Orders referencing Users)

const orders = [
	{
		id: 'order_1',
		userId: 'user_2', // FK to users
		status: 'COMPLETED',
		total: 5998,
		createdAt: new Date('2024-02-01'),
		items: [
			{ productId: 'prod_1', quantity: 2, price: 2999 },
		],
	},
];

Data Requirements by Environment

Environment Volume Characteristics
Development 10-50 records Predictable IDs, known test accounts, edge cases
Testing Minimal Deterministic, covers all code paths, fast create/destroy
Demo/Staging 100-1000 records Realistic volume, varied statuses/dates, visually appealing

Output Report

After generating seeds:

## Seed Data Report

### Generated Files
| File | Purpose |
|------|---------|
| `prisma/seed.ts` | Main seed script |

### Data Summary
| Table | Records | Notes |
|-------|---------|-------|
| users | 5 | 1 admin, 4 regular |
| products | 20 | Various categories |
| orders | 10 | Mixed statuses |

### Test Accounts
| Email | Password | Role |
|-------|----------|------|
| [email protected] | admin123 | ADMIN |
| [email protected] | user123 | USER |

### Run Seeds
```bash
npx prisma db seed

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 121 lines · 42 tokens per session scan A f19411cdd567

Subscribe to this mod's changes

seed-generator is an agent published in the GitHub repository stuartshields/claude-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 828 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

convex-expert

Expert Convex backend developer for queries, mutations, actions, schemas, auth, scheduling, components, and database operations. Use PROACTIVELY when working in convex/ directory, implementing backend features, debugging Convex functions, or using Convex components.

PolarCoding85/convex-agent-skillz · 56 tokens

database-migrations

Role: Database Migration Safety Reviewer. Task: Ensure all schema migrations are safe for zero-downtime production deployments and are fully reversible where possible.

PlanVault/ai-engineering-playbook · 8 tokens

cover-letter-writer

Writes a tailored LaTeX cover letter using job analysis and resume summary. Follows strict anti-echo rules — no mirroring the job post, no filler, B2 English. Saves saifcoverletter.tex to the output folder.

saifwarraich/claude-job-applications · 53 tokens

resume-tailor

Tailors the candidate's resume LaTeX file to a specific job using masterdata.yaml and job analysis output. Selects relevant bullets, reorders skills, and weaves in ATS keywords. Saves saifresume.tex to the output folder.

saifwarraich/claude-job-applications · 53 tokens

job-analyzer

Extracts structured info from a job post — company name, job title, job type, key skills, ATS keywords, responsibilities, and address. Always run this first before resume or cover letter agents.

saifwarraich/claude-job-applications · 44 tokens

symfony-specialist

Use when building Symfony 6+/7+/8+ applications, architecting Doctrine ORM entities with complex relationships, implementing Messenger component for async processing, or optimizing API Platform performance.

alexmmatos/essentials-claude-code · 40 tokens