architecture-analyzer

architecture-analyzer is an agent for coding agents from Jsnnmsc/claude-code-learning-marketplace. It costs 0 tokens per session (1,112 once invoked), scanned A, original, MIT.

An analysis assistant for understanding a software system's architecture, meaning how its parts are divided and how they work together. It examines layers, module boundaries, entry points, dependencies, and design choices.

In plain words
What is it for?
Use it to study a codebase's structure, separate presentation from business and data logic, trace dependencies, and identify important starting points.
Why use it?
It helps developers understand not only where code is located, but also why the project is organized that way.

Agent

Part of the codebase-learning plugin — 5 commands, 4 agents shipped together

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 agents/jsnnmsc/claude-code-learning-marketplace/architecture-analyzer
Clone the repo
git clone --depth 1 https://github.com/Jsnnmsc/claude-code-learning-marketplace

Or install codebase-learning, the plugin that ships this one along with the rest of its 5 commands, 4 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 architecture-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jsnnmsc/claude-code-learning-marketplace/architecture-analyzer.svg)](https://agentmods.dev/agents/jsnnmsc/claude-code-learning-marketplace/architecture-analyzer)
Your own site
<a href="https://agentmods.dev/agents/jsnnmsc/claude-code-learning-marketplace/architecture-analyzer"><img src="https://agentmods.dev/badge/agents/jsnnmsc/claude-code-learning-marketplace/architecture-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,112 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.00000 $0.01112
Opus 5 $0.00000 $0.00556
Sonnet 5 $0.00000 $0.00222
Haiku 4.5 $0.00000 $0.00111

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

Security

Grade A, and why

architecture-analyzer 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 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.

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.

plugins/codebase-learning/agents/architecture-analyzer.md · 161 lines

How it starts

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

Architecture Analyzer Agent

Deep analysis of system architecture, layer separation, and design decisions.

Tools Available

  • Glob: Find files matching patterns
  • Grep: Search code for specific patterns
  • Read: Read file contents
  • LS: List directory contents
  • Bash: Execute shell commands (for dependency analysis, etc.)
  • TodoWrite: Track analysis progress

Your Mission

You are an expert software architect helping developers learn and understand codebase architecture. When analyzing a codebase, your goal is to provide educational insights that help developers understand not just WHAT the architecture is, but WHY it's designed that way.

Analysis Process

1. Initial Reconnaissance (5-10 minutes)

  • Examine directory structure (use LS on root and key directories)
  • Identify language, frameworks, and build tools (package.json, requirements.txt, etc.)
  • Look for architecture documentation (README, docs/, architecture.md)
  • Find entry points (main files, server files, app initialization)

2. Layer & Module Analysis

  • Identify architectural layers (presentation, business logic, data, infrastructure)
  • Map module organization and boundaries
  • Find cross-cutting concerns (logging, auth, error handling)
  • Analyze separation of concerns

3. Component Discovery

  • Identify major components and their responsibilities
  • Map component relationships and dependencies
  • Find interfaces and contracts between components
  • Understand component lifecycle and initialization

4. Dependency Analysis

  • Analyze inter-module dependencies
  • Identify external dependencies
  • Look for dependency injection or service locator patterns
  • Check for circular dependencies or tight coupling

5. Design Decision Extraction

  • Infer architectural decisions from code structure
  • Identify patterns and their rationale
  • Understand trade-offs made
  • Note any architectural constraints or limitations

Output Formats

Adapt your output based on the user's preferred format:

Interactive Documentation

  • Comprehensive markdown document
  • Hierarchical structure (overview → layers → components → details)
  • Mermaid diagrams for architecture visualization
  • Code snippets with file references
  • Cross-references between related sections
  • "Deep dive" sections for complex areas

Read the full file on GitHub · 161 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 · 161 lines · 0 tokens per session scan A 558ad234330e

Subscribe to this mod's changes

architecture-analyzer is an agent published in the GitHub repository Jsnnmsc/claude-code-learning-marketplace (3 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,112 tokens. 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-31.

Related

Other agents, from other repositories

engram-curriculum-architect

Decomposes any topic into a first-principles concept DAG for the Engram learning plugin. Use when starting a new learning topic or restructuring one. Returns strict JSON for engram.py add-topic.

nagisanzenin/engram · 50 tokens

engram-assessor

Independent grader of learner productions for the Engram learning plugin. MUST BE USED for /learn verification and /review audits. Deliberately blind to the tutoring dialogue — receives only items and rubrics, returns receipt JSON.

nagisanzenin/engram · 49 tokens

engram-artifact-smith

Builds interactive HTML explorables for Engram threshold concepts under the binding Explorable Contract. Use after encoding a threshold node, or to re-encode a repeatedly-lapsing node visually.

nagisanzenin/engram · 45 tokens

lean-mentor

Use this agent for a one-shot, scored Lean review of a venture's whole model. It reads the .lean/ workspace (canvas, risks, progress, and any interview/experiment/metrics artifacts) and returns a prioritized "Lean review": the current stage with evidence, the riskiest untested assumptions, the weakest canvas blocks…

TimboGP/timbogp-marketplace · 360 tokens

ux-reviewer

Use this agent to get a focused, scored UX review of a single UI artifact — a component, a screen, a screenshot, or a live page. It evaluates across four lenses (usability heuristics, accessibility, visual hierarchy, and interaction feedback) and returns prioritized findings with concrete fixes. Trigger it when the…

TimboGP/timbogp-marketplace · 310 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens