Audit Type Ownership

•
81
•

Audits TypeScript type ownership and boundary placement to prevent architectural leakage and maintain clean repository structure.

The Audit Type Ownership skill is designed for developers managing complex TypeScript monorepos to maintain strict layered architecture. It systematically scans packages for misplaced or duplicated types, identifies leakage between query and service layers, and monitors root export surfaces. By leveraging a heuristic inventory script and comparing findings against defined architectural specs, it helps categorize types into contracts, query layers, or service layers, ensuring that internal logic and public-facing DTOs remain properly encapsulated and correctly located.

Key Features

01Automated inventory of interface and type declarations across multiple packages
0281 GitHub stars
03Generation of phased refactor plans and move lists for architectural cleanup
04Detection of query/service layer leakage and type-placement violations
05Identification of duplicate type names and cross-package dependency conflicts
06Layer-based classification of types into contracts, persistence, and service categories

Use Cases

01Reviewing large monorepos for architectural drift and misplaced TypeScript types
02Planning phased refactors to migrate shared types into dedicated contract packages
03Validating that internal service-layer types haven't leaked into public API signatures