architecture-map

architecture-map is a skill for Claude Code from bengous/claude-code-plugins. It costs 36 tokens per session (1,529 once invoked), scanned A, original, MIT.

An interactive map of a codebase's files, folders, and dependencies, with rules that show whether dependencies follow the intended architecture. It can compare the current structure with proposed layouts.

In plain words
What is it for?
It helps inspect code structure, compare module or folder arrangements, and find dependencies that cross forbidden layers.
Why use it?
It makes architectural dependencies visible and checks them against declared boundaries instead of relying only on informal understanding.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

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 architecture-map plugin — 1 skill shipped together

Good fit It helps inspect code structure, compare module or folder arrangements, and find dependencies that cross forbidden layers.

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 bengous/claude-code-plugins
Claude Code
/plugin install architecture-map

Made for: Claude Code.

Or install architecture-map, the plugin that ships this one along with the rest of its 1 skill.

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-map

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/architecture-map"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/architecture-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,529 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.00036 $0.01529
Opus 5.5 $0.00014 $0.00612
Sonnet 5.5 $0.00007 $0.00306
Haiku 4.5 $0.00004 $0.00153

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

Security

Grade A, and why

architecture-map 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 7d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/build.integration.test.ts, scripts/build.ts, scripts/extract-js.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

architecture-map/skills/architecture-map/SKILL.md · 128 lines

How it starts

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

Architecture map

The map is a site plan of a codebase: each file is a bar drawn to scale, each folder a frame, each dependency a line. It exists to answer one question about the structure. It stays trustworthy because everything on it is either measured (the graph) or declared (the config); nothing is drawn by hand.

Four words carry the tool:

  • graph: what was measured. Files, sizes, file-to-file links. A script writes it.
  • view: one arrangement of those same files: the tree as it is, or a proposed tree. Switching views moves each file.
  • band: a horizontal layer of a view. Band order is the direction dependencies may run.
  • verdict: what a view's rules say of each link: ok, warn (ochre pencil), bad (red pencil).

The architecture style lives entirely in the config: bands express layers or rings, columns express modules or features, overrides express any "A must not depend on B". The same base draws a layered monolith, ports and adapters, feature slices, or a tree with no stated rule at all.

To calibrate, build the demo and open it before writing anything:

bun ${CLAUDE_PLUGIN_ROOT}/skills/architecture-map/scripts/build.ts \
  --graph ${CLAUDE_PLUGIN_ROOT}/skills/architecture-map/examples/demo.graph.json \
  --config ${CLAUDE_PLUGIN_ROOT}/skills/architecture-map/examples/demo.config.json \
  --out /tmp/map-demo/map.html --preview /tmp/map-demo/preview.html

examples/demo.config.json is a complete config to copy from: two views, layers, a contract, an override, moves, files to create, files to split, shared opinions.

1. Frame the question

Write the question the map answers in one sentence, then the views that answer it:

The reader asks Views
What depends on what? the tree as it is, no rules
Where do we break our own rules? the tree as it is, with the rules the project already claims
What would this reorganisation fix, and cost? the tree as it is, plus one view per proposal

Read the full file on GitHub · 128 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. 7d ago First seen · 128 lines · 36 tokens per session scan A d8b01855ad7c

Subscribe to this mod's changes

architecture-map is a skill published in the GitHub repository bengous/claude-code-plugins (6 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,529 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-11-24.

Related

architecture-map compared with skills from other repositories

architecture-map next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-mapbengous/claude-code-pluginsSkill6todayMITA36Claude Code
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
developmentfengshao1227/ccg-workflowSkill6.0k12d agoMITA41Claude Code
debugging-executionsn8n-io/n8nSkill213ktodaynoneA86Claude Code, Codex
workflow-buildern8n-io/n8nSkill213ktodaynoneA152Claude Code, Codex
tencent-docsUnicomAI/wanwuSkill2.4k6d agoApache-2.0A209Claude Code, Codex