architecture-review

architecture-review is a skill for Claude Code from ludo-technologies/pyscn. It costs 53 tokens per session (678 once invoked), scanned A, original, MIT.

A Python architecture review tool that measures how modules and classes depend on one another, how focused they are, and whether dependencies form cycles.

In plain words
What is it for?
Use it to check class coupling, class cohesion, circular dependencies, and groups of modules that should be reviewed together.
Why use it?
It makes structural problems easier to locate when a codebase is difficult to understand or change safely.

Skill for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Part of the pyscn-mcp plugin — 4 skills shipped together

Good fit Use it to check class coupling, class cohesion, circular dependencies, and groups of modules that should be reviewed together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ludo-technologies/pyscn/architecture-review
About the project

pyscn is a Python code-quality analyzer that examines dead code, duplication, complexity, hotspots, architecture, dependencies, and class design, then reports which areas need attention. It is used to maintain and refactor codebases, including AI-generated code, and provides agent skills for health checks, architecture reviews, refactoring, and CI reports.

ludo-technologies/pyscn · 1,052 stars · on GitHub · docs.codescan.dev

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 ludo-technologies/pyscn --skill architecture-review
Clone the repo
git clone --depth 1 https://github.com/ludo-technologies/pyscn

Made for: Claude Code.

Or install pyscn-mcp, the plugin that ships this one along with the rest of its 4 skills.

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/ludo-technologies/pyscn/architecture-review/github.svg)](https://agentmods.dev/skills/ludo-technologies/pyscn/architecture-review)
Your own site
<a href="https://agentmods.dev/skills/ludo-technologies/pyscn/architecture-review"><img src="https://agentmods.dev/badge/skills/ludo-technologies/pyscn/architecture-review/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 architecture-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/ludo-technologies/pyscn/architecture-review"><img src="https://agentmods.dev/badge/skills/ludo-technologies/pyscn/architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 678 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 8
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
  • medium MCP Rug Pull · line 14
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
  • medium MCP Rug Pull · line 15
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
  • medium MCP Rug Pull · line 16
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
  • medium MCP Rug Pull · line 17
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
  • medium MCP Rug Pull · line 18
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
How audits are shown
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.00053 $0.00678
Opus 5 $0.00026 $0.00339
Sonnet 5 $0.00011 $0.00136
Haiku 4.5 $0.00005 $0.00068

Measured 11d ago against content hash 5ce5f826bb02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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-plugin/pyscn-mcp/skills/architecture-review/SKILL.md · 43 lines

How it starts

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

Python Architecture Review with pyscn

Run the pyscn CLI to understand module structure and coupling. No install needed: uvx pyscn@latest <command>.

Commands

User Request Command
"Check class coupling" uvx pyscn@latest analyze --select cbo <path>
"Find circular dependencies" uvx pyscn@latest analyze --select deps <path>
"Check class cohesion" uvx pyscn@latest analyze --select lcom <path>
"Which files should I review together?" uvx pyscn@latest analyze --select communities --json <path>
"Map the module architecture" uvx pyscn@latest analyze --select communities --json <path>

Useful flags: --min-cbo <n> (minimum CBO to report), --json (detailed report file). Report files are NOT written to stdout; they go to .pyscn/reports/ and the path is printed on completion.

Module Communities (context map for agents)

Module community detection is opt-in: run with --select communities --json and read the report file.

The JSON report includes community_analysis.community_context_map, a compact, deterministic map telling you which modules to inspect together:

  • bundles[]: clusters of modules that change together. Each has modules, packages, risk_level, the cluster's bridge_modules, an optional suggested_review_scope (path prefix to focus a review on), and a one-line summary. Large bundles cap the module list with a ... +N more marker (module_count always holds the true total).
  • bridge_modules[]: modules that couple two or more communities (module, the communities it connects, and a reason). Widen the review scope to include these when touching a bundle they connect.

Use the map to scope reviews and refactors: load all modules in a bundle together, and pull in connected bridge modules before changing cluster boundaries.

Interpreting Coupling Results

  • High CBO classes depend on many others; changes ripple widely. Suggest interface extraction or dependency inversion.
  • High LCOM4 classes bundle unrelated responsibilities; suggest splitting along the disconnected method groups.
  • Dependency cycles are the highest-priority architectural issue; name the modules in each cycle and the weakest edge to break.

Read the full file on GitHub · 43 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. 11d ago First seen · 43 lines · 53 tokens per session scan A 5ce5f826bb02

Subscribe to this mod's changes

architecture-review is a skill published in the GitHub repository ludo-technologies/pyscn (1,052 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 678 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

code-quality

Python code-quality anti-patterns and review checks: exception-hierarchy correctness, singleton identity comparison, narrow exception handling, wildcard-import avoidance, magic-number naming, and dead-local removal. Use when reviewing or self-reviewing Python code for correctness and readability defects that linters…

bobmatnyc/claude-mpm-skills · 61 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

code-review

Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.

langchain-ai/deepagents · 23 tokens

code-review

Code review assistance with linting, style checking, and best practices.

agno-agi/agno · 16 tokens

red-team-review

Unified adversarial review: v4.3 Strategic Matrix (MTA-004). 7-phase framework: Priors → Rubric → Adversarial Lenses → SWOT/TOWS → MCDA Decision Engine → Blind Spot/Kill Switch → Executive Summary. Absorbs: bias-detector.

winstonkoh87/Athena-Public · 65 tokens

decision-journal

Unified decision lifecycle: Pre-decision logging, post-decision review, failure classification, and calibration tracking. Absorbs: post-mortem-engine.

winstonkoh87/Athena-Public · 35 tokens