Initial commit
This commit is contained in:
56
skills/test-data-generator/SKILL.md
Normal file
56
skills/test-data-generator/SKILL.md
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
name: generating-test-data
|
||||
description: |
|
||||
This skill enables Claude to generate realistic test data for software development. It uses the test-data-generator plugin to create users, products, orders, and custom schemas for comprehensive testing. Use this skill when you need to populate databases, simulate user behavior, or create fixtures for automated tests. Trigger phrases include "generate test data", "create fake users", "populate database", "generate product data", "create test orders", or "generate data based on schema". This skill is especially useful for populating testing environments or creating sample data for demonstrations.
|
||||
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
This skill empowers Claude to generate realistic and diverse test data, streamlining software testing and development workflows. It leverages the test-data-generator plugin to produce data sets tailored to your specific needs, from user profiles to complex business transactions.
|
||||
|
||||
## How It Works
|
||||
|
||||
1. **Identify Data Requirements**: Claude analyzes your request to determine the type and volume of test data required (e.g., users, products, orders, custom schemas).
|
||||
2. **Generate Data**: Claude uses the test-data-generator plugin to create realistic test data based on your specifications.
|
||||
3. **Present Data**: Claude presents the generated data in a suitable format, such as JSON or a data file, ready for use in your testing environment.
|
||||
|
||||
## When to Use This Skill
|
||||
|
||||
This skill activates when you need to:
|
||||
- Generate a large number of realistic user profiles for testing authentication and authorization.
|
||||
- Create a dataset of products with varying attributes for testing e-commerce functionality.
|
||||
- Simulate order placements and transactions for performance testing and load testing.
|
||||
- Populate a database with realistic data for demonstration or training purposes.
|
||||
- Generate data that adheres to a specific schema or data model.
|
||||
|
||||
## Examples
|
||||
|
||||
### Example 1: Generating User Data
|
||||
|
||||
User request: "Generate 500 test users with realistic names, emails, and addresses."
|
||||
|
||||
The skill will:
|
||||
1. Invoke the test-data-generator plugin to create 500 user records.
|
||||
2. Populate each record with realistic names, email addresses, and physical addresses.
|
||||
3. Provide the generated data in JSON format.
|
||||
|
||||
### Example 2: Creating Product Data
|
||||
|
||||
User request: "Create product test data including name, description, price, and category for 100 different products."
|
||||
|
||||
The skill will:
|
||||
1. Utilize the test-data-generator plugin to generate 100 product records.
|
||||
2. Populate each product with relevant details like name, description, price, and category.
|
||||
3. Deliver the data in a structured format suitable for database insertion.
|
||||
|
||||
## Best Practices
|
||||
|
||||
- **Schema Definition**: Provide a clear schema or data model when generating custom data to ensure accuracy and consistency.
|
||||
- **Locale Considerations**: Specify the desired locale when generating data that is sensitive to regional variations (e.g., names, addresses, phone numbers).
|
||||
- **Seed Values**: Use seed values for reproducible test data generation, ensuring consistency across multiple runs.
|
||||
|
||||
## Integration
|
||||
|
||||
This skill can be integrated with other plugins, such as database management tools, to directly populate databases with the generated test data. It can also be used in conjunction with API testing tools to generate realistic request payloads.
|
||||
7
skills/test-data-generator/assets/README.md
Normal file
7
skills/test-data-generator/assets/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Assets
|
||||
|
||||
Bundled resources for test-data-generator skill
|
||||
|
||||
- [ ] example_schemas/: A directory containing example JSON schemas for different data types.
|
||||
- [ ] example_data/: A directory containing example generated data for different data types.
|
||||
- [ ] configuration_templates/: Templates for configuring the data generation process (e.g., number of records, data types).
|
||||
7
skills/test-data-generator/references/README.md
Normal file
7
skills/test-data-generator/references/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# References
|
||||
|
||||
Bundled resources for test-data-generator skill
|
||||
|
||||
- [ ] data_schemas.md: Documentation of common data schemas used for generating test data (e.g., user schema, product schema).
|
||||
- [ ] faker_providers.md: Documentation of custom Faker providers used for generating realistic data.
|
||||
- [ ] test_data_best_practices.md: Best practices for generating effective test data.
|
||||
7
skills/test-data-generator/scripts/README.md
Normal file
7
skills/test-data-generator/scripts/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Scripts
|
||||
|
||||
Bundled resources for test-data-generator skill
|
||||
|
||||
- [ ] generate_data.py: A script to generate test data based on provided schema or pre-defined types (users, products, orders).
|
||||
- [ ] validate_data.py: A script to validate generated data against a schema or set of rules.
|
||||
- [ ] seed_database.py: A script to seed a database with the generated test data.
|
||||
Reference in New Issue
Block a user