ln-635-test-isolation-auditor

Audits test isolation and anti-patterns to produce a JSON findings report.

534|73|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-635-test-isolation-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-635-test-isolation-auditor
Source: https://github.com/levnikolaevich/claude-code-skills/tree/main/ln-635-test-isolation-auditor
Command: npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-635-test-isolation-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill audits test isolation, determinism, and anti-patterns (6 categories) to ensure reliable and trustworthy tests.

Core Features & Use Cases

  • Detect external API calls, real DB, real FS usage in tests
  • Check for flaky tests and time/date determinism issues
  • Identify anti-patterns and provide remediation guidance
  • Output a JSON report with findings and recommended actions

Quick Start

Run ln-635-test-isolation-auditor to verify test isolation quality and anti-pattern presence.

Frequently Asked Questions about ln-635-test-isolation-auditor

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

FAQPage Schema
How do I detect flaky tests and test isolation issues in my test suite?

Test isolation auditing identifies external API calls, real database access, file system usage, and time/date dependencies that cause flaky or order-dependent tests. Run the auditor to scan your test suite, receive findings with severity levels, and get recommendations for fixing isolation violations.

What test anti-patterns does the auditor check for?

The auditor detects six anti-patterns across External APIs, Database, File System, Time/Date, Random, and Network categories. It scans for determinism violations, shared state, and dependencies that break test reliability, then returns a structured JSON report with remediation guidance.

Can I use test isolation auditing in my CI/CD pipeline?

Yes. The auditor runs as an L3 worker in the ln-630 coordinator pipeline, producing a compliance score (X/10) and structured findings JSON suitable for CI governance, automated gates, and integration with existing test workflows.

How does the auditor determine test determinism and flakiness?

The auditor performs rule-based detection using grep-like checks and mock inspection to identify non-deterministic behavior—time/date calls, random number generation, external dependencies—that cause tests to pass or fail inconsistently regardless of execution order.

What output and format do I get from the auditing process?

The auditor returns a JSON report containing detected findings, severity classifications, actionable recommendations, and a numeric compliance score. Results integrate directly into CI governance systems for automated decision-making and tracking.