test-isolation-slot-hygiene

Detect and eliminate leaked state between simulation test runs for clean-room execution.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Hawi254/transport_tycoon_sim --skill test-isolation-slot-hygiene
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-isolation-slot-hygiene
Source: https://github.com/Hawi254/transport_tycoon_sim/tree/main/.agent/skills/test-isolation-slot-hygiene
Command: npx skills add https://github.com/Hawi254/transport_tycoon_sim --skill test-isolation-slot-hygiene

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Enforces clean-room test execution while coding by detecting and eliminating leaked state (saved slots, snapshots, caches, temp dirs) using terminal access. Automatically used when writing/modifying simulation tests, diagnosing flakiness, or changing persistence/replay logic. Supports authoring helper scripts to standardize isolation.

Core Features & Use Cases

  • Detect leaked state across test runs (slots, snapshots, caches, WALs) and enforce clean-room execution.
  • Standardize artifact locations and improve test repeatability across CI and local runs.
  • Use when debugging flaky tests or when modifying persistence/replay logic to prevent cross-run contamination.

Quick Start

Run the hygiene workflow to initialize a clean per-test run environment and execute tests with isolation checks.

Frequently Asked Questions about test-isolation-slot-hygiene

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect leaked state causing flaky tests in simulation projects?

Test isolation prevents cross-run contamination by detecting leaked state like saved slots, snapshots, caches, and temp dirs between executions. This skill enforces clean-room isolation by automating artifact discovery and standardizing locations to guarantee repeatable results.

Why does my test pass locally but fail in CI due to cross-run contamination?

Cross-run contamination occurs when leaked state like saved slots or caches persist between test executions. This skill enforces clean-room isolation by automating terminal-based artifact discovery and standardizing locations to ensure repeatable results across CI and local runs.

How do I enforce clean-room test execution when modifying persistence or replay logic?

Enforce clean-room test execution by running a hygiene workflow that initializes a clean per-test environment and applies isolation checks. This prevents leaked state from persistence or replay logic from contaminating subsequent test runs.

What's the best way to standardize test artifact locations for reproducibility?

Standardize test artifact locations by authoring helper scripts that automate hygiene and enforce per-run isolation. This approach ensures repeatable results by preventing cross-run contamination from misplaced slots, snapshots, caches, and temp directories.

Can I use terminal-based scripts to automate test isolation checks?

Yes, you can use terminal-based scripts to automate test isolation checks. This skill provides helper scripts for hygiene automation, allowing you to discover leaked artifacts and enforce clean-room execution during test authoring and debugging.

When do I need to apply slot hygiene automation in my testing workflow?

Apply slot hygiene automation during test authoring, when debugging flaky tests, or when modifying slot registry logic. It is essential whenever leaked state from previous runs threatens the repeatability and clean-room execution of your simulation tests.