Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action> sub-command pattern. Git-flow consolidated from 8→5 commands (commit variants absorbed into --push/--merge/--sync flags). Dispatch files, name: frontmatter, and cross-reference updates for all plugins. Phase 2: Design documents for 8 new plugins in docs/designs/. Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate, saas-react-platform, saas-test-pilot, data-seed, ops-release-manager, ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents, skills, README, and claude-md-integration. Marketplace grows from 12→20. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.3 KiB
2.3 KiB
name, description
| name | description |
|---|---|
| test fixtures | Generate or manage test fixtures, factories, and mock data |
/test fixtures
Generate and organize test fixtures, factories, and mock data.
Visual Output
+----------------------------------------------------------------------+
| TEST-PILOT - Fixtures |
+----------------------------------------------------------------------+
Usage
/test fixtures <action> [<target>]
Actions:
generate <model/schema>— Create fixture/factory for a data modellist— Show existing fixtures and their usageaudit— Find unused or duplicate fixturesorganize— Restructure fixtures into standard layout
Skills to Load
- skills/fixture-management.md
- skills/mock-patterns.md
Process
Generate
-
Analyze Target Model
- Read model/schema definition (ORM model, Pydantic, TypeScript interface)
- Map field types, constraints, and relationships
- Identify required vs optional fields
-
Create Fixture
- Python: generate conftest.py fixture or factory_boy factory
- JavaScript: generate factory function or test helper
- Include realistic sample data (not just "test123")
- Handle relationships (foreign keys, nested objects)
- Create variants (minimal, full, edge-case)
-
Place Fixture
- Follow project conventions for fixture location
- Add to appropriate conftest.py or fixtures directory
- Import from shared location, not duplicated per test
List
- Scan test directories for fixture definitions
- Map each fixture to its consumers (which tests use it)
- Display fixture tree with usage counts
Audit
- Find fixtures with zero consumers
- Detect duplicate/near-duplicate fixtures
- Identify fixtures with hardcoded data that should be parameterized
Output Format
## Fixture: UserFactory
### Generated for: models.User
### Location: tests/conftest.py
### Variants
- user_factory() — standard user with defaults
- admin_factory() — user with is_admin=True
- minimal_user() — only required fields
### Fields
| Field | Type | Default | Notes |
|-------|------|---------|-------|
| email | str | faker.email() | unique |
| name | str | faker.name() | — |
| role | enum | "viewer" | — |