ln-643-api-contract-auditor

Audit API contracts for layer leakage and DTO usage in Python and TypeScript.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/mcauduro0/Macro_Trading --skill ln-643-api-contract-auditor-mcauduro0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-643-api-contract-auditor
Source: https://github.com/mcauduro0/Macro_Trading/tree/main/.claude/skills/ln-643-api-contract-auditor
Command: npx skills add https://github.com/mcauduro0/Macro_Trading --skill ln-643-api-contract-auditor-mcauduro0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies critical issues in API contracts, such as layer leakage, missing data transfer objects (DTOs), and inconsistent error handling, ensuring robust and maintainable service boundaries.

Core Features & Use Cases

  • API Contract Auditing: Analyzes method signatures, DTO usage, and error patterns at service boundaries.
  • Layer Leakage Detection: Identifies when HTTP-specific types or concerns leak into service or domain layers.
  • DTO Enforcement: Checks for the appropriate use of DTOs to encapsulate data, preventing entity leakage.
  • Error Contract Consistency: Ensures uniform error handling strategies across services.
  • Use Case: A development team can use this Skill to automatically audit their microservices' API contracts before deployment, catching common architectural flaws that could lead to bugs or maintenance headaches.

Quick Start

Use the ln-643-api-contract-auditor skill to audit the API contracts in the 'src/services' directory.

Frequently Asked Questions about ln-643-api-contract-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit API contracts for layer leakage and entity exposure?

To audit API contracts for layer leakage, you can analyze method signatures and DTO usage to detect when HTTP-specific types or domain entities leak into service layers, returning structured compliance and quality scores.

What is the best way to enforce DTO usage and prevent entity leakage in microservices?

Enforcing DTO usage in microservices involves checking service boundaries to ensure data transfer objects encapsulate data properly, preventing raw database entities from being directly exposed through APIs.

How do I check for inconsistent error contracts across Python and TypeScript services?

You can check for inconsistent error contracts by applying language-specific detection patterns to analyze error handling strategies across Python and TypeScript service boundaries, ensuring uniform consistency.

Can I detect redundant method overloads at the service boundary architecture level?

Yes, you can detect redundant method overloads by auditing the architecture at the service boundary level, identifying overlapping method signatures, and returning an implementation score for the analyzed contracts.

Does API contract auditing require specific dependencies or frameworks to run?

No specific dependencies or frameworks are required, as the auditing process applies language-specific detection patterns directly to the codebase to evaluate service boundaries and layer separation.

What scores are provided when auditing service boundaries and API quality?

Auditing service boundaries yields four structured scores: compliance, completeness, quality, and implementation, which collectively quantify the architectural integrity of the API contracts.