/project-map
Produce an annotated map of a repository: directory purposes, entry points, module dependencies, change hotspots and a where-do-I-look table, so a developer or an AI agent can navigate fast. Read-only.
What it does
Produce an annotated map of a repository: directory purposes, entry points, module dependencies, change hotspots and a where-do-I-look table, so a developer or an AI agent can navigate fast. Read-only.
- Category
- corenavigationanalysis
- Platforms
- generic
- Capabilities
- analysisdocumentation
Example tasks
- /project-map
- /project-map where is checkout handled?
- /project-map apps/web
Works with
Related skills
Recommended alongside
Permissions summary
Files
Reads files only
Shell
Runs a limited set of commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/commands/<id>.md |
| OpenAI Codex | Adapter | .codex/prompts/<id>.md |
| Cursor | Native | .cursor/commands/<id>.md |
| VS Code (Copilot) | Native | .github/prompts/<id>.prompt.md |
| Generic markdown | Adapter | docs/forgekit/commands/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
Full command (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Build a navigable map of this repository. Subpath or question (empty means the whole repo): $ARGUMENTS
Read-only. Annotate only what you opened or searched; if you did not look inside a directory, label it "not inspected".
- Existing context first. Read
AGENTS.md,CLAUDE.md,README.md,docs/index files. Reuse their descriptions where they still match the code; flag contradictions. - Inventory. Use
git ls-files(Glob if not a git repo) to list directories to depth 2 (depth 3 inside the focus path). Skip generated and vendored folders (node_modules,dist,build,.next,Pods,.gradle,vendor,Library) and say you skipped them. - Entry points. Find where execution starts:
main/indexfiles,binentries, framework route directories,scriptsin the manifest, workers/cron definitions,DockerfileCMD, mobileApplication/Appclasses. - Dependency direction. For each top-level module or package, sample its imports with Grep to determine which other modules it depends on; draw it as a short list
A -> B, Cand flag any back-edge or cycle you find. - Hotspots. Run
git log --since=6.months --name-only --pretty=format: | sort | uniq -c | sort -rn | head -15to list the most-changed files; note which ones are also very large (wc -l). - Question mode. If
$ARGUMENTSis a question ("where is X handled"), answer it first with exact file paths and a 3-5 step trace of the flow, then show only the part of the map that supports it.
Do not modify files, run builds, or install anything. Allowed shell: git ls-files, git log, wc, ls, sort, uniq, head.
Output: an annotated tree in a code block (max 60 lines, one short purpose per directory), Entry points, Dependency direction, Hotspots (file, change count, lines), a Where do I look for...? table (routes, data models, config, auth, tests, CI, build), and Not inspected / uncertain.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — /project-map
1.0.0
- Initial release.