Install
openclaw skills install @xueyetianya/fixtureGenerate and manage test data fixtures using CLI templates. Use when creating seed data, mock records, or reproducible test datasets.
openclaw skills install @xueyetianya/fixtureA CLI tool for generating, managing, and exporting test data fixtures. Create reproducible datasets from templates with seeded randomness for consistent test environments.
bash shell~/.fixture/All fixtures are stored in JSONL format at ~/.fixture/data.jsonl. Templates are stored at ~/.fixture/templates.json.
Run commands via: bash scripts/script.sh <command> [arguments...]
Create a new fixture record with specified fields and values.
bash scripts/script.sh create --name "test_user" --type user --fields '{"name":"Alice","email":"alice@test.com","age":30}'
Arguments:
--name — Fixture name/label (required)--type — Fixture type/category (required)--fields — JSON object of field values (required)Load fixtures from a JSON or JSONL file into the fixture store.
bash scripts/script.sh load --file fixtures.json
bash scripts/script.sh load --file data.jsonl --format jsonl
Arguments:
--file — Input file path (required)--format — File format: json, jsonl (optional, default: auto-detect)Dump all fixtures or filtered subset to stdout or a file.
bash scripts/script.sh dump
bash scripts/script.sh dump --type user --output users.json
Arguments:
--type — Filter by fixture type (optional)--output — Output file path (optional, default: stdout)List all fixtures with summary information.
bash scripts/script.sh list
bash scripts/script.sh list --type user
Arguments:
--type — Filter by fixture type (optional)Generate multiple fixture records from a template with seeded random data.
bash scripts/script.sh seed --template user --count 10 --seed 42
Arguments:
--template — Template name to use (required)--count — Number of records to generate (required)--seed — Random seed for reproducibility (optional)Clear all fixtures or a specific type from the data store.
bash scripts/script.sh reset
bash scripts/script.sh reset --type user
Arguments:
--type — Only reset fixtures of this type (optional)--confirm — Skip confirmation prompt (optional)Manage fixture templates: create, list, or show template definitions.
bash scripts/script.sh template --list
bash scripts/script.sh template --create user --schema '{"name":"string","email":"email","age":"int:18-65"}'
bash scripts/script.sh template --show user
Arguments:
--list — List all templates (optional)--create — Create template with given name (optional)--schema — JSON schema for template creation (optional)--show — Show a specific template (optional)Validate fixtures against their template schema.
bash scripts/script.sh validate
bash scripts/script.sh validate --type user
Arguments:
--type — Validate only a specific type (optional)Export fixtures to various formats: JSON, JSONL, CSV, SQL.
bash scripts/script.sh export --output fixtures.csv --format csv
bash scripts/script.sh export --output seed.sql --format sql --table users
Arguments:
--output — Output file path (required)--format — Export format: json, jsonl, csv, sql (required)--table — Table name for SQL export (optional)Import fixtures from external sources or standard formats.
bash scripts/script.sh import --file data.csv --type user
Arguments:
--file — Input file path (required)--type — Assign fixture type (required)Display help information and list all available commands.
bash scripts/script.sh help
Display the current tool version.
bash scripts/script.sh version
# Create a template
bash scripts/script.sh template --create user --schema '{"name":"string","email":"email","age":"int:18-65"}'
# Seed 50 users
bash scripts/script.sh seed --template user --count 50 --seed 42
# List all fixtures
bash scripts/script.sh list
# Export to SQL
bash scripts/script.sh export --output seed.sql --format sql --table users
# Reset all data
bash scripts/script.sh reset --confirm
string, email, int:min-max, float:min-max, bool, uuid, datevalidate to check fixtures match their template schemaPowered by BytesAgain | bytesagain.com | hello@bytesagain.com