codemap

codemap is a skill for Claude Code, Codex from griddynamics/rosetta. It costs 14 tokens per session (849 once invoked), scanned A, original, Apache-2.0.

A project map that records the main folders, modules, entry points, and ownership areas in a codebase.

In plain words
What is it for?
It helps create, update, and query a lightweight structural map of a software project.
Why use it?
It gives an agent a quick way to understand how a project is arranged before changing or investigating it.

Skill for Claude CodeCodex

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/griddynamics/rosetta/codemap
Any agent
npx skills add griddynamics/rosetta --skill codemap
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code, Codex.

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 codemap

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/codemap.svg)](https://agentmods.dev/skills/griddynamics/rosetta/codemap)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/codemap"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/codemap.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 849 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.00014 $0.00849
Opus 5 $0.00007 $0.00425
Sonnet 5 $0.00003 $0.00170
Haiku 4.5 $0.00001 $0.00085

Measured yesterday against content hash e68af7469f0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

instructions/r3/core/skills/codemap/SKILL.md · 79 lines

What it actually says

Workspace cartographer. Produces a lightweight, top-level structural map of a project — folder/module layout, key entry points, and ownership — for fast architectural orientation.

Precedence: LSPs > graphify > gitnexus > shell scripts — use the first that is REQUESTED and available.

Keep CODEMAP.md initialized and updated REGARDLESS.

Do not guess or try to figure out those above => if tools existed you would know that already => fallback to scripts and processes below.

IF graphify is already REQUESTED in current context:

  • querying the codebase, tracing dependency paths between symbols, or explaining concepts (graphify query/path/explain): MUST USE SKILL graphify
  • building or incrementally updating the knowledge graph (/graphify <path>, --update): MUST USE SKILL graphify
  • After modifying code, run graphify update . to keep the graph current (AST-only, no API cost)

IF gitnexus is already REQUESTED in current context:

  • code graph queries, exploring code, debugging errors, analyzing impact, or refactoring: MUST APPLY SKILL FILE assets/gitnexus-use.md
  • running CLI commands, indexing, checking status, cleaning index, or generating wiki: MUST APPLY SKILL FILE assets/gitnexus-cli.md
  • Worked examples: READ SKILL FILE assets/gitnexus-examples.md
  • After modifying code, run npx gitnexus analyze --force in the workspace root

<core_concepts>

  • The codemap is a structural orientation tool — folder/module layout, entry points, recursive file counts, and short per-directory descriptions. It feeds structural awareness into planning and discovery; it does not capture symbol-level or call-graph detail.
  • The output is written to CODEMAP.md at the workspace root: markdown headers = workspace-relative path + recursive children count + short (<10 words) description, listing only immediate children file names per directory, 3-4 levels deep.
  • Noise, caches, build artifacts, binaries, and .gitignore-excluded files are excluded (the scripts use git ls-files).

</core_concepts>

<how_to_generate>

  1. Get the generator for the current OS (Unix/macOS: make executable first):
    • Unix/macOS: READ SKILL FILE assets/codemap.sh.txt
    • Windows: READ SKILL FILE assets/codemap.ps1.txt
  2. Execute the script:
    • Unix/macOS: codemap.sh [WORKSPACE_ROOT] [MAX_DEPTH]
    • Windows: codemap.ps1 -WorkspaceRoot <path> -MaxDepth <n>
    • Defaults: current directory, depth 4. Writes CODEMAP.md to workspace root.
  3. Read the generated CODEMAP.md and incorporate it into the current task's discovery notes or working context.

</how_to_generate>

<how_to_use_output>

  • Treat the codemap as the structural baseline for planning and discovery — use it to locate entry points, module boundaries, and ownership before diving into code.
  • For large workspaces, the codemap is the partitioning input: USE SKILL large-workspace-handling, which scopes subagents against CODEMAP.md headers.
  • Keep only current structural state in CODEMAP.md — no deltas, no changelogs.

</how_to_use_output>

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 First seen · 79 lines · 14 tokens per session scan A e68af7469f0f

Subscribe to this mod's changes

codemap is a skill published in the GitHub repository griddynamics/rosetta (342 stars, last pushed yesterday), licensed Apache-2.0. It adds 14 tokens to every session and 849 once invoked, about $0.0001 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-09-03.