Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ln-723-seed-data-generator

БесплатноБез исполняемых скриптовНе проверен

Universal seed data generator: MIGRATE from ORM schemas or GENERATE from entity definitions to any target format

tensologyот tensology★ 17 звёзд на GitHub

Об этом скилле

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-723-seed-data-generator

Type: L3 Worker Category: 7XX Project Bootstrap Parent: ln-720-structure-migrator

Universal seed data generator with two modes: MIGRATE (parse existing ORM schemas) or GENERATE (create from entity definitions). Outputs to any target format (C#, TypeScript, Python, JSON, SQL).


Purpose & Scope

Aspect Description
Input ORM schema files (MIGRATE) or entity list (GENERATE)
Output Seed data files in target format
Modes MIGRATE: parse existing ORM → seed data. GENERATE: entity definitions → seed data

Scope boundaries:

  • Parses ORM schema definitions or accepts entity lists
  • Generates seed data in requested target format
  • Creates realistic sample data using faker libraries
  • Does not generate database migrations, EF Core configs, or ORM models

Mode Selection

Mode When Input Source
MIGRATE TRANSFORM pipeline — existing ORM schemas found ORM schema files Drizzle, Prisma, TypeORM, EF Core, SQLAlchemy, Django ORM
GENERATE CREATE pipeline — no existing schemas Entity list from ln-700 Phase 0 User-provided or starter template (User, Role)

If GENERATE mode receives no entity list, generate starter template with User (id, name, email, role, createdAt) and Role (id, name, description).


Target Formats

Format Output File Faker Library Use Case
C# MockData MockData.cs Bogus .NET projects
TypeScript fixtures seed.ts Faker.js Node/React projects
Python factories factories.py Faker (Python) Django/Flask projects
JSON seed.json — API testing, import scripts
SQL seed.sql — Direct DB seeding

Workflow

Phase Name Actions Output
1 Parse/Define 1A: Parse ORM schema (MIGRATE) or 1B: Accept entity list (GENERATE) Entity model
2 Map Types Apply universal type mapping to target format Target type definitions
3 Generate Seed Data Create seed files with faker-based realistic data Seed data files
4 Verify Validate relationships, check syntax Valid seed files

Phase 1: Parse/Define

1A: MIGRATE Mode — Parse ORM Schema

Step Action Reference
1A.1 Locate schema file(s) —
1A.2 Auto-detect ORM type orm_patterns.md — ORM Auto-Detection table
1A.3 Extract table/model definitions orm_patterns.md — per-ORM parsing section
1A.4 Extract column definitions with types orm_patterns.md
1A.5 Identify constraints (PK, FK, nullable, unique) orm_patterns.md
1A.6 Extract enum definitions orm_patterns.md

1B: GENERATE Mode — Accept Entity Definitions

Step Action Reference
1B.1 Receive entity list from orchestrator (or use starter template) —
1B.2 Parse entity definitions (name, fields, types) —
1B.3 Infer relationships from field names (userId → FK to User) relationship_mapping.md
1B.4 Apply default constraints (id = PK, *Id = FK) —

Output: Entity model with columns, types, and constraints.


Phase 2: Map Types

Convert entity types to target format types.

Step Action Reference
2.1 Select target format (from orchestrator params) —
2.2 Map column types to target format type_mapping.md — Universal Type Mapping table
2.3 Determine nullable status per target type_mapping.md
2.4 Map foreign keys and relationships relationship_mapping.md
2.5 Transform names to target convention See Name Conventions table below

Name Conventions by Target:

Target Class/Model Property/Field File
C# PascalCase singular PascalCase PascalCase.cs
TypeScript PascalCase singular camelCase camelCase.ts
Python PascalCase singular snake_case snake_case.py
JSON camelCase camelCase kebab-case.json
SQL snake_case plural snake_case snake_case.sql

Phase 3: Generate Seed Data

Create seed files with realistic data using faker libraries.

Step Action Reference
3.1 Determine generation order (parents → children) relationship_mapping.md
3.2 Generate IDs (GUIDs/UUIDs) for all entities data_generation.md
3.3 Generate field values using faker data_generation.md, type_mapping.md — Faker Integration
3.4 Ensure FK relationships valid (child references existing parent ID) relationship_mapping.md
3.5 Write seed file in targ
Полный SKILL.md на GitHub

Установить ln-723-seed-data-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/data_generation.mdreferences/orm_patterns.mdreferences/relationship_mapping.mdreferences/type_mapping.md

FAQ

Что делает скилл ln-723-seed-data-generator?

Universal seed data generator: MIGRATE from ORM schemas or GENERATE from entity definitions to any target format

Как установить скилл ln-723-seed-data-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ln-723-seed-data-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ln-723-seed-data-generator с