ln-642-layer-boundary-auditor

Audit layer boundaries and cross-layer consistency violations in codebases.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/0xtaoist/taogate --skill ln-642-layer-boundary-auditor-0xtaoist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-642-layer-boundary-auditor
Source: https://github.com/0xtaoist/taogate/tree/main/ln-642-layer-boundary-auditor
Command: npx skills add https://github.com/0xtaoist/taogate --skill ln-642-layer-boundary-auditor-0xtaoist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits layer boundaries and detects cross-layer inconsistencies such as I/O violations, transaction boundary ownership, and session ownership (DI vs local).

Core Features & Use Cases

  • Read architecture.md to discover project's layer structure
  • Detect layer violations (I/O code outside infrastructure layer)
  • Detect cross-layer consistency issues: transaction boundaries (commit/rollback ownership) and session ownership (DI vs local)
  • Check pattern coverage (all HTTP calls use client abstraction)
  • Detect error handling duplication
  • Return violations list to coordinator

Quick Start

Run the layer-boundary auditor against your codebase to generate a cross-layer violation report.

Frequently Asked Questions about ln-642-layer-boundary-auditor

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

FAQPage Schema
How do I detect cross-layer architecture violations in a layered codebase?

Auditing layer boundaries detects cross-layer inconsistencies by scanning your codebase for I/O violations outside the infrastructure layer. It reads your architecture file, checks pattern coverage for HTTP client abstractions, and returns violations with file paths and line numbers.

What are transaction boundary ownership issues in clean architecture?

Transaction boundary ownership issues in clean architecture involve commit and rollback logic leaking across inappropriate layers. The auditor detects these cross-layer consistency violations to ensure transaction control remains properly scoped within your domain or infrastructure boundaries.

How do I audit session ownership between dependency injection and local usage?

Auditing session ownership involves scanning the codebase to detect inconsistencies between dependency injection and local session usage. The layer-boundary auditor identifies these cross-layer violations and generates an audit report containing file paths, line numbers, and code context.

Can I use this layer-boundary audit on hexagonal architecture projects?

Yes, the layer-boundary audit supports hexagonal architecture projects. It also applies to layered and clean designs, using a domain-aware mode to evaluate cross-layer consistency and output findings to an audit report tailored to your project structure.

How do I generate a cross-layer violation report for my codebase?

Generating a cross-layer violation report requires running the auditor against your codebase to scan for I/O boundary violations, transaction ownership issues, and error handling duplication. The resulting report details file paths, line numbers, and code context for each violation.