From map
Use when starting a new project, onboarding to an existing codebase, or when no architecture doc exists. Generates a codebase architecture doc and CLAUDE.md scaffold by exploring actual source and asking targeted questions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/map:mapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate `docs/codebase-architecture.md` (the map) and `.claude/CLAUDE.md` (the scaffold) for any project.
Generate docs/codebase-architecture.md (the map) and .claude/CLAUDE.md (the scaffold) for any project.
file:line pointers. Only inline a snippet when it's a one-liner with no source location yet.Check for docs/codebase-architecture.md and .claude/CLAUDE.md.
file:line refs, missing files, undocumented additions)Use subagents to scan config files, auto-detect the stack, and build a complete picture of the codebase — entry points, processing layers, state, file inventory, communication patterns, key types.
Focus on what exploration couldn't answer:
Write docs/codebase-architecture.md using the section catalog below.
Write .claude/CLAUDE.md:
file:line ref)Present both files. User refines. Commit when approved.
file:line refs. Don't reproduce info that's already in the source. Point at it with file:line.One sentence + key tech + storage/persistence approach.
Build, test, lint, format, REPL — whatever the project actually uses. Include working directory context.
Tables grouped by domain concern (not directory structure). Every source file gets a one-line Role. Within each group, list subsystem enumerations (union types, enum-like constants) and note shared/reused components.
When: Layered processing (web apps, event systems, pipelines, CLI with middleware).
Cover: Entry points, processing layers, output channels, both request and push directions, naming conventions at boundaries, sync vs async patterns.
When: Non-trivial state (game servers, real-time, complex frontend, stateful services).
Format: Compact key-type tables with file:line refs. Do NOT reproduce struct definitions — point at source. Cover: init location, key collections, polymorphic maps (flag explicitly), construction/transformation sites, derived vs stored state.
When: External-to-internal mapping layer (REST endpoints, LiveView events, GraphQL resolvers, CLI subcommands, message handlers).
Cover: Category groupings by domain, surface → internal format mapping, naming conventions, when to use pattern A vs B, push/subscription events.
When: Composition root pattern, dependency graph, or non-obvious module coupling.
Cover: Composition roots, dependency direction, inline "why" notes for non-obvious coupling, boundary enforcement patterns.
When: Repeatable patterns exist for extending the codebase. This is the highest-value section.
For each recipe: numbered steps with file:line refs, a Verify step (the command to run), and a canonical example to follow. Identify recipes from recent commits, test patterns, repeated file-edit patterns, and framework conventions. Include as many recipes as warranted.
npx claudepluginhub dylan/claude --plugin mapGenerates documentation explaining codebase architecture, key components, data flow, and development guidelines. Useful for understanding unfamiliar code, creating onboarding docs, or documenting system architecture.
Analyzes unfamiliar codebases to generate structured onboarding guides with architecture maps, key entry points, conventions, and starter CLAUDE.md.
Analyzes an unfamiliar codebase and generates a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md.