code-review-architecture

code-review-architecture is a skill for Claude Code from Jamie-BitFlight/claude_skills. It costs 216 tokens per session (7,786 once invoked), scanned B, original, MIT.

A code-review guide that maps how modules depend on one another and highlights tight coupling or circular dependencies. A circular dependency occurs when modules rely on each other in a loop.

In plain words
What is it for?
It helps review architecture, analyze dependency graphs, measure module coupling, and find circular dependencies.
Why use it?
It makes structural problems in a codebase easier to see before they cause maintenance or change-related problems. It also shows whether a proposed change affects connected parts of the project.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dh plugin — 53 skills, 28 agents shipped together

Good fit It helps review architecture, analyze dependency graphs, measure module coupling, and find circular dependencies.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Jamie-BitFlight/claude_skills
Claude Code
/plugin install dh

Made for: Claude Code.

Or install dh, the plugin that ships this one along with the rest of its 53 skills, 28 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/code-review-architecture/github.svg)](https://agentmods.dev/skills/jamie-bitflight/claude_skills/code-review-architecture)
Your own site
<a href="https://agentmods.dev/skills/jamie-bitflight/claude_skills/code-review-architecture"><img src="https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/code-review-architecture/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 code-review-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamie-bitflight/claude_skills/code-review-architecture"><img src="https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/code-review-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00216 $0.07786
Opus 5 $0.00108 $0.03893
Sonnet 5 $0.00043 $0.01557
Haiku 4.5 $0.00022 $0.00779

Measured 5d ago against content hash 8599dd7d45e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

code-review-architecture scanned grade B with 1 finding 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Hook event configs | `**/hooks.json`, `**/.claude/settings.json` | `hook-config` |
plugins/development-harness/skills/code-review-architecture/SKILL.md · 655 lines

How it starts

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

Architecture Audit — Module Dependency Graph

Generates a Mermaid module-dependency graph with severity color-coding from import/include analysis of the project source. Registers the result as a codebase-analysis artifact.

When to Invoke

Invoke when:

  • A task explicitly asks for an architecture review, dependency graph, or coupling analysis
  • Circular dependencies need to be detected and visualized
  • Module-level coupling must be communicated visually to stakeholders
  • Running as part of a broader code review that requires structural analysis

Do NOT invoke for:

  • Line-level code quality findings — use dh:code-review-python, dh:code-review-typescript, etc.
  • Test quality analysis (out of scope for this skill)

SOP (Architecture Audit)

Step 0: Determine Scope

Auto-detect the analysis scope before touching any source files. Use the first of the following that yields a non-empty file set:

  1. git diff --cached --name-only — files staged for commit
  2. git diff --name-only — unstaged working-tree changes
  3. git diff main...HEAD --name-only (or master...HEAD) — PR-level changes; try both base branch names
  4. Entire project tree — fall back when none of the above yields files (e.g., no git history or clean working tree)

Record the detected scope explicitly. It will appear at the top of every output report (e.g., **Scope:** Full project tree — 360 Python files or **Scope:** PR diff — 12 files across 3 modules).

When scope is a diff subset (cases 1–3), still build the full dependency graph (Steps 1–4) but highlight only nodes that appear in the diff set. Do not silently discard the broader graph — cross-boundary edges from diff nodes to stable nodes are the most important coupling signals.

Step 1: Discover Source Modules

1a. Probe for AST / knowledge-graph tools

Before falling back to Glob, check whether a richer indexing skill is available in the current session. Try each probe in order and stop at the first success:

Read the full file on GitHub · 655 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. 5d ago First seen · 655 lines · 216 tokens per session scan B 8599dd7d45e7

Subscribe to this mod's changes

code-review-architecture is a skill published in the GitHub repository Jamie-BitFlight/claude_skills (66 stars, last pushed yesterday), licensed MIT. It adds 216 tokens to every session and 7,786 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.