# Module Test Isolation

> Document the discipline of isolating module-level mutable state in tests. Use when adding tests that touch global registries, singletons, or class attributes. Prevents test pollution that surfaces only in combined pytest sessions. Adapter pointing to the canonical repo skill; refer to that for the full protocol.

- Skill: `zaxbyhub/module-test-isolation-2` (Agent Skill)
- Install (CLI): `npx get-skill add zaxbyhub/module-test-isolation-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zaxbyhub/module-test-isolation-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zaxbyhub (https://skillmd.com/u/zaxbyhub)
- Updated: 2026-11-11
- Page: https://skillmd.com/skills/zaxbyhub/module-test-isolation-2

---


# module test isolation (Claude Code adapter)

This is a thin pointer to the canonical skill at
`.agents/skills/module-test-isolation/SKILL.md`. Claude Code runners should load the canonical SKILL.md
there for the full protocol; this adapter exists only so Claude Code's
`.claude/skills/` discovery finds the skill.

Canonical tree for repo-specific skills: `.agents/skills/` (see
`docs/engineering/skill-conventions.md`).

