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.
npx skills add scroogy-dev/scroogy-agent-skills --skill code-mapgit clone --depth 1 https://github.com/scroogy-dev/scroogy-agent-skillsWrote 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.
[](https://agentmods.dev/skills/scroogy-dev/scroogy-agent-skills/code-map)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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를 읽습니다):
사용법
/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-workspaceupdate로 선언을 보강할 수 있다고 안내한다.AI-CONTEXT.md가 없으면 알리지 않는다. .ai/60_codebase/의 문서는 SSoT에서 파생된 2차 산출물이다.- SSoT와 문서 사이에 불일치가 발생하면 SSoT가 우선한다.
What ships with it
15 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.
- references/doc.md 10 KB
- references/global.md 11 KB
- references/local.md 11 KB
- tests/fixtures/doc-index/build.expected.md 1.2 KB
- tests/fixtures/doc-index/build.input.md 2.0 KB
- tests/fixtures/doc-index/README.md 3.0 KB
- tests/fixtures/doc-index/rename-check.expected.md 1.1 KB
- tests/fixtures/doc-index/rename-check.input.md 1.5 KB
- tests/fixtures/doc-index/root-changed-check.expected.md 709 B
- tests/fixtures/doc-index/root-changed-check.input.md 1.4 KB
- tests/fixtures/doc-index/root-changed-sync.expected.md 1.1 KB
- tests/fixtures/doc-index/root-changed-sync.input.md 1.8 KB
- tests/fixtures/doc-index/sync-same-root.expected.md 1.2 KB
- tests/fixtures/doc-index/sync-same-root.input.md 2.0 KB
- tests/run-tests.sh 61 KB runs code
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.
- 3d ago Changed · +17 lines ccb6fa65a637
- 7d ago Changed f38fbc0c68bc
- 9d ago Changed · +2 lines d2ac419ff0e8
- 11d ago Changed · +4 lines · +28 tokens per session e171126d2f23
- 2mo ago First seen · 203 lines · 70 tokens per session scan A d7cac1bbab02
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.
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…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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.
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…
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…