oaw-codemap

oaw-codemap is a skill for Claude Code, Codex from lihowfun/O-ALL-WANT. It costs 43 tokens per session (779 once invoked), scanned A, original, MIT.

An offline code map for a repository. It indexes Python, JavaScript, and TypeScript files to show module links, callers, affected files, and a short project overview.

In plain words
What is it for?
Use it to draw dependency diagrams, find where a function is called, trace imports between files, locate likely affected code, and search for code by description.
Why use it?
It helps you decide which files to read first when you do not know a codebase. Its results are pointers to source lines, not verified explanations of what the code does.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/code_index.py graph --scope src --out map.html # offline drawing; open locally.

Good fit Use it to draw dependency diagrams, find where a function is called, trace imports between files, locate likely affected code, and search for code by description.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lihowfun/O-ALL-WANT
agentmods
npx agentmods add skills/lihowfun/o-all-want/oaw-codemap

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lihowfun/o-all-want/oaw-codemap/github.svg)](https://agentmods.dev/skills/lihowfun/o-all-want/oaw-codemap)
Your own site
<a href="https://agentmods.dev/skills/lihowfun/o-all-want/oaw-codemap"><img src="https://agentmods.dev/badge/skills/lihowfun/o-all-want/oaw-codemap/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 oaw-codemap

Your own site · 80×15
<a href="https://agentmods.dev/skills/lihowfun/o-all-want/oaw-codemap"><img src="https://agentmods.dev/badge/skills/lihowfun/o-all-want/oaw-codemap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 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.00043 $0.00779
Opus 5.5 $0.00017 $0.00312
Sonnet 5.5 $0.00009 $0.00156
Haiku 4.5 $0.00004 $0.00078

Measured 14d ago against content hash 2af60b1b9871, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oaw-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 14d 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.

example/minimal-project/.agents/skills/oaw-codemap/SKILL.md · 55 lines

How it starts

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

OAW code map

Run from the project root with Python 3.10+ (py -3 on Windows if needed):

python3 scripts/code_index.py graph --scope src --out map.html  # offline drawing; open locally
python3 scripts/code_index.py graph --scope src --format mermaid  # small diagram for context
python3 scripts/code_index.py overview                    # one page: entry points, main modules, most-called definitions
python3 scripts/code_index.py callers PATH::NAME          # call sites (Python, JavaScript, TypeScript)
python3 scripts/code_index.py affected PATH[::NAME] --hops 2
python3 scripts/code_index.py find "free-text description"
python3 scripts/code_index.py path A.py B.py               # import chain between two modules
  • Use it to decide where to read: callers and impact first; overview in an unfamiliar repository. Skip it in a small repository or when you already know the file.
  • Text query results are pointers: file:line and one line of source. Read those lines before you state what the code does, and describe behavior from what you read, not from this output.
  • "complete within the index" means every indexed match came back, within the languages and hops it tracks. Calls on receivers of unknown type are listed apart. Dynamic dispatch, string-named calls, reflection and dependency injection are not followed.
  • The cache lives in your user cache folder, outside the project; --no-cache skips it.
  • graph reuses the index: files grouped by directory, arrows to dependencies, weight = import bindings + resolved call sites. HTML has search, neighbor highlighting and top callers/callees; no network or CDN. Graphs include tests and isolated Python/JS/TS files; external, unresolved and intra-file edges are omitted.
  • --scope DIR keeps both endpoints inside that directory. --format json exposes the same graph data. Caps default to 200 nodes/500 edges (Mermaid: 40/80); --max-nodes and --max-edges accept 1–1000. Read complete, truncated, totals and limits before claiming coverage. Lists describe displayed edges. Use a smaller scope when truncated; nodes rank by total incident edge weight, with path tie-breaks. Exported paths and structure may be private; review before sharing. No agent comprehension benefit is measured.

Read the full file on GitHub · 55 lines

Files

What ships with it

1 file 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. 14d ago Changed · +18 lines 2af60b1b9871
  2. 16d ago First seen · 37 lines · 43 tokens per session scan A 65828199f531

Subscribe to this mod's changes

oaw-codemap is a skill published in the GitHub repository lihowfun/O-ALL-WANT (17 stars, last pushed 14d ago), licensed MIT. It adds 43 tokens to every session and 779 once invoked, about $0.0002 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-11-15.

Related

oaw-codemap compared with skills from other repositories

oaw-codemap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oaw-codemaplihowfun/O-ALL-WANTSkill1714d agoMITA43Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7kyesterdayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9kyesterdayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex