python3-test-design
Installation
SKILL.md
Python Test Design Skill
Design Python tests under the shared rules in
/python-engineering:standards-for-python-development. Repository requirements and established
project gates take precedence. This skill adds Python/pytest-specific boundary and fixture guidance;
it does not create a second testing philosophy.
Decision order
- Establish the supported behavior, contract, callers/consumers, existing protection, and relevant failure consequence before deciding what test to retain.
- Separate direct validation of the current change from permanent regression protection.
- Prefer the highest stable contract boundary that still discriminates the consequential failure with acceptable cost and diagnostics.
- Keep unit tests TDD-sized: one small behavioral slice that survives behavior-preserving refactors.
- Do not mirror private helpers, branches, constants, incidental call counts, or decomposition unless those details are themselves authoritative contracts.
- Preserve an existing repository coverage/mutation gate. When none exists, do not invent one.