codebase-map
Skill by chromium
Builds an interactive, self-contained HTML map of a Chromium directory, covering the file tree, resolved OWNERS, DIR_METADATA, git activity and reviewers. Aimed at developers onboarding to Chromium code or choosing reviewers for a CL.
Install codebase-map
Built from the published package, never by AI.
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.claude/skills && cp -r /tmp/chromium/agents/skills/codebase-map ~/.claude/skills/codebase-mapRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chromium/agents/skills/codebase-map ~/.gemini/antigravity-cli/skills/codebase-mapAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The codebase-map skill builds a single HTML file for a Chromium directory, written to out/codebase_map/. The page shows a file tree grouped by role, resolved OWNERS with inheritance and per-file rules, DIR_METADATA, recent git activity, and who actually reviews in that directory. A scripts/codebase_map.py tool extracts the facts, and the agent writes the prose for the summary and descriptions.
It also includes a reviewer planner. Tick files in the map and it suggests a small approver set, with notes on set noparent rules and a ready R= line. The map can be served on localhost, and the skill also offers a --proxy mode for browser access through a proxy. It is aimed at developers onboarding to unfamiliar Chromium code or deciding who should review a change.
Written from the project's SKILL.md and checked against it.
What it can do
- Directory mapBuilds a self-contained HTML map of a Chromium directory with a role-grouped file tree.
- OWNERS resolutionResolves OWNERS with inheritance, per-file rules and set noparent.
- DIR_METADATAShows DIR_METADATA for the directory, inheriting unset fields from the parent.
- Reviewer plannerSuggests a small approver set for a CL and produces a ready R= line.
- Activity viewLists top contributors, hot-spot files and recent commits linking to crrev.
- Local servingServes the maps on localhost, with an optional --proxy mode for proxy access.
What you need
- A Chromium src/ checkout
- Python 3
- git
Try asking
- Map the layout and owners of chrome/browser/ui/tabs
- Who should review my CL that touches these files?
- Give me an overview of chrome/browser/ui/tabs
Good to know
- Refuses to map the repo root; a directory must be picked.
- Only git-tracked files are mapped; symlinks are skipped.
- Dependency edges between subdirectories are not extracted yet.
- The local server stops after 120 idle minutes by default.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agents/skills/codebase-map/SKILL.md, agents/skills/codebase-map/scripts/codebase_map.py, agents/skills/codebase-map/scripts/fake_dom_for_test.js. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
OWNERS20 B -
README.md5 KB -
SKILL.md10 KB -
scripts/codebase_map.py66 KB -
scripts/codebase_map_test.py84 KB
Show all 7 files
-
scripts/fake_dom_for_test.js14 KB -
templates/map.html68 KB
Alternatives to codebase-map
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
codebase-map: common questions
Does the codebase map need external dependencies?
No. The map is a single self-contained HTML file with no external dependencies.
Which OWNERS rules does it resolve?
It follows file://, file: and include up to 4 levels deep, and handles per-file rules, set noparent and LAST_RESORT_SUGGESTION.
Can other people read the maps?
By default the server listens only on 127.0.0.1. With --proxy it listens on all interfaces, so anyone who can reach the port can read the maps while it runs.
How do I install codebase-map?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is codebase-map free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is codebase-map safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to codebase-map?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
