using-codemap

using-codemap is a skill for Claude Code, Codex from abdul-hamid-achik/codemap. It costs 46 tokens per session (2,528 once invoked), scanned A, original, MIT.

Instructions for using codemap, a tool that maps code relationships and searches code by meaning, when answering structural questions about a repository.

In plain words
What is it for?
Use it to explore unfamiliar code, identify risky edits, assess dependencies and impact, and run a review after changes.
Why use it?
It tells agents which codemap query to use for tasks such as finding callers, tracing a change, locating an entry point, or checking related files.

Skill for Claude CodeCodex

Part of the codemap plugin — 1 skill, 1 command, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/abdul-hamid-achik/codemap/using-codemap
Any agent
npx skills add abdul-hamid-achik/codemap --skill using-codemap
Clone the repo
git clone --depth 1 https://github.com/abdul-hamid-achik/codemap

Made for: Claude Code, Codex.

Or install codemap, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 MCP server.

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 using-codemap

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdul-hamid-achik/codemap/using-codemap.svg)](https://agentmods.dev/skills/abdul-hamid-achik/codemap/using-codemap)
Your own site
<a href="https://agentmods.dev/skills/abdul-hamid-achik/codemap/using-codemap"><img src="https://agentmods.dev/badge/skills/abdul-hamid-achik/codemap/using-codemap.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00046 $0.02528
Opus 5 $0.00023 $0.01264
Sonnet 5 $0.00009 $0.00506
Haiku 4.5 $0.00005 $0.00253

Measured 3d ago against content hash 4aa96ffe5ea6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

using-codemap 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 3d ago.

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.

integrations/claude-code/skills/using-codemap/SKILL.md · 150 lines

How it starts

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

For structural code questions — who calls X, what breaks if I change Y, where do I start reading, what tests cover this — reach for codemap before grep or opening files: if answering would mean reading more than 2 files, call codemap_context (or codemap_context_batch) first. codemap is a precomputed code graph fused with semantic search, exposed as codemap_context, codemap_impact and friends over MCP (and as codemap … --json on the CLI).

Map the loop to the tools:

  • orient on a repo -> codemap_read_order (entrypoints + hubs, ranked)
  • locate -> codemap_semantic (by meaning) · codemap_find (by name) · codemap_grep (exact text: a literal, error string, route, env var) · codemap_explore (fuzzy intent → oriented structure)
  • resolve a file:line -> codemap_symbol_at (a stack trace / diff hunk / grep hit → a selector; batch positions:[…] for a whole trace)
  • orient on a file -> codemap_file_context (symbol outline + file impact + related files in one call)
  • understand -> codemap_context, codemap_impact, codemap_source
  • before a risky edit -> codemap_risk, codemap_file_impact, codemap_dependencies, codemap_related_files
  • after every edit -> codemap_review (it names the tests to run and folds one risk band)
  • calibrate trust -> codemap_coverage (per-file precise call-graph coverage)

Trust the honesty signals on every result: stale (reindex first), call_graph (resolved/name/unresolved/none), resolution, and the *_total caps. When a name is ambiguous the response already carries candidates:[…] and accepts a selector, so pick one definition from those instead of a second lookup. Prefer codemap_index --precise for exact call edges — it is also the only call graph for TypeScript, JavaScript and Python.

The workflow

Index once, then query. The typical agent loop for understanding or fixing code:

  1. codemap index # build the graph (+ embeddings if Ollama is up)
  2. where to start # codemap_read_order (entrypoints + hubs ranked — orient on a new repo)
  3. find the entry point # codemap_semantic "" OR codemap_find # OR codemap_grep "" (string literal, error message, route, env-var) # codemap_explore "" (fuzzy goal → bounded context neighborhoods, source-light) # got a file:line? codemap_symbol_at : (batch positions:[…] resolves a whole trace)
  4. orient on a symbol # codemap_context (def + callers + callees + tests + test_commands, ONE call) # codemap_context_batch … (several symbols at once + shared callers)
  5. go deeper # codemap_impact (blast radius + runnable test_commands) · codemap_source (full body) # codemap_callers / codemap_callees (add precise:true on Go) # codemap_references (callback/RunE/registration value wiring; not callers)
  6. before a risky change # codemap_risk (how careful?) # codemap_file_context (ONE call: symbol outline + file impact + related files) # codemap_dependencies (evidence only) · codemap_file_impact (evidence + blast/tests) # codemap_related_files (the other files structurally tied to this one)
  7. trace flow # codemap_path (shortest call chain)
  8. AFTER you edit # codemap_review (your diff → changed symbols, blast radius, the TESTS TO RUN)
  9. survey # codemap_hotspots (hubs) · codemap_orphans (dead code)

Stay fresh: codemap_status returns a "stale" object (files changed/new/deleted since the last index) — normally codemap_index before trusting snapshot-based results. Its "precise" map is true per call-graph language only when every indexed file completed precise resolution at the last index; combine it with stale and each query's call_graph enum. Deletion review is the exception: codemap_review uses retained old definitions when available, emits deletion_analysis, and orders selected tests before the reindex that prunes them. (A registered-but-never-indexed project reports indexed:false — codemap_index first.)

Read the full file on GitHub · 150 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. 3d ago First seen · 150 lines · 46 tokens per session scan A 4aa96ffe5ea6

Subscribe to this mod's changes

using-codemap is a skill published in the GitHub repository abdul-hamid-achik/codemap (2 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 2,528 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens