Red-Green-Refactor (TDD) Skill: TypeScript Edition This skill implements a structural framework for AI-assisted programming to ensure every line of code is verifiable, typed, and purposeful. The Three-Phase Cycle Phase 1: Red (Establish Failure) You must prove the feature does not exist and that your test is valid. 1. Write One Test : Create a single test case (e.g., in Vitest or Jest) for the next small piece of behavior. 2. Execute & Fail : Run the test. It must fail. 3. Verify : Ensure the failure is related to the missing logic (e.g., ) and not a configuration error. Phase 2: Green (Minim…