codemap
Analyze codebase structure, dependencies, and changes. Use when user asks about project structure, where code is located, how files connect, what changed, or before starting any coding task. Provides instant architectural context.
Install
mkdir -p .claude/skills/codemap && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1839" && unzip -o skill.zip -d .claude/skills/codemap && rm skill.zipInstalls to .claude/skills/codemap
About this skill
Codemap
Codemap gives you instant architectural context about any codebase. Use it proactively before exploring or modifying code.
Commands
codemap . # Project structure and top files
codemap --deps # Dependency flow (imports/functions)
codemap --diff # Changes vs main branch
codemap --diff --ref <branch> # Changes vs specific branch
codemap handoff . # Build + save handoff artifact
codemap handoff --latest . # Read latest saved handoff
codemap handoff --json . # Machine-readable handoff payload
codemap handoff --since 2h . # Limit timeline lookback when building
codemap handoff --prefix . # Stable prefix snapshot only
codemap handoff --delta . # Recent delta snapshot only
codemap handoff --detail a.go . # Lazy-load full detail for one changed file
When to Use
ALWAYS run codemap . when:
- Starting any new task or feature
- User asks "where is X?" or "what files handle Y?"
- User asks about project structure or organization
- You need to understand the codebase before making changes
- Exploring unfamiliar code
ALWAYS run codemap --deps when:
- User asks "how does X work?" or "what uses Y?"
- Refactoring or moving code
- Need to trace imports or dependencies
- Evaluating impact of changes
- Finding hub files (most-imported)
ALWAYS run codemap --diff when:
- User asks "what changed?" or "what did I modify?"
- Reviewing changes before commit
- Summarizing work done on a branch
- Assessing what might break
- Use
--ref <branch>when comparing against something other than main
ALWAYS run codemap handoff when:
- Handing work from one agent to another (Claude, Codex, MCP client)
- Resuming work after a break and you want a compact recap
- User asks "what should the next agent know?"
- You want a durable summary in
.codemap/handoff.latest.json
Output Interpretation
Tree View (codemap .)
- Shows file structure with language detection
- Stars (★) indicate top 5 largest source files
- Directories are flattened when empty (e.g.,
src/main/java)
Dependency Flow (codemap --deps)
- External dependencies grouped by language
- Internal import chains showing how files connect
- HUBS section shows most-imported files
- Function counts per file
Diff Mode (codemap --diff)
(new)= untracked file✎= modified file(+N -M)= lines added/removed- Warning icons show files imported by others (impact analysis)
Handoff (codemap handoff)
- layered output:
prefix(stable hubs/context) +delta(recent changed-file stubs + timeline) - changed file transport uses stubs (
path,hash,status,size) for lower context cost risk_fileshighlights high-impact changed files when dependency context is available- includes deterministic hashes (
prefix_hash,delta_hash,combined_hash) and cache metrics --latestreads saved artifact without rebuilding
Daemon and Hooks
- With daemon state: handoff includes richer timeline and better risk context.
- Without daemon state: handoff still works using git-based changed files.
- Hook behavior:
session-stopwrites.codemap/handoff.latest.jsonsession-startmay show recent handoff summary (24h freshness window)- session-start structure output is capped/adaptive for large repos
Examples
User asks: "Where is the authentication handled?"
Action: Run codemap . then codemap --deps to find auth-related files and trace their connections.
User asks: "What have I changed on this branch?"
Action: Run codemap --diff to see all modifications with impact analysis.
User asks: "How does the API connect to the database?"
Action: Run codemap --deps to trace the import chain from API to database files.
User asks: "I want to refactor the utils module"
Action: Run codemap --deps first to see what depends on utils before making changes.
User asks: "I'm switching to another agent, what should I pass along?"
Action: Run codemap handoff . and share the summary (or --json for tools).
User asks: "I just came back, what was in progress?"
Action: Run codemap handoff --latest . and continue from that state.
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
rust-coding-skill
UtakataKyosui
Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.