What problem does it solve? Integration and unit tests that mutate module-level singletons, environment variables, or shared i18n state leak those mutations into later tests, causing assertions that pass only in one execution order and previously green tests to break when a new case is added. ## Core Features & Use Cases - State Reset Pattern: Restores process.env, singleton bindings, and shared i18n language in a single afterEach hook so every test runs against clean state. - Test Splitting and Precedence Pinning: Splits merged tests that encode ordering dependencies and writes dedicated cases that pin fallback-chain precedence (explicit ?? bound ?? env). - Repository Shape Guidance: Adapts the isolation rules for React SPA, Next.js app, and component-library shapes based on profile keys like framework.di and architecture.source_root. - Use Case: A locale formatter integration test binds a language source and changes the i18n language; without an afterEach reset, every later test formats against the wrong locale. This Skill rewrites the file so each behaviour has its own case and all mutations are reversed. ## Quick Start Ask the AI to fix an integration test file where adding a new test breaks a previously green sibling due to leaked singleton or environment state.