db-seed

db-seed is a skill for Claude Code from jezweb/claude-skills. It costs 96 tokens per session (1,966 once invoked), scanned A, original, MIT.

A skill for creating database seed scripts, which fill a development, demo, or test database with sample records. It reads database schemas or migrations and accounts for table relationships and constraints.

In plain words
What is it for?
Generating TypeScript or SQL seed files with realistic sample data for Drizzle, D1, SQLite, Prisma, or raw SQL projects.
Why use it?
It avoids manually inventing and entering test data in an order that would break required links between tables.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import * as schema from '../src/db/schema';.

Part of the cloudflare plugin — 8 skills, 8 commands shipped together

not rated 1.0krepo +4 2mo ago A scan Socket: passSnyk: passSkillSpector: warn 96 tokens original MIT

Good fit Generating TypeScript or SQL seed files with realistic sample data for Drizzle, D1, SQLite, Prisma, or raw SQL projects.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jezweb/claude-skills
agentmods
npx agentmods add skills/jezweb/claude-skills/db-seed

Made for: Claude Code.

Or install cloudflare, the plugin that ships this one along with the rest of its 8 skills, 8 commands.

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 db-seed

README.md
[![agentmods](https://agentmods.dev/badge/skills/jezweb/claude-skills/db-seed/github.svg)](https://agentmods.dev/skills/jezweb/claude-skills/db-seed)
Your own site
<a href="https://agentmods.dev/skills/jezweb/claude-skills/db-seed"><img src="https://agentmods.dev/badge/skills/jezweb/claude-skills/db-seed/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for db-seed

Your own site · 80×15
<a href="https://agentmods.dev/skills/jezweb/claude-skills/db-seed"><img src="https://agentmods.dev/badge/skills/jezweb/claude-skills/db-seed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,966 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. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 18 Mar 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 151
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 166
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00096 $0.01966
Opus 5 $0.00048 $0.00983
Sonnet 5 $0.00019 $0.00393
Haiku 4.5 $0.00010 $0.00197

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

Security

Grade A, and why

db-seed 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 10d 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.

plugins/cloudflare/skills/db-seed/SKILL.md · 221 lines

How it starts

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

Database Seed Generator

Generate seed scripts that populate databases with realistic, domain-appropriate sample data. Reads your schema and produces ready-to-run seed files.

Workflow

1. Find the Schema

Scan the project for schema definitions:

Source Location pattern
Drizzle schema src/db/schema.ts, src/schema/*.ts, db/schema.ts
D1 migrations drizzle/*.sql, migrations/*.sql
Raw SQL schema.sql, db/*.sql
Prisma prisma/schema.prisma

Read all schema files. Build a mental model of:

  • Tables and their columns
  • Data types and constraints (NOT NULL, UNIQUE, DEFAULT)
  • Foreign key relationships (which tables reference which)
  • JSON fields stored as TEXT (common in D1/SQLite)

2. Determine Seed Parameters

Ask the user:

Parameter Options Default
Purpose dev, demo, testing dev
Volume small (5-10 rows/table), medium (20-50), large (100+) small
Domain context "e-commerce store", "SaaS app", "blog", etc. Infer from schema
Output format TypeScript (Drizzle), raw SQL, or both Match project's ORM

Purpose affects data quality:

  • dev: Varied data, some edge cases (empty fields, long strings, unicode)
  • demo: Polished data that looks good in screenshots and presentations
  • testing: Systematic data covering boundary conditions, duplicates, special characters

3. Plan Insert Order

Build a dependency graph from foreign keys. Insert parent tables before children.

Example order for a blog schema:

1. users        (no dependencies)
2. categories   (no dependencies)
3. posts        (depends on users, categories)
4. comments     (depends on users, posts)
5. tags         (no dependencies)
6. post_tags    (depends on posts, tags)

Circular dependencies: If table A references B and B references A, use nullable foreign keys and insert in two passes (insert with NULL, then UPDATE).

4. Generate Realistic Data

Read the full file on GitHub · 221 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. 10d ago First seen · 221 lines · 96 tokens per session scan A aac1cee67f24

Subscribe to this mod's changes

db-seed is a skill published in the GitHub repository jezweb/claude-skills (1,000 stars, last pushed 2mo ago), licensed MIT. It adds 96 tokens to every session and 1,966 once invoked, about $0.0005 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-30.