architecture-map

architecture-map is a skill for Claude Code from atretyak1985/swarmery. It costs 97 tokens per session (2,518 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 — 1 skill 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 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/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,518 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.02518
Opus 5 $0.00048 $0.01259
Sonnet 5 $0.00019 $0.00504
Haiku 4.5 $0.00010 $0.00252

Measured yesterday against content hash 3f23181f0354, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 yesterday.

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.jsonrepos[], 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. yesterday Changed · +63 lines 3f23181f0354
  2. 10d 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 (5 stars, last pushed today), licensed Apache-2.0. It adds 97 tokens to every session and 2,518 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

notebooklm

Programmatic access to Google NotebookLM for creating notebooks, adding sources (URLs, YouTube, PDFs, audio, video, images), chatting with content, generating artifacts (podcasts, videos, reports, quizzes, mind maps, flashcards, infographics), and downloading results. Includes capabilities beyond the web UI.

jmagar/claude-homelab · 67 tokens

gh-address-comments

This skill should be used when addressing GitHub pull request review comments systematically with mandatory resolution tracking. Use when user says "address PR comments", "fix review feedback", "handle PR review", "resolve PR threads", or needs to ensure all review comments are addressed before merging. Fetches…

jmagar/claude-homelab · 85 tokens

prowlarr

Search indexers and manage Prowlarr. Use when the user asks to "search for a torrent", "search indexers", "find a release", "check indexer status", "list indexers", "prowlarr search", "sync indexers", or mentions Prowlarr/indexer management.

jmagar/claude-homelab · 68 tokens

sonarr

This skill should be used when managing TV shows in Sonarr. Use when the user asks to "add a TV show", "search Sonarr", "find a series", "add to Sonarr", "remove a show", "check if show exists", "Sonarr library", "TVDB lookup", or mentions TV show management or Sonarr operations.

jmagar/claude-homelab · 75 tokens

commit-message

Use ANY time the user signals they want to commit staged changes — including bare "commit", "/commit", "commit this", "commit these changes", "let's commit", "make a commit", "git commit", "write a commit message", "make a conventional commit", "use conventional commits", or any equivalent phrasing in context (e.g.…

netopsengineer/axiom · 218 tokens

dependency-versions

MUST consult this skill before answering whenever the user's task involves external versioned dependencies — even if you think you can handle it directly. This applies to: checking if packages/tools are up to date, upgrading npm/pip/cargo/go dependencies, planning or writing CI/CD workflows (GitHub Actions, CircleCI…

netopsengineer/axiom · 216 tokens