claudemap-runtime

claudemap-runtime is a skill for Claude Code from QuinnAho/claudemap. It costs 40 tokens per session (1,736 once invoked), scanned A, original, MIT.

An internal workflow that turns a code repository into a live map of its architecture, meaning its major parts and how they connect.

In plain words
What is it for?
Use it to create, refresh, reopen, scope, present, or walk through architecture maps while exploring a repository.
Why use it?
It gives developers a visual way to understand an unfamiliar codebase and follow changes through it.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it to create, refresh, reopen, scope, present, or walk through architecture maps while exploring a repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/quinnaho/claudemap/skill
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.

Any agent
npx skills add QuinnAho/claudemap --skill skill
Clone the repo
git clone --depth 1 https://github.com/QuinnAho/claudemap

Made for: Claude Code.

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 claudemap-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/quinnaho/claudemap/skill.svg)](https://agentmods.dev/skills/quinnaho/claudemap/skill)
Your own site
<a href="https://agentmods.dev/skills/quinnaho/claudemap/skill"><img src="https://agentmods.dev/badge/skills/quinnaho/claudemap/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 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.00040 $0.01736
Opus 5 $0.00020 $0.00868
Sonnet 5 $0.00008 $0.00347
Haiku 4.5 $0.00004 $0.00174

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

Security

Grade A, and why

claudemap-runtime 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 8d ago.

The scan reads SKILL.md. This mod also ships 59 executable files (commands/create-map.js, commands/open-claudemap.js, commands/refresh.js, …), 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.

skill/SKILL.md · 82 lines

How it starts

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

ClaudeMap is a repo-to-architecture-map workflow.

High-level model:

  • snapshot the repository
  • ask @claudemap-architect to turn that snapshot into a detailed, human-legible graph
  • render the graph in the bundled ClaudeMap UI
  • keep the graph and presentation state updated as the user explores the codebase

Public commands:

  • /setup-claudemap: build or rebuild the map for the current repository
  • /open-claudemap: reopen the existing UI without rebuilding
  • /create-map: create or refresh a scoped subsystem map from the current root graph
  • /refresh: update the graph after code changes
  • /explain: run a guided walkthrough through the live map
  • /show: direct the live map for highlights, focus, presentation, and flows

If this skill is invoked directly, default to the setup workflow.

Target repository:

  • If the user passed an argument to the invoked skill command, use $ARGUMENTS as the project root.
  • If no argument was passed, use the current working directory.

Execution rules:

  1. Resolve the bundled ClaudeMap workspace from ${CLAUDE_SKILL_DIR}.
  2. Generate a raw repo snapshot by running ${CLAUDE_SKILL_DIR}/skill/commands/snapshot.js for the target project root.
  3. Read ${CLAUDE_SKILL_DIR}/skill/prompts/enrichment.txt.
  4. Use the @claudemap-architect subagent explicitly. Give it:
    • the raw snapshot JSON
    • the graph schema contract from the enrichment prompt
    • instructions to return only valid graph JSON
    • instructions to optimize for a detailed graph with intuitive human grouping
  5. Wait for the subagent Task call to fully return, then save the returned JSON to ${CLAUDE_SKILL_DIR}/tmp/claudemap-enrichment.json. Do not run the setup JS command until after this file has been written with non-empty valid graph JSON. Do not run setup in parallel with the subagent call.
  6. Run ${CLAUDE_SKILL_DIR}/skill/commands/setup-claudemap.js for the target project root with --enrichment-file ${CLAUDE_SKILL_DIR}/tmp/claudemap-enrichment.json. The setup command is strict: if the file is missing, empty, or unparseable it will exit non-zero and refuse to render a heuristic graph. Do not retry setup without fixing the enrichment file first.
  7. Add --force-refresh only when the user explicitly asks for a fresh rebuild.
  8. If the subagent fails to return valid JSON after two attempts, tell the user the architect pass failed and stop. Do not silently rerun setup without --enrichment-file — that would render a heuristic graph and pollute the cache. The user should rerun /setup-claudemap once the architect issue is resolved.
  9. Let the bundled launcher start the app unless the user explicitly asks not to.
  10. Summarize the analyzed file count, system count, graph source, render transport, and app readiness. Runtime graph outputs land in ${CLAUDE_SKILL_DIR}/app/public/graph/ (served by the bundled Vite app as /graph/*).
  11. End the graph-generation flow with a short feedback prompt such as: Does this map look right, or should I refine it?
  12. If the user says the map is good, stop there.
  13. If the user asks for refinement, reuse the current target project's claudemap-cache.json graph and file snapshot as context when available instead of starting from a blank prompt again.
  14. For refinement passes, send the existing graph plus the user's requested changes back through @claudemap-architect, save the refined JSON to ${CLAUDE_SKILL_DIR}/tmp/claudemap-enrichment.json, and run ${CLAUDE_SKILL_DIR}/skill/commands/refresh.js with --enrichment-file so the graph iterates in place.
  15. After the refined graph renders, ask the same short feedback prompt again.

/create-map runs an architect-first scoped pipeline:

  1. Resolve the target scope from the user's request (either a scope JSON payload copied from the UI, or a natural language description of a subsystem the architect should locate in the root graph).
  2. Read ${CLAUDE_SKILL_DIR}/skill/prompts/scoped-enrichment.txt. This is a dedicated scoped prompt — do not reuse the root enrichment prompt.
  3. Build a scoped snapshot by filtering the root graph's file list to the files inside the target subsystem. Include any prior scoped graph from the target map's cachePath when one exists so the architect can refine rather than rebuild.
  4. Call the @claudemap-architect subagent with the scoped snapshot, the scoped prompt, and any user instructions. Instruct it to emit a richer internal breakdown (2-6 internal subsystems, tighter edges, function nodes welcome) and to decide between edit-in-place and rebuild based on the intent of the request.
  5. Save the returned JSON to ${CLAUDE_SKILL_DIR}/tmp/claudemap-enrichment.json and run ${CLAUDE_SKILL_DIR}/skill/commands/create-map.js with --enrichment-file (plus --scope-json and optional --instructions). The command deletes the tmp file after it reads it.
  6. If the architect pass fails, the command can still fall back to buildScopedGraphFromRoot by running without --enrichment-file, but warn the user the scoped map will be a plain filter view and suggest rerunning with architect enrichment for richer grouping.
  7. After the scoped map renders, ask the same short feedback prompt (Does this map look right, or should I refine it?).
  8. If the user asks for refinement, reuse the scoped map's own cache as prior graph context (via buildScopedSnapshot's priorGraph option) and rerun the architect. Save the refined JSON to the tmp file and rerun create-map.js with the same --scope-json payload plus --enrichment-file.
  9. After the refined scoped graph renders, ask the same short feedback prompt again.

Read the full file on GitHub · 82 lines

Files

What ships with it

60 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. 8d ago First seen · 82 lines · 40 tokens per session scan A 7bfe7e6972f1

Subscribe to this mod's changes

claudemap-runtime is a skill published in the GitHub repository QuinnAho/claudemap (289 stars, last pushed 4mo ago), licensed MIT. It adds 40 tokens to every session and 1,736 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

code-transfer

Transfer code between files with line-based precision. Use when users request copying code from one location to another, moving functions or classes between files, extracting code blocks, or inserting code at specific line numbers.

mhattingpete/claude-skills-marketplace · 43 tokens

ensemble-solving

Generate multiple diverse solutions in parallel and select the best. Use for architecture decisions, code generation with multiple valid approaches, or creative tasks where exploring alternatives improves quality.

mhattingpete/claude-skills-marketplace · 35 tokens

conversation-analyzer

Analyzes your Claude Code conversation history to identify patterns, common mistakes, and opportunities for workflow improvement. Use when user wants to understand usage patterns, optimize workflow, identify automation opportunities, or check if they're following best practices.

mhattingpete/claude-skills-marketplace · 48 tokens

code-execution

Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests bulk operations (10+ files), complex multi-step workflows, iterative processing, or mentions efficiency/performance.

mhattingpete/claude-skills-marketplace · 49 tokens

code-refactor

Perform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated code patterns, updating method calls, or making consistent changes across multiple locations.

mhattingpete/claude-skills-marketplace · 51 tokens

feature-planning

Break down feature requests into detailed, implementable plans with clear tasks. Use when user requests a new feature, enhancement, or complex change.

mhattingpete/claude-skills-marketplace · 32 tokens