ln-642-layer-boundary-auditor
Checks layer boundary violations, transaction boundaries, session ownership, cross-layer consistency. Use when auditing architecture layers.
npx skills add majiayu000/claude-skill-registry --skill ln-642-layer-boundary-auditor-levnikolaevich-claude-code-skills--levnikolaevich-claude-code-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
> **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}`. # Layer Boundary Auditor **Type:** L3 Worker L3 Worker that audits architectural layer boundaries and detects violations. ## Purpose & Scope - 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) - Session ownership (DI vs local) - Check pattern coverage (all HTTP calls use client abstraction) - Detect error handling duplication - Return violations list to coordinator **Out of Scope** (owned by ln-628-concurrency-auditor): - Blocking I/O in async functions (sync open/read in async def) - Fire-and-forget tasks (create_task without error handler) ## Input (from ln-640) ``` - architecture_path: string # Path to docs/architecture.md - codebase_root: string # Root directory to scan - skip_violati
- Purpose & Scope
- Input (from ln-640)
- Workflow
- Phase 1: Discover Architecture
- Phase 2: Detect Layer Violations
- Phase 3: Cross-Layer Consistency Checks
- Phase 4: Check Pattern Coverage
- Phase 5: Calculate Score
- Phase 6: Write Report
- Phase 7: Return Summary
- Critical Rules
- Definition of Done
- Reference Files
What does the ln-642-layer-boundary-auditor skill do?
Checks layer boundary violations, transaction boundaries, session ownership, cross-layer consistency. Use when auditing architecture layers.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ln-642-layer-boundary-auditor-levnikolaevich-claude-code-skills--levnikolaevich-claude-code-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
