map-context

map-context is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 69 tokens per session (3,793 once invoked), scanned A, original, MIT.

A repository-analysis skill that creates a C4 system-context diagram. C4 is a way to describe software at different levels; this view shows the main system, its stated users, and external systems named in tracked configuration.

In plain words
What is it for?
Use it to map a system's users and external services from connection strings, URLs, authority endpoints, broker namespaces, and storage settings.
Why use it?
It provides a traceable view of what a system connects to without inventing actors or exposing credentials. Each external system is tied to a configuration source.

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 plugin — 16 skills, 1 plugin shipped together

Good fit Use it to map a system's users and external services from connection strings, URLs, authority endpoints, broker namespaces, and storage settings.

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

Made for: Claude Code.

Or install architecture, the plugin that ships this one along with the rest of its 16 skills, 1 plugin.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/map-context"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/map-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,793 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.00069 $0.03793
Opus 5.5 $0.00028 $0.01517
Sonnet 5.5 $0.00014 $0.00759
Haiku 4.5 $0.00007 $0.00379

Measured yesterday against content hash 8ff2e4d5c5c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

map-context 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 4 executable files (scripts/collect-context.sh, scripts/collect-context.test.sh, scripts/render-context.sh, …), 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/skills/map-context/SKILL.md · 252 lines

How it starts

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

Repository context

The current repository is both the consumer, whose convention home declares where artifacts land, and the default subject, the repository whose tracked configuration names external systems.

Collect with an individual Bash call, one command per call: the project root, git rev-parse --show-toplevel. Treat a failure (not a repository, git unavailable) as an unknown value and carry on; ${CLAUDE_PROJECT_DIR} is the resolver's --root either way. A [system] argument is the focal name (--focal). It does not select a different tree.

Purpose

Answer "what is this system, who uses it, and which external systems does its configuration name" for one software system. Every external node traces to a config key in a tracked file. The scripts collect and render. Do not draw a node the script did not emit, and do not invent a person.

Resolve home and dialect

Read ${CLAUDE_PLUGIN_ROOT}/reference/config.md first. This skill writes into architecture_dir. It does not read landscape_dialect and it does not add a dialect key. The diagram dialect is diagram_dialect.system from the authoring-formats topic doc.

Run bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "${CLAUDE_PROJECT_DIR}" and follow the exit code. Never parse the root instruction file yourself. Exit 0 means read <home>/architecture/README.md for architecture_dir. Exit 1, 2, and 3 mean there is no declared home to read.

In order: --out <dir> wins for this run alone, then a declared architecture_dir, then one question. architecture_dir has no default. An undeclared and unconfirmed home, including every non-interactive run, stops and points at /architecture:setup.

Resolve diagram_dialect.system by restating this ladder, then running the resolver rather than parsing the topic doc yourself. The ladder is a resolution order, not a task list:

1. Anchor at the repository root: `${CLAUDE_PROJECT_DIR}` when set, otherwise
   `git rev-parse --show-toplevel`. Never a CWD-relative read.
2. Resolve the convention home `<home>` with the bundled resolver above. Never hand-parse the root
   file.
3. The printed home is repo-relative: join it to the root, then pass
   `<root>/<home>/authoring-formats/README.md` to the resolver.
4. Layer order is one layer deep: an explicit `--dialect` argument, then the team convention doc.
   There is no personal override.
5. `diagram_dialect.system` has no default. Allowed values are `likec4` and `c4-plantuml`. When it
   is unset, write `context.json` and `context.md` with the tables, and draw no diagram block.
6. Degrade soft, and say so. No pointer, no doc, no key, or an unrecognized value (mermaid
   included, which the convention refuses) each resolve to emitting no view. The resolver names
   the cause on stderr. Do not hard-fail and do not ask the operator to create the surface
   mid-task.
7. Report provenance: the key, the value, and the layer (`argument`, `team convention doc <path>`,
   or `unset (no C4 view emitted)`).

Read the full file on GitHub · 252 lines

Files

What ships with it

5 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 · -2 tokens per session 8ff2e4d5c5c5
  2. 6d ago Changed · +4 lines f63044d61808
  3. 7d ago Changed 7e077a6c8729
  4. 11d ago Changed 6fea87f61bef
  5. 14d ago Changed 839dbe447fe2
  6. 17d ago Changed · -4 lines 76dfdbfa0d59
  7. 18d ago Changed · +3 lines 6eac8eaeb05e
  8. 22d ago Changed · +1 lines ebf3445b42e6
  9. 25d ago Changed · -23 tokens per session 129f138f11c4
  10. 26d ago First seen · 248 lines · 94 tokens per session scan A 8d8dc260e924

Subscribe to this mod's changes

map-context is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 3,793 once invoked, about $0.0003 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-29.

Related

map-context compared with skills from other repositories

map-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
map-contextmelodic-software/claude-code-pluginsSkill33todayMITA69Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code