architecture-map

architecture-map is a skill for Claude Code from atretyak1985/swarmery. It costs 97 tokens per session (2,562 once invoked), scanned A, original, Apache-2.0.

A tool for generating or updating a repository-wide architecture map in JSON and a self-contained HTML viewer. An architecture map shows the named paths through which parts of a software project work together.

In plain words
What is it for?
Use it when creating or refreshing an architecture map, responding to an architecture-map request, or giving an agent a current overview of the repository.
Why use it?
It provides a current, machine-readable view of how the repository is organized and how its main flows connect, which makes the project easier to understand and review.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions subagents.

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-pack plugin — 2 skills, 1 command shipped together

Good fit Use it when creating or refreshing an architecture map, responding to an architecture-map request, or giving an agent a current overview of the repository.

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 atretyak1985/swarmery
Claude Code
/plugin install architecture-pack

Made for: Claude Code.

Or install architecture-pack, the plugin that ships this one along with the rest of its 2 skills, 1 command.

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/atretyak1985/swarmery/architecture-map/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/architecture-map)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/architecture-map"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/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/atretyak1985/swarmery/architecture-map"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/architecture-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,562 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.00097 $0.02562
Opus 5.5 $0.00039 $0.01025
Sonnet 5.5 $0.00019 $0.00512
Haiku 4.5 $0.00010 $0.00256

Measured 1mo ago against content hash 1c13ea152a54, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/build.sh, scripts/test.sh, scripts/validate.mjs), 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.

plugins/architecture-pack/skills/architecture-map/SKILL.md · 199 lines

How it starts

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

Architecture Map

Produce <repo>/architecture-out/architecture-map.json + .html. The JSON is the source of truth; the HTML is rendered from it by scripts/build.sh — never write HTML by hand.

0. Freshness gate (always first)

Which of the two shapes you are in decides everything below: a single repo (the working directory is itself a checkout — .git exists) or a multi-repo workspace (no .git at the root; the member checkouts are listed in .claude/project.json → repos[], and module paths are workspace-relative, <repo>/<path-inside-it>).

Single repo

HEAD=$(git rev-parse HEAD)
LAST=$(node -e "try{const v=JSON.parse(require('fs').readFileSync('architecture-out/architecture-map.json')).analyzedAtCommit;console.log(typeof v==='string'&&v.length>=7?v:'')}catch{console.log('')}")
  • LAST == HEAD → report "architecture map is up to date (commit )" and STOP.
  • LAST non-empty → incremental mode: git diff --name-only $LAST..HEAD → map changed paths onto existing modules[].path prefixes; re-describe ONLY touched modules, re-check only flows whose steps reference them; keep the rest.
  • LAST empty → full analysis.

Multi-repo workspace

There is no single HEAD to compare against, so compare PER MEMBER against the map's optional analyzedAtCommits object ({"<repo>": "<sha>"}):

# One member per LINE — a member directory may contain spaces.
node -e "try{const r=JSON.parse(require('fs').readFileSync('.claude/project.json')).repos;if(Array.isArray(r))console.log(r.join('\n'))}catch{}" |
while IFS= read -r repo; do
  [ -n "$repo" ] || continue
  [ -e "$repo/.git" ] || { echo "$repo: not a checkout — skipping"; continue; }
  head=$(cd "$repo" && git rev-parse HEAD)
  last=$(node -e "try{const m=JSON.parse(require('fs').readFileSync('architecture-out/architecture-map.json')).analyzedAtCommits||{};const v=m[process.argv[1]];console.log(typeof v==='string'&&v.length>=7?v:'')}catch{console.log('')}" "$repo")
  echo "$repo $last $head"
done

Read the full file on GitHub · 199 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed 1c13ea152a54
  2. 2mo ago Changed · +63 lines 3f23181f0354
  3. 2mo ago First seen · 136 lines · 97 tokens per session scan A 50a67e47d8d8

Subscribe to this mod's changes

architecture-map is a skill published in the GitHub repository atretyak1985/swarmery (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 97 tokens to every session and 2,562 once invoked, about $0.0004 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-08-31.

Related

architecture-map compared with skills from other repositories

architecture-map next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-mapatretyak1985/swarmerySkill7yesterdayApache-2.0A97Claude Code
commit-messagenetopsengineer/axiomSkill5yesterdayMITA218Claude Code
dependency-versionsnetopsengineer/axiomSkill5yesterdayMITA216Claude Code
finishfakoli/fakoli-pluginsSkill41mo agoMITA18Claude Code
gws-quick-reffakoli/fakoli-pluginsSkill41mo agoMITA29Claude Code
excalidrawfakoli/fakoli-pluginsSkill41mo agoMITA28Claude Code, Codex
gws-scriptfakoli/fakoli-pluginsSkill41mo agoMITA21Claude Code