test-fixtures-factory
Installation
SKILL.md
Test Fixtures Factory
Generates a typed builder-pattern factory system for test entities — defaults that read like real data, overrides that don't require reconstructing the whole object.
Phase 1: Discovery
Extract before writing:
- Entity shapes — what types/interfaces need factories? Get their definitions.
- Language + test runner — TypeScript with Jest/Vitest, or plain JS?
- ORM/persistence — does the factory need a
.create()method that persists to DB, or just.build()for in-memory objects? - Related entities — do any entities reference others (e.g.,
Posthas anauthor: User)? Need to know nesting depth. - Existing tooling — is
fishery,@anatine/zod-mock, or similar already installed? Or building from scratch? - Unique field constraints — are any fields unique in the DB (email, slug)? These need sequence counters.
If the user pastes entity types, extract shape and relationships directly.