Arch Check — Development skill for Claude Code
Run built-in architecture-conformance policies — cycles, cross-package imports, layer violations.
How to install Arch Check
Installs to ~/.claude/commands/cognitx-leyton-graphrag-code-arch-check.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/cognitx-leyton/graphrag-code/HEAD/.claude/commands/arch-check.md -o ~/.claude/commands/cognitx-leyton-graphrag-code-arch-check.md Restart Claude Code, or start a new session, for it to be picked up.
What Arch Check does
allowed-tools: Bash(codegraph query:*), Bash(codegraph query:*), Bash(.venv/bin/codegraph query:*) description: Run built-in architecture-conformance policies — cycles, cross-package imports, layer violations
Usage
/arch-check
No args. Runs three built-in policies and reports violations. Zero violations = architecture still holds. Non-zero = investigate.
| Policy | What it detects |
|---|---|
| Import cycles | File IMPORTS paths of length 2-6 that loop back to the st |
Alternatives in Development
- OpenMythos — A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the availabl 14.8k ★
- Native Feel Skill — An Agent Skill for designing cross-platform desktop apps that feel native — distilled from Raycast's 2.0 deep 1.9k ★
- Cross Language Check — Replicate a quantitative analysis in a second language (R↔Python↔Stata↔Julia) 130 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Check Layers
Verify that the DDD layer boundaries are intact — domain never imports impl. Reports any violations.
Arch Boundaries
Install mechanically-enforced architecture boundaries that fail CI on spaghetti imports
Hallucination Check
Catch invented APIs, fabricated signatures, and non-existent imports — cross-referenced against your actually-
Reoptimize Tasks
Re-optimize an existing tracker backlog — across a project, initiative, or team — by reconciling prose depende
Preflight
24-tool MCP server that catches vague prompts before they cost 2-3x in wrong→fix cycles. 12-category scorecard
Claude Desktop Arch
Builds an Arch Linux package for Claude Desktop by extracting and modifying the official Windows release. I
Related Agents
Architecture Guardian
Use to verify MacMagazine module boundaries and system compliance are intact after adding/moving code or editi
Ddw Arch Auditor
Read-only architecture auditor. Spawn it in PLAN to check a proposed spec against the project's conventions, a
Daw Arch Auditor
Read-only architecture auditor. Spawn it in PLAN to check a proposed spec against the project's conventions, a