Skip to content
Back to skills

Arch Check

ASecurity

Review changes for layer boundary violations, import direction, circular dependencies, and hook-exit-code errors. Use when refactoring across modules, when adding a new module, when a hook script imports espalier (forbidden), or when the user asks about architectural consistency. Delegates to the architecture-analyst agent.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentsrefactoring

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add Mike-Byrne-AI/espalier-harness --skill arch-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Arch Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Arch Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mike-byrne-ai-arch-check/badge)](https://www.skillsdirectory.com/skills/mike-byrne-ai-arch-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: arch-check
description: Review changes for layer boundary violations, import direction, circular dependencies, and hook-exit-code errors. Use when refactoring across modules, when adding a new module, when a hook script imports espalier (forbidden), or when the user asks about architectural consistency. Delegates to the architecture-analyst agent.
---

# Arch-check — architecture-analyst delegation

Layer boundary work delegates to the **architecture-analyst** agent so
cross-module reasoning happens in its own context.

## Step 1 — Frame the scope

Identify the architectural question:

- "is this layer-clean?" → diff or files in scope
- "does this respect the import rules?" → changed imports
- "where should X live?" → proposed change + neighboring modules

If the user did not specify, ask what they're checking. The
architecture-analyst is too expensive to invoke on an undirected scan.

## Step 2 — Delegate to architecture-analyst

Dispatch the **architecture-analyst** subagent (`subagent_type='architecture-analyst'`). The
analyst sources the project's layer model and invariants from
`CLAUDE.md` / `docs/ARCHITECTURE.md` / `docs/CONVENTIONS.md` — whichever
of those your project keeps; brief
it on anything not yet captured in the project's docs that you want
checked.

Example invariants (the harness this skill originated in):

- `espalier/` imports from `espalier/` only.
- `tools/cc/` has zero `espalier` imports (standalone scripts).
- `espalier/scanners/` is stdlib-only.
- Hook scripts exit 0 only (channel-XOR rule; exit 0 pairs with stdout
  JSON, exit 2 with stderr text, never both).
- Path comparisons normalize via `.replace("\\\\", "/")`.

Your project's invariants will look different — the analyst handles
that adapter logic when it reads the project's docs.

The agent returns a structured architectural verdict — direction
violations, scanner-isolation breaches, and hook-exit-code errors are
common load-bearing failure modes.

## Step 3 — Report

Pass the agent's verdict back. If it flagged a layer violation,
quote the offending import line and propose where the affected
function should move instead.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.