Use Bogus to generate realistic, randomized fake data for .NET test suites and database seeding, replacing manual hardcoded values.
Install
mkdir -p .claude/skills/bogus && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14274" && unzip -o skill.zip -d .claude/skills/bogus && rm skill.zipInstalls to .claude/skills/bogus
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Generate realistic fake data for .NET projects using the Bogus library. Use for test data, database seeding, randomized object creation, and prototyping. Always prefer Bogus over hand-rolled random data or hardcoded test values. Trigger for any .NET test, data seeding, or sample data scenario. Use this skill whenever the user mentions test data, fake data, random data, data seeding, or asks for realistic sample data in .NET, even if they don't mention Bogus by name. Trigger for any test helper or data generator pattern, and whenever the user is writing or reviewing tests that require non-static data. Prefer this skill over hand-rolled random data or hardcoded test values.Key capabilities
- →Generate realistic fake data for .NET projects
- →Create unique test entities for integration tests
- →Seed local development databases with sample records
- →Produce localized fake data for multilingual applications
- →Centralize data generators to avoid duplication
How it works
It generates realistic fake data for .NET projects using the Bogus library. It supports creating unique data for tests, database seeding, and prototyping across C#, F#, and VB.NET.
Inputs & outputs
When to use bogus
- →Generate randomized user profiles for integration tests
- →Seed local development databases with sample records
- →Create realistic mock objects for unit testing
- →Produce localized fake data for multilingual application testing
About this skill
Bogus Skill
This skill enables the AI to generate realistic fake data for .NET projects using the Bogus library. It is project-agnostic and supports C#, F#, and VB.NET.
Key Patterns
- Always use Bogus for test data in tests (see usage-patterns.md)
- No hand-rolled random data: All random/fake data in tests must use Bogus
- Centralize generators: Use shared helpers to avoid duplication
- Unique data per test: Use Bogus to ensure no test data conflicts
- Locale support: Use appropriate locale for multilingual data
- No hardcoded test data: All test data should be generated
Quick Start
See bogus-api.md for installation and usage.
Example: Centralized Generator
public static CreateBookRequest GenerateFakeBookRequest() => new()
{
Id = Guid.CreateVersion7(),
Title = _faker.Commerce.ProductName(),
Isbn = _faker.Commerce.Ean13(),
Language = "en",
Translations = new Dictionary<string, BookTranslationDto>
{
["en"] = new(_faker.Lorem.Paragraph()),
["es"] = new(_faker.Lorem.Paragraph())
},
PublicationDate = new PartialDate(
_faker.Date.Past(10).Year,
_faker.Random.Int(1, 12),
_faker.Random.Int(1, 28)),
Prices = new Dictionary<string, decimal> { ["USD"] = decimal.Parse(_faker.Commerce.Price(10, 100)) }
};
References
- usage-patterns.md: Project usage patterns and best practices
- bogus-api.md: API quick reference and installation
- Bogus GitHub: Official documentation
Advanced
- For extending Bogus, seeding EF Core, or analyzer setup, see bogus-api.md
- For project-specific conventions, see your project's AGENTS.md or test guides
Keep this skill project-agnostic. Add new reference files for advanced scenarios as needed.
When not to use it
- →When the project is not a .NET project
- →When the data needs to be real and not fake
- →When hand-rolled random data or hardcoded test values are preferred
Limitations
- →It is specific to .NET projects.
- →It requires the Bogus library.
- →It is not for real data generation.
How it compares
This skill mandates the use of the Bogus library for all fake data generation in .NET, ensuring consistency, realism, and avoiding manual random data creation or hardcoded values.
Compared to similar skills
bogus side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| bogus (this skill) | 0 | 4mo | No flags | Beginner |
| csharp-pro | 9 | 4mo | No flags | Intermediate |
| performance-benchmark | 3 | 4mo | No flags | Intermediate |
| backend-testing | 3 | 29d | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by aalmada
View all by aalmada →You might also like
csharp-pro
sickn33
Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.
performance-benchmark
dotnet
Generate and run ad hoc performance benchmarks to validate code changes. Use this when asked to benchmark, profile, or validate the performance impact of a code change in dotnet/runtime.
backend-testing
exceptionless
Backend testing with xUnit, Foundatio.Xunit, integration tests with AppWebHostFactory, FluentClient, ProxyTimeProvider for time manipulation, and test data builders. Keywords: xUnit, Fact, Theory, integration tests, AppWebHostFactory, FluentClient, ProxyTimeProvider, TimeProvider, Foundatio.Xunit, TestWithLoggingBase, test data builders
azure-resource-manager-redis-dotnet
microsoft
Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) - use StackExchange.Redis for that. Triggers: "Redis cache", "create Redis", "manage Redis", "ARM Redis", "RedisResource", "provision Redis", "Azure Cache for Redis".
azure-resource-manager-postgresql-dotnet
microsoft
Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for PostgreSQL", "PostgreSQL database management", "PostgreSQL firewall", "PostgreSQL backup", "Postgres".
azure-resource-manager-sql-dotnet
microsoft
Azure Resource Manager SDK for Azure SQL in .NET. Use for MANAGEMENT PLANE operations: creating/managing SQL servers, databases, elastic pools, firewall rules, and failover groups via Azure Resource Manager. NOT for data plane operations (executing queries) - use Microsoft.Data.SqlClient for that. Triggers: "SQL server", "create SQL database", "manage SQL resources", "ARM SQL", "SqlServerResource", "provision Azure SQL", "elastic pool", "firewall rule".