ln-643-api-contract-auditor

Solid

Checks layer leakage in method signatures, missing DTOs, entity leakage to API, inconsistent error contracts. Use when auditing API contracts.

AI & Automation 479 stars 67 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`. # API Contract Auditor (L3 Worker) **Type:** L3 Worker Specialized worker auditing API contracts, method signatures at service boundaries, and DTO usage patterns. ## Purpose & Scope - Audit **API contracts** at architecture level (service boundaries, layer separation) - Check layer leakage, DTO patterns, error contract consistency - Return structured analysis with 4 scores (compliance, completeness, quality, implementation) **Out of Scope** (owned by ln-623-code-principles-auditor): - Code duplication (same DTO shape repeated, same mapping logic, same validation) - Report only ARCHITECTURE BOUNDARY findings (wrong layer, missing contract) ## Inputs ``` - pattern: "API Contracts" # Pattern name - locations: string[] # Service/API directories - adr_reference: string # Path to related ADR - bestPractices: object # Best practices from MCP Ref/Context7 - output_dir: string # e.g., ".hex-skills/runtime-artifacts/runs/{run_id}/audit-report" # Domain-aware (optional, from coordinator) - domain_mode: "global" | "domain-aware" # Default: "global" - current_domain: string # e.g., "users", "billing"...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category