code-map

code-map is a skill for Claude Code, Codex from scroogy-dev/scroogy-agent-skills. It costs 98 tokens per session (4,002 once invoked), scanned A, original, Apache-2.0.

A codebase index that records where features start, how calls move through the code, and which domain, contract, and architecture-decision documents relate to them.

In plain words
What is it for?
Use it to create and maintain Markdown maps of feature entry points and call flows, with links to related project documents.
Why use it?
It reduces the time an agent or developer spends searching an unfamiliar codebase and piecing together how parts connect. It can organize one repository or shared knowledge across multiple repositories.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create and maintain Markdown maps of feature entry points and call flows, with links to related project documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scroogy-dev/scroogy-agent-skills/code-map
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 scroogy-dev/scroogy-agent-skills --skill code-map
Clone the repo
git clone --depth 1 https://github.com/scroogy-dev/scroogy-agent-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/code-map"><img src="https://agentmods.dev/badge/skills/scroogy-dev/scroogy-agent-skills/code-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,002 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.00098 $0.04002
Opus 5.5 $0.00039 $0.01601
Sonnet 5.5 $0.00020 $0.00800
Haiku 4.5 $0.00010 $0.00400

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

Security

Grade A, and why

code-map 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.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/run-tests.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.

code-map/SKILL.md · 226 lines

How it starts

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

개요

안내도가 선언한 SSoT(Single Source of Truth, 단일 진실 공급원)를 .ai/60_codebase/에 마크다운으로 색인합니다. SSoT가 소스 코드이면 기능별 엔트리포인트와 호출 흐름을, 원본 문서이면 ssot_dir 아래 문서 파일 지도를 만듭니다. AI가 구현, 테스트, 코드 리뷰, 문서 작업 등 맥락 파악이 필요할 때 60_codebase/index.md를 진입점으로 읽고, 관련된 SSoT·도메인 지식·계약·ADR 문서를 빠르게 찾을 수 있도록 합니다.

"건물·층" 비유의 2레이어 구조를 사용하며, 하나의 스킬이 두 가지 모드로 동작합니다:

  • --local (floor 모드): 개별 리포의 .ai/60_codebase/에 코드 색인 또는 원본 문서 색인을 생성·관리
  • --global (building 모드): 멀티 리포 환경에서 공통 도메인 지식을 통합·관리

관련 skill

  • ai-workspace (권장): .ai/ 디렉토리 구조를 활용합니다. 없으면 .ai/60_codebase/ 디렉토리를 직접 생성합니다. .ai/30_contract/, .ai/40_domain/, .ai/50_adr/ 경로의 문서가 있으면 교차 참조로 연결합니다.
  • context-harvest (쌍): code-map이 소스코드(How)를 색인하는 스킬이라면, context-harvest는 소스코드 바깥의 What+Why를 수집·증류하여 30_contract/, 40_domain/, 50_adr/ 문서를 생성하는 스킬입니다. context-harvest 실행 후 code-map --local sync를 실행하면 새로 생긴 문서를 교차 참조로 연결합니다.

참조 문서

  • 공통 규칙: .ai/10_rules/context-loading.md — 있으면 따르며, 이미 적재되어 있으면 재로딩하지 않습니다.
  • 스킬 고유 추가 참조:
    • .ai/30_contract/index.md, .ai/40_domain/index.md, .ai/50_adr/index.md — 교차 참조 연결용 (index 먼저 → 관련 파일만 선택적으로 추가 로드)
  • 분리 참조 파일 (references/ — 모드 결정 후 해당 모드 파일만 읽습니다. --local은 SSoT 선언이 원본 문서이면 doc.md를, 그 밖이면 local.md를 읽습니다):
    • local.md — --local (floor 모드) 실행 절차 (SSoT가 소스 코드이거나 선언이 없을 때)
    • doc.md — --local (floor 모드) 원본 문서 색인 실행 절차 (SSoT 선언이 원본 문서일 때)
    • global.md — --global (building 모드) 실행 절차

사용법

/code-map --local          # 현재 리포의 코드 색인 또는 원본 문서 색인 생성/갱신
/code-map --global         # 멀티 리포 공통 도메인 지식 통합·관리

옵션을 생략하면 사용자에게 선택을 요청합니다.


적용 대상

  • Java 웹 애플리케이션 (Spring Boot, Spring MVC 등)
  • Java 배치 애플리케이션 (Spring Batch, 스케줄러 등)
  • 원본 문서 저장소 (SSoT 선언이 원본 문서인 doc 프로파일 repo. ssot_dir 아래 문서 파일)

핵심 원칙

SSoT 원칙

  • SSoT는 AI-CONTEXT.md 본문 2번째 줄(H1 제목과 그 뒤 빈 줄 제외)의 > SSoT: <값>. 선언을 따른다. 값은 소스 코드 또는 원본 문서이며 그 외 값은 선언으로 보지 않는다. 선언을 찾지 못하면 소스 코드를 SSoT로 본다. AI-CONTEXT.md는 있는데 선언을 찾지 못해 소스 코드로 진행하면 그 사실을 사용자에게 한 줄로 알리고, ai-workspace update로 선언을 보강할 수 있다고 안내한다. AI-CONTEXT.md가 없으면 알리지 않는다.
  • .ai/60_codebase/의 문서는 SSoT에서 파생된 2차 산출물이다.
  • SSoT와 문서 사이에 불일치가 발생하면 SSoT가 우선한다.

Read the full file on GitHub · 226 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 Changed · +17 lines ccb6fa65a637
  2. 7d ago Changed f38fbc0c68bc
  3. 9d ago Changed · +2 lines d2ac419ff0e8
  4. 11d ago Changed · +4 lines · +28 tokens per session e171126d2f23
  5. 2mo ago First seen · 203 lines · 70 tokens per session scan A d7cac1bbab02

Subscribe to this mod's changes

code-map is a skill published in the GitHub repository scroogy-dev/scroogy-agent-skills (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 98 tokens to every session and 4,002 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

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

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 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

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens