API Contract Auditor
Audits API contracts and service boundaries to identify architectural leakage and ensure consistent DTO usage.
The API Contract Auditor is a specialized architectural worker designed to maintain clean layer separation in backend applications. It scans method signatures and service boundaries to detect critical issues such as HTTP types leaking into service layers, ORM entities being exposed directly to API consumers, and inconsistent error-handling patterns. By enforcing the use of Data Transfer Objects (DTOs) and identifying 'architectural honesty' violations—like read-only functions performing write operations—it helps developers maintain a robust, AI-ready architecture that is easy to scale and maintain.
主な機能
01Identifies missing DTOs for complex method signatures
021 GitHub stars
03Generates detailed architectural health scores and reports
04Enforces consistent error contract patterns across the codebase
05Detects layer leakage including HTTP types in domain services
06Prevents entity leakage from the database to the API layer
ユースケース
01Ensuring new features adhere to Domain-Driven Design (DDD) layer boundaries
02Performing architectural reviews of legacy codebases to identify technical debt
03Auditing service-to-API dependencies during major refactoring projects