architecture

architecture is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 37 tokens per session (1,179 once invoked), scanned A, original, MIT.

A command that creates a high-level map of a project's architecture, including its major parts and how they communicate.

In plain words
What is it for?
Use it to document the system type, layers, components, boundaries, external dependencies, configuration, and data flow.
Why use it?
It makes the system easier to understand before making changes in an unfamiliar area.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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

Good fit Use it to document the system type, layers, components, boundaries, external dependencies, configuration, and data flow.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/architecture"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 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,179 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.00037 $0.01179
Opus 5.5 $0.00015 $0.00472
Sonnet 5.5 $0.00007 $0.00236
Haiku 4.5 $0.00004 $0.00118

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

Security

Grade A, and why

architecture 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 14d 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/commands/architecture.md · 154 lines

How it starts

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

Architecture Overview

Generate a high-level architecture map of this project.

Arguments: $ARGUMENTS

Phase 0: Output Format

If $ARGUMENTS names ascii or html, use it. Otherwise ask once with AskUserQuestion:

  • ASCII (default) — the overview below, in the terminal
  • HTML page — the same overview as a standalone page with a rendered diagram, written to a file and opened in the browser

Phase 1: Discovery

  1. Layers - What are the main layers? (UI, API, services, data)
  2. Components - Major modules or packages
  3. Boundaries - How are components separated? (folders, packages, services)
  4. Communication - How do components talk to each other?
  5. External dependencies - Third-party services, databases, APIs
  6. Configuration - How is the system configured?

Phase 2: Generate Architecture Map

<output_format>

# Architecture Overview

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

## High-Level Diagram (ASCII)

┌─────────────────────────────────────────┐ │ Client │ └─────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────┐ │ API Layer │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ Routes │ │ Auth │ │ ... │ │ │ └─────────┘ └─────────┘ └─────────┘ │ └─────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────┐ │ Service Layer │ └─────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────┐ │ Data Layer │ └─────────────────────────────────────────┘


## Component Breakdown

### [Component 1]
- **Location**: `path/to/component/`
- **Responsibility**: What it does
- **Key files**: `file1.py`, `file2.py`
- **Depends on**: [Other components]
- **Depended by**: [Components that use this]

### [Component 2]
...

## Data Flow

### [Flow 1: User Authentication]
1. Request arrives at `routes/auth.py:login`
2. Validated by `services/auth.py:authenticate`
3. Token generated by `utils/jwt.py:create_token`
4. Response sent

### [Flow 2: ...]
...

## External Dependencies

| Service | Purpose | Config Location |
|---------|---------|-----------------|
| PostgreSQL | Primary database | `config/database.py` |
| Redis | Caching | `config/cache.py` |

## Key Patterns Used

| Pattern | Where Used | Example |
|---------|------------|---------|
| Repository | Data access | `repositories/user.py` |
| Service Layer | Business logic | `services/` |

## Areas of Complexity
- [Area 1]: Why it's complex, where to look
- [Area 2]: Why it's complex, where to look

</output_format>

Read the full file on GitHub · 154 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. 14d ago Changed · +27 lines 1a13a308a8be
  2. 1mo ago First seen · 127 lines · 37 tokens per session scan A 5aaf9de0bbe9

Subscribe to this mod's changes

architecture is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 1,179 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.