arch-check

arch-check is a skill for Claude Code, Codex from mtvrkan/senior-dev-kit. It costs 19 tokens per session (1,488 once invoked), scanned A, original, MIT.

Audit architecture integrity — boundary violations, dependency direction, mixed patterns, contract drift.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Install with agentmods
npx agentmods add skills/mtvrkan/senior-dev-kit/arch-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mtvrkan/senior-dev-kit --skill arch-check
Clone the repo
git clone --depth 1 https://github.com/mtvrkan/senior-dev-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for arch-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtvrkan/senior-dev-kit/arch-check/github.svg)](https://agentmods.dev/skills/mtvrkan/senior-dev-kit/arch-check)
Your own site
<a href="https://agentmods.dev/skills/mtvrkan/senior-dev-kit/arch-check"><img src="https://agentmods.dev/badge/skills/mtvrkan/senior-dev-kit/arch-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for arch-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtvrkan/senior-dev-kit/arch-check"><img src="https://agentmods.dev/badge/skills/mtvrkan/senior-dev-kit/arch-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01488
Opus 5.5 $0.00008 $0.00595
Sonnet 5.5 $0.00004 $0.00298
Haiku 4.5 $0.00002 $0.00149

Measured today against content hash bd7a45f5e014, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arch-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

antigravity/skills/arch-check/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/arch-check

Antigravity: run this skill in a fresh subagent so its reads stay out of the main context, and report its result; if subagents are unavailable, follow the steps inline.

Audit the structure of what was actually built: <the scope the user gave when invoking this skill; if none, the current change>

The third audit command, alongside /design-check and /seo-check, and the same contract: it does not review correctness — /code-review does that — it answers one question: is this still one architecture, or several that grew into each other? Read KIT_ROOT/agent_docs/architecture.md first; the pattern table, the dependency-direction rules, the coupling signals and the FWD: vocabulary are all defined there and in KIT_ROOT/rules/001-conventions.md rather than restated here.

Architecture degrades the way design does: not in one bad decision, but in fifty small ones taken without reference to a recorded choice. So this command starts where /design-check starts — with what the project claimed.

Step 1 — Find the claim. Look for the architecture recorded in the project's AGENTS.md, PROJECT-CONTRACTS.md, or .claude/codebase-overview.md. Nothing recorded on a project with a non-trivial src/ is itself a finding: the pattern is re-derived from folder shape by every session, and two sessions that read the same folders differently produce two architectures. Derive the de facto pattern from disk so the rest of the audit has something to measure against.

Step 2 — One architecture, not two. Layered (controllers/ + services/ + repositories/) and vertical-slice (features/x/…) both present is the mixed case KIT_ROOT/rules/001-conventions.md flags. Report which directories are on which side, so the decision the user faces is "which one wins here", not "you have both".

Step 3 — Dependency direction. Every violation with file:line: repository importing a service, domain importing a framework, shared kernel importing a feature, packages/* importing apps/*, a cross-app import in a monorepo. These are the failures that make a codebase expensive later and cost nothing to see now.

Step 4 — Boundary crossings. Feature A reaching into feature B's internals rather than its public API; a service calling another service's repository; DB or ORM access in a controller or route handler; business logic in a UI component; HTTP types (req/res) below the controller.

Step 5 — Cycles and barrels. Circular imports (madge --circular src/ for TS/JS, pylint --enable=cyclic-import for Python — run the one the project's stack supports, and say so if neither is available rather than reporting zero). Barrel files anywhere but a module root, and any export * at all.

Step 6 — Size as a symptom, not a rule. Files over the project's own convention (the kit's default is 300 lines) are worth reporting only with what they do: a 400-line file with one responsibility is fine, and a 200-line file with five is not. Report responsibility count, with the line count as context.

Step 7 — Contract drift. Compare PROJECT-CONTRACTS.md (if present) with what exists: an endpoint that ships and was never recorded, a type renamed in one layer only, a route with no navigation entry. KIT_ROOT/rules/001-conventions.md's HOLISTIC CONSISTENCY table is the list of layers a change is supposed to reach; this step finds the ones it did not.

Step 8 — The seams that hide risk. Where transactions begin and end, where errors convert from exceptions to a result type (KIT_ROOT/rules/200-api.md), where auth is enforced, where retries live. Each should be at one layer, named. A boundary enforced in two places disagrees eventually; a boundary enforced in none is the incident.

Step 9 — Reconcile the debt ledger. Read .claude/TECH-DEBT.md (the FWD:/OBS: ledger from KIT_ROOT/rules/001-conventions.md). Three questions per row: does the condition still exist, is it now one of this audit's findings, and has it been quietly fixed? Delete rows whose condition is gone, add the findings above that are not yet recorded, and report the count of each. A ledger nobody reconciles becomes a file people stop reading, which is the same failure as never writing it.

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 115 lines · 19 tokens per session scan A bd7a45f5e014

Subscribe to this mod's changes

arch-check is a skill published in the GitHub repository mtvrkan/senior-dev-kit (11 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 1,488 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

arch-check compared with skills from other repositories

arch-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arch-checkmtvrkan/senior-dev-kitSkill11yesterdayMITA19Claude Code, Codex
workflow-methodologyArsxxi/iterative-dev-workflowSkill24mo agoMITA2Claude Code
agy-researcherkeli-wen/agy-staffSkill9504d agoMITA77Claude Code
agy-stafferkeli-wen/agy-staffSkill9504d agoMITA126Claude Code
askkeli-wen/agy-staffSkill9504d agoMITA67Claude Code
researcherkeli-wen/agy-staffSkill9504d agoMITA75Claude Code
agy-askkeli-wen/agy-staffSkill9504d agoMITA69Claude Code