What problem does it solve? TypeScript codebases often accumulate unsafe patterns like any annotations, unchecked index access, and unvalidated network data that silently undermine type safety. This Skill audits a TypeScript project against an opinionated four-layer baseline and produces a structured findings report plus an optional implementation plan. ## Core Features & Use Cases - Four-layer audit: Grades compiler configuration (strict flags, module resolution), type quality in source (any, as, @ts-ignore, non-null assertions), type system usage (discriminated unions, branded types, utility types), and type safety at IO boundaries (network, JSON.parse, forms, storage, environment variables). - Static-first with optional enrichment: Runs read-only static analysis by default, with an opt-in --with-run mode that parses tsc --noEmit diagnostics for real error counts and locations. - Structured outputs: Writes findings.md, findings.json (schema 2.0.0), snapshot.md, and metadata.json to .architect-audits/typescript-audit/, then offers to generate a descriptive implementation plan. - Use Case: Run the audit on a legacy React/TypeScript app to discover that noUncheckedIndexedAccess is disabled and three files exceed the any threshold, then generate a plan listing the exact tsconfig flags to flip and files to clean up. ## Quick Start Ask the assistant to run /typescript-audit on this repository and summarize the top type-safety gaps.