Génération de données de test

Génère et insère des données réalistes dans une application web via une API, en découvrant le modèle depuis une spécification OpenAPI.

Spar Skills Guide Bot
TestingIntermédiaire
1022/07/2026
Claude CodeCursorWindsurfCopilotCodex
#testing#data-seeding#openapi#fake-data#test-data

Recommandé pour

/siteseed

Seed a web app with realistic test data. Discovers the app's data model from an OpenAPI spec (or UI forms as fallback), generates fake data respecting field types and entity relationships, and inserts it via API calls.

Usage

/siteseed <openapi-url> [--count N] [--auth HEADER]
/siteseed <seed-plan.yaml>
/siteseed discover <openapi-url>

Instructions

When this skill is invoked:

  1. If given an OpenAPI URL, run discovery + seed in one step:

    npx siteseed run --openapi <url> --auto --count 5
    
  2. If given a seed plan YAML file, execute it:

    npx siteseed run <plan.yaml>
    
  3. If given discover, just output the entity graph without seeding:

    npx siteseed discover --openapi <url>
    
  4. If auth is needed, pass it:

    npx siteseed run --openapi <url> --auto --auth "Bearer $TOKEN"
    

Examples

/siteseed https://app.example.com/api/openapi.json
/siteseed https://app.example.com/api/openapi.json --count 10 --auth "Bearer abc123"
/siteseed discover https://api.example.com/v1/openapi.json
/siteseed seed-plan.yaml
Skills similaires