What problem does it solve? Writing tests that actually catch regressions is hard: tests often mirror the implementation's assumptions, chase line coverage without real assertions, or flake due to shared database state and live network calls. This Skill enforces spec-driven, independently authored tests with verified failure phases, fault injection, and mutation-score quality gates. ## Core Features & Use Cases - Anti-Tautological TDD: Authors tests from immutable contracts (OpenAPI 3.1, Protobuf, Pact) before implementation, verifying a deterministic Red phase against baseline code. - Property-Based & Contract Testing: Verifies invariants like round-trip serialization and idempotency with Hypothesis or fast-check, and consumer-provider compatibility via PactV3 and can-i-deploy gates. - Chaos & Isolation: Injects latency and connection resets with Toxiproxy to verify circuit breakers, and runs Go Kratos services against ephemeral Testcontainers PostgreSQL with transactional rollbacks. - Use Case: When adding a new endpoint to a Go microservice, use this Skill to author failing spec-based tests first, spin up an isolated PostgreSQL container, inject network faults on downstream clients, and emit a test-report.json proving mutation score and race-freedom before release. ## Quick Start Use the write-tests skill to add regression coverage for my new payment endpoint, including property-based invariants and a contract test against the provider.