Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Test Data Factories?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-test-data-factories)
---
name: forge-test-data-factories
description: "Create test data with factories and builders: minimal valid defaults, explicit overrides and no shared fixtures"
---
<!-- Generated from catalog/skills/test-data-factories/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Test data factories
Tests should show only the data that matters to them.
## Factories
- One factory per model with minimal valid defaults (factory_bot, factory_boy, Fishery, test builders).
- Override only the fields the test is about; use sequences for unique values.
- Build in memory when persistence isn't needed; create in the DB only for integration tests.
## Isolation
- No shared mutable fixtures across tests; each test creates its own data.
- Wrap DB tests in transactions or truncate between tests.
## Verify
Run the suite in random order (and in parallel if supported) and confirm it passes.