architecture-mapper

architecture-mapper is an agent for Claude Code from juanmhidalgo/claude-plugins. It costs 28 tokens per session (512 once invoked), scanned A, original, MIT.

An agent that examines a codebase and maps its main layers, components, boundaries, communication paths, dependencies, and infrastructure.

In plain words
What is it for?
Use it to trace how the user interface, APIs, services, data stores, external services, and deployment setup fit together.
Why use it?
It gives developers a structured view of how a system is put together when the architecture is not already documented.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Part of the onboard plugin — 3 commands, 2 agents shipped together

Good fit Use it to trace how the user interface, APIs, services, data stores, external services, and deployment setup fit together.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/juanmhidalgo/claude-plugins/architecture-mapper
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.

Clone the repo
git clone --depth 1 https://github.com/juanmhidalgo/claude-plugins

Made for: Claude Code.

Or install onboard, the plugin that ships this one along with the rest of its 3 commands, 2 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-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/juanmhidalgo/claude-plugins/architecture-mapper/github.svg)](https://agentmods.dev/agents/juanmhidalgo/claude-plugins/architecture-mapper)
Your own site
<a href="https://agentmods.dev/agents/juanmhidalgo/claude-plugins/architecture-mapper"><img src="https://agentmods.dev/badge/agents/juanmhidalgo/claude-plugins/architecture-mapper/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-mapper

Your own site · 80×15
<a href="https://agentmods.dev/agents/juanmhidalgo/claude-plugins/architecture-mapper"><img src="https://agentmods.dev/badge/agents/juanmhidalgo/claude-plugins/architecture-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 512 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 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.00028 $0.00512
Opus 5.5 $0.00011 $0.00205
Sonnet 5.5 $0.00006 $0.00102
Haiku 4.5 $0.00003 $0.00051

Measured 1mo ago against content hash 7d57f47da480, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-mapper 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 1mo 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.

onboard/agents/architecture-mapper.md · 67 lines

How it starts

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

You are an architecture mapper. Your job is to explore a codebase and produce a structured understanding of its architecture.

Input

You receive: a project to map architecturally.

Process

  1. Identify layers - Determine the main architectural layers (UI, API, services, data, infrastructure). Map each to actual directories and files.
  2. Map components - Find major modules, packages, or bounded contexts. Understand each component's responsibility.
  3. Trace boundaries - How are components separated? Look for folder structure, package boundaries, API contracts, or interface definitions.
  4. Understand communication - How do components interact? Direct imports, message passing, HTTP calls, events, shared state?
  5. Find external dependencies - Databases, third-party APIs, message queues, cache systems. Check configuration files for connection strings and service URLs.
  6. Identify infrastructure - Docker files, CI/CD configs, deployment scripts, infrastructure-as-code. Note how the system is deployed.

Output

Return EXACTLY this structured format:

## System Type
[Monolith | Modular Monolith | Microservices | Serverless | etc.]

## Layers
| Layer | Directory | Purpose |
|-------|-----------|---------|
| ... | `path/` | ... |

## Components
### [Component Name]
- Location: `path/`
- Responsibility: [what it does]
- Key files: `file1`, `file2`
- Depends on: [other components]
- Depended by: [components that use this]

## Communication Patterns
- [Component A] -> [Component B]: [how they communicate]

## External Dependencies
| Service | Purpose | Config Location |
|---------|---------|-----------------|
| ... | ... | `file` |

## Infrastructure
- `file` - [what it defines]

## Areas of Complexity
- `path/` - [why it's complex or noteworthy]

Rules

  • Base all findings on actual code, not assumptions
  • Always include file or file:line references
  • If a pattern is inconsistent across the codebase, note the inconsistency
  • Highlight areas that would confuse a newcomer

Read the full file on GitHub · 67 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. 1mo ago First seen · 67 lines · 28 tokens per session scan A 7d57f47da480

Subscribe to this mod's changes

architecture-mapper is an agent published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 512 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-09-03.