architecture-review

architecture-review is a skill for Claude Code, Codex from extra-org/extra. It costs 36 tokens per session (990 once invoked), scanned A, original, MIT.

An architecture-review workflow for checking changes to a software system's layers, lifecycles, boundaries, and public agreements. An ADR is a short record explaining an important architecture decision.

In plain words
What is it for?
Use it when a change crosses system layers, affects runtime behavior, configuration processing, prompts, plugins, tools, or a public contract, and to decide whether an ADR is needed.
Why use it?
It helps detect designs that violate core rules, such as running code from configuration or using data before it has been validated and compiled.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/extra-org/extra/architecture-review
Any agent
npx skills add extra-org/extra --skill architecture-review
Clone the repo
git clone --depth 1 https://github.com/extra-org/extra

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 architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/extra-org/extra/architecture-review.svg)](https://agentmods.dev/skills/extra-org/extra/architecture-review)
Your own site
<a href="https://agentmods.dev/skills/extra-org/extra/architecture-review"><img src="https://agentmods.dev/badge/skills/extra-org/extra/architecture-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00036 $0.00990
Opus 5 $0.00018 $0.00495
Sonnet 5 $0.00007 $0.00198
Haiku 4.5 $0.00004 $0.00099

Measured 4d ago against content hash c6a64d000388, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

architecture-review 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 4d ago.

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.

.claude/skills/architecture-review/SKILL.md · 104 lines

How it starts

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

Skill: Architecture Review

Purpose

Guard the project's architecture invariants. Use this to evaluate any change that affects layers, boundaries, lifecycles, or contracts — and to decide whether an ADR is required.

When to Use This Skill

  • A change touches more than one layer or moves logic between layers.
  • A change affects the runtime lifecycle, the YAML→graph pipeline, prompts, plugin contracts, or tool/MCP integration.
  • Reviewing whether a design respects the project's invariants.
  • Before approving anything that alters a public contract.

Files to Read First

  • AGENTS.md §3 (non-negotiable rules) and §4 (layout).
  • docs/ARCHITECTURE.md and docs/RUNTIME_LIFECYCLE.md.
  • All ADRs in docs/adr/.
  • The specific layer doc(s) the change touches.

Core Principles (project architecture invariants)

These are binding. A change that violates one must be redesigned or justified by a new/updated ADR.

  • YAML is declarative, not executable logic. No code execution from spec values; routing conditions are declarative.
  • Validate before compile. YAML is validated before it is compiled.
  • Runtime never executes raw YAML dictionaries. It operates only on typed compiled models.
  • Validated config compiles into typed internal models (CompiledAgentGraph).
  • RuntimeEngine is created once at startup; the compiled graph is immutable and shared read-only.
  • ExecutionContext is created per request and holds all request-scoped state. No request state on the engine/graph.
  • Prompt templates may be cached; rendered values are resolved per request. No global cache of rendered prompts.
  • Client-specific auth/context/business logic lives in plugin boundary, never in the runtime.
  • Tool permissions are enforced outside prompts, at the tool/data layer; injected params can't be overridden by the model.
  • Agents declare needs; the runtime resolves and enforces them.
  • Plugin contracts stay generic — no client-specific fields baked into it.
  • MCP/tool integrations go through adapters, not directly into core logic.

Read the full file on GitHub · 104 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. 4d ago First seen · 104 lines · 36 tokens per session scan A c6a64d000388

Subscribe to this mod's changes

architecture-review is a skill published in the GitHub repository extra-org/extra (109 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 990 once invoked, about $0.0002 per session on Opus 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-08-30.