What problem does it solve? Writing tests in a Bun-based TypeScript repository is error-prone: module mocks leak across files in shared processes, Windows path and symlink behavior breaks CI, and misuse of the test_runner tool can stall the agent. This Skill encodes the repository's testing conventions so tests pass consistently on all three CI platforms. ## Core Features & Use Cases - Mock Isolation Rules: Enforces a three-tier mocking strategy (_test_exports, _internals DI seams, mock.module with spread-real-exports) to prevent cross-file mock pollution in Bun's shared module cache. - Cross-Platform Patterns: Covers Windows/macOS/Linux differences for paths, symlinks, temp directories, environment variable redirection (HOME, APPDATA, LOCALAPPDATA, XDG), and line-ending normalization. - CI Structure & File Placement: Documents the six-step CI pipeline, per-file isolation loops, naming conventions (.adversarial.test.ts), regression test format, and test_runner scope safety limits. - Use Case: Before adding a unit test for a new tool in src/tools/, load this Skill to choose the correct mock tier, place the file in tests/unit/tools/, and avoid the isolation bugs that previously caused hundreds of CI failures. ## Quick Start Load the writing-tests skill and help me write a bun:test unit test for my new module with proper mock isolation.