test-organize-layers
Installation
SKILL.md
Organize Test Layers
Purpose
Ensure new tests are placed in the correct test pyramid layer based on dependencies, mocking patterns, and scope. Prevents anti-patterns like unit tests with real databases or e2e tests with excessive mocking.
When to Use
Use this skill when:
- Creating new test files - Determining correct test layer placement
- Deciding test layer - Choosing between unit, integration, or e2e
- Organizing test structure - Structuring test directories by layer
- Determining fixture scope - Deciding function vs session scope fixtures
- Reviewing test architecture - Validating tests are in correct layers
- Refactoring tests - Moving tests to appropriate layers
Related skills