Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

ln-723-seed-data-generatorln 723 种子数据生成器

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

6,365

周安装

255

GitHub Stars

437

下载量

2,060
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ln-723-seed-data-generator(ln 723 种子数据生成器)
来源仓库:https://github.com/levnikolaevich/claude-code-skills
仓库路径:skills/ln-723-seed-data-generator
安装命令:
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-723-seed-data-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-723-seed-data-generator

简介

用于辅助数据整理、表格处理和指标计算。

  • 适合清洗字段、汇总数据或发现异常值。
  • 使用时需确认数据来源、字段含义和时间范围。
  • 避免把样本数据当作全量事实使用。ln-723-seed-data-generator 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 涉及敏感数据时应先确认脱敏和权限边界。

SKILL.md

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. If shared/ is missing, fetch files via WebFetch from https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.

ln-723-seed-data-generator

Type: L3 Worker Category: 7XX Project Bootstrap

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

AspectDescription
InputORM schema files (MIGRATE) or entity list (GENERATE)
OutputSeed data files in target format
ModesMIGRATE: 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

ModeWhenInputSource
MIGRATETRANSFORM pipeline — existing ORM schemas foundORM schema filesDrizzle, Prisma, TypeORM, EF Core, SQLAlchemy, Django ORM
GENERATECREATE pipeline — no existing schemasEntity list from ln-700 Phase 0User-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

FormatOutput FileFaker LibraryUse Case
C# MockDataMockData.csBogus.NET projects
TypeScript fixturesseed.tsFaker.jsNode/React projects
Python factoriesfactories.pyFaker (Python)Django/Flask projects
JSONseed.jsonAPI testing, import scripts
SQLseed.sqlDirect DB seeding

Workflow

PhaseNameActionsOutput
1Parse/Define1A: Parse ORM schema (MIGRATE) or 1B: Accept entity list (GENERATE)Entity model
2Map TypesApply universal type mapping to target formatTarget type definitions
3Generate Seed DataCreate seed files with faker-based realistic dataSeed data files
4VerifyValidate relationships, check syntaxValid seed files

Phase 1: Parse/Define

1A: MIGRATE Mode — Parse ORM Schema

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

1B: GENERATE Mode — Accept Entity Definitions

StepActionReference
1B.1Receive entity list from orchestrator (or use starter template)
1B.2Parse entity definitions (name, fields, types)
1B.3Infer relationships from field names (userId → FK to User)relationship_mapping.md
1B.4Apply 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.

StepActionReference
2.1Select target format (from orchestrator params)
2.2Map column types to target formattype_mapping.md — Universal Type Mapping table
2.3Determine nullable status per targettype_mapping.md
2.4Map foreign keys and relationshipsrelationship_mapping.md
2.5Transform names to target conventionSee Name Conventions table below

Name Conventions by Target:

TargetClass/ModelProperty/FieldFile
C#PascalCase singularPascalCasePascalCase.cs
TypeScriptPascalCase singularcamelCasecamelCase.ts
PythonPascalCase singularsnake_casesnake_case.py
JSONcamelCasecamelCasekebab-case.json
SQLsnake_case pluralsnake_casesnake_case.sql

Phase 3: Generate Seed Data

Create seed files with realistic data using faker libraries.

StepActionReference
3.1Determine generation order (parents → children)relationship_mapping.md
3.2Generate IDs (GUIDs/UUIDs) for all entitiesdata_generation.md
3.3Generate field values using fakerdata_generation.md, type_mapping.md — Faker Integration
3.4Ensure FK relationships valid (child references existing parent ID)relationship_mapping.md
3.5Write seed file in target format

Faker integration rule: All generated seed files MUST use faker libraries for realistic data with deterministic seeding (fixed seed value for reproducibility).

TargetFaker Setup
C#var faker = new Bogus.Faker(); Randomizer.Seed = new Random(42);
TypeScriptimport {faker} from '@faker-js/faker'; faker.seed(42);
Pythonfrom faker import Faker; fake = Faker(); Faker.seed(42)

Generation order by dependency:

OrderEntity TypeGenerate After
1Root entities (no FK)First
2First-level childrenParents exist
3Second-level childrenGrandparents exist
NDeepest childrenAll ancestors exist

Phase 4: Verify

CheckMethodExpected
Syntax validLanguage-specific checkNo syntax errors
FKs validCross-referenceAll FKs point to existing IDs
Types correctType analysisProper types for target format
Names follow conventionPattern checkPer-target naming convention
Faker deterministicRe-run with same seedIdentical output

Supported ORM Detection

ORMDetection PatternEcosystem
DrizzlepgTable(), mysqlTable(), sqliteTable()Node.js
Prismamodel X { syntax in .prisma filesNode.js
TypeORM@Entity(), @Column() decoratorsNode.js
EF CoreDbContext, DbSet<>, [Table] attributes.NET
SQLAlchemyBase = declarative_base(), Column()Python
Django ORMmodels.Model, models.CharField()Python

Entity Transformation Rules

SourceTargetTransformation
Table name (plural, snake)Class name (singular, Pascal)user_profilesUserProfile
Column name (snake)Property name (target convention)created_atCreatedAt / createdAt / created_at
Enum nameEnum type (Pascal)status_enumStatusEnum
FK columnNavigation propertyuser_idUserId / userId

Sample Data Guidelines

Field TypeSample CountDistribution
Root entities3-5 itemsVaried status/priority
Child entities5-10 itemsDistributed across parents
Leaf entities10-20 itemsRealistic variety

Critical Rules

  • Single Responsibility: Generate only seed data, no ORM models or migrations
  • Idempotent: Can re-run with same seed to produce identical output
  • Valid Relationships: All FKs must reference existing parent IDs
  • Faker Required: Use faker libraries for realistic data, never random strings
  • Deterministic Seeding: Fixed seed value (42) for reproducibility across re-runs
  • Generation Order: Parents before children, always
  • Mode Awareness: MIGRATE parses files; GENERATE accepts definitions — never mix

Definition of Done

  • Mode determined (MIGRATE or GENERATE)
  • Entity model extracted/defined with all fields and constraints
  • Target format selected and type mappings applied
  • Seed data files generated with faker-based realistic values
  • Deterministic seeding verified (re-run produces identical output)
  • Foreign keys reference valid parent IDs
  • Names follow target format conventions
  • Sample data includes 5-10 items per entity

Risk Mitigation

RiskDetectionMitigation
Unknown ORM typeAuto-detection failsLog warning, ask orchestrator for ORM hint
Invalid type mappingUnknown column typeUse string as fallback, log warning
FK mismatchFK references non-existent IDGenerate parents first, validate after
No entity list in GENERATEEmpty inputUse starter template (User, Role)
Name collisionDuplicate class/table namesPrefix with feature name
Circular referencesSelf-referencing with cyclesLimit depth, validate graph

Reference Files

FilePurpose
references/orm_patterns.mdORM auto-detection and schema parsing patterns (Drizzle, Prisma, TypeORM, EF Core, SQLAlchemy, Django)
references/type_mapping.mdUniversal type mapping (ORM-agnostic → C#, TypeScript, Python) + Faker integration
references/data_generation.mdRealistic sample data patterns and generation rules
references/relationship_mapping.mdFK handling, generation order, relationship inference

Version: 3.0.0 Last Updated: 2026-02-07

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.91%
按下载量换算781

Claude

26.59%
按下载量换算548

Cursor

17.99%
按下载量换算371

Gemini CLI

8.43%
按下载量换算174

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills