Skip to content
agents.store
devdevelopment

codemap-dev

Code understanding plugin for developers. Helps onboard to unfamiliar projects through beginner-friendly code review, step-by-step explanations, visual diagrams (architecture, ERD, flows) via drawio-mcp, and frontend testing via Playwright MCP.

v1.4.7Updated

  • codemap
  • onboarding
  • code-review
  • diagrams
  • drawio
  • architecture
  • erd
  • playwright
  • frontend-testing

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install codemap-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (5)

  • codemap-diagram

    This skill should be used when the user asks to "draw a diagram", "visualize architecture", "show me the database schema", "create an ERD", "sequence diagram", "flow diagram", "dependency graph", "architecture diagram", "C4 diagram", or needs any visual representation of code structure, data flow, or system architecture. All diagrams are generated as native mxGraph XML and rendered via drawio-mcp. Also triggers when a code explanation would benefit from a visual aid.

  • codemap-examples

    This skill should be used when the user asks for "codemap examples", "how to use codemap", "show me what codemap can do", "codemap walkthrough", or wants to see end-to-end usage scenarios for the codemap plugin.

  • codemap-explain

    Use when the user wants existing code explained as a learner - what a file, function or module does, how a request or data flows through the project, why it was built that way, or a tour of a codebase. Gives a structured step-by-step explanation (context, data flow, details, pitfalls) pitched at the user's level, preferred to an ad-hoc answer when the user is learning the code. Not for code review (codemap-review) or diagrams (codemap-diagram).

  • codemap-review

    Use when a developer asks for feedback on code they wrote - to review it, check their work, say what is wrong with it or what to improve - whether it is a pasted snippet, a file, a diff or a pull request. Returns findings ranked by severity, each with why it matters and a fix, plus what is done well, pitched for learners. Not for explaining how code works (codemap-explain) or testing a running app (frontend-test).

  • frontend-test

    This skill should be used when the user asks to "test the frontend", "check the UI", "explore the app in a browser", "test my admin panel", "find frontend bugs", "check for console errors", "verify the app works in a browser", "test user flows", "check the website", or wants a comprehensive frontend health report for a running application. Also triggers when the user says "open my app and test it", "browse my app", "check if the UI is working", or "give me a frontend report". Uses Playwright MCP to navigate, interact, and diagnose.

Commands (7)

  • db

    Parse models, migrations, or schema and generate an ERD diagram + DB documentation

  • diagram

    Generate a specific diagram — architecture, flow, db, sequence, deps

  • explain

    Step-by-step explanation of a file, function, or module with mini-diagram if appropriate

  • flows

    Find main user flows (entry points → services → DB) and visualize them

  • onboard

    Generate a full onboarding report — README summary, stack, folder structure, entry points, how to run locally, and 3 main diagrams (architecture, main flow, DB)

  • review

    Review a file, directory, or PR diff in beginner-friendly mode — structured feedback with "why" explanations

  • test-frontend

    Test a running app's frontend — navigate pages, check UI, find errors, generate report

Agents (4)

  • architect-explainer

    Use this agent when the user wants to understand project architecture, how components connect, what a module does, or needs a guided tour of a codebase. <example> Context: User just joined a project and wants to understand it user: "Explain the architecture of this project to me" assistant: "I'll use the architect-explainer agent to analyze and explain the project structure." <commentary> New developer needs a guided tour of the project architecture. </commentary> </example> <example> Context: User wants to understand a specific module user: "How does the authentication system work in this project?" assistant: "I'll use the architect-explainer agent to trace and explain the auth flow." <commentary> Developer wants to understand a specific subsystem with context. </commentary> </example> <example> Context: User wants to understand data flow user: "How does data flow from the form to the database in this app?" assistant: "I'll use the architect-explainer agent to trace the data flow." <commentary> Developer wants to understand the request lifecycle. </commentary> </example>

  • code-reviewer

    Use this agent when the user wants a code review with beginner-friendly explanations — reviewing files, PRs, diffs, or asking about code quality, security, or style issues. <example> Context: User wants feedback on a specific file user: "Review routes/deals.py for me" assistant: "I'll use the code-reviewer agent to analyze the file." <commentary> Developer wants a beginner-friendly code review of a specific file. </commentary> </example> <example> Context: User wants to understand what's wrong with their code user: "What mistakes am I making in this file?" assistant: "I'll use the code-reviewer agent to identify issues and explain them." <commentary> Beginner developer wants to learn from their mistakes with explanations. </commentary> </example> <example> Context: User wants a PR reviewed user: "Review PR #15 and explain issues for a junior developer" assistant: "I'll use the code-reviewer agent to review the PR diff." <commentary> Developer wants a PR review with educational explanations. </commentary> </example>

  • diagrammer

    Use this agent when the user wants to generate visual diagrams of code — architecture diagrams, ERDs, sequence diagrams, flow charts, dependency graphs, or any visual representation. <example> Context: User wants a database diagram user: "Generate an ERD for this project's database" assistant: "I'll use the diagrammer agent to analyze models and create the ERD." <commentary> Developer wants a visual ERD from the project's models. </commentary> </example> <example> Context: User wants an architecture overview user: "Draw me the architecture of this application" assistant: "I'll use the diagrammer agent to create an architecture diagram." <commentary> Developer wants a C4-style architecture diagram. </commentary> </example> <example> Context: User wants a flow diagram user: "Show me the login flow as a sequence diagram" assistant: "I'll use the diagrammer agent to trace and visualize the login flow." <commentary> Developer wants a sequence diagram for a specific endpoint. </commentary> </example>

  • frontend-tester

    Use this agent when the user wants to test the frontend of a running application — navigate pages, check UI elements, test forms, find console errors, verify user flows, or generate a frontend health report. <example> Context: User wants to verify their app's frontend works user: "Test the frontend of my app running on localhost:3000" assistant: "I'll use the frontend-tester agent to navigate and test the app." <commentary> Developer wants automated frontend exploration and testing of their running app. </commentary> </example> <example> Context: User wants to check their admin panel user: "Check the admin panel at localhost:8080/admin for UI issues" assistant: "I'll use the frontend-tester agent to explore and test the admin panel." <commentary> Developer wants to verify an admin interface for broken elements and errors. </commentary> </example> <example> Context: User wants a comprehensive frontend report user: "Give me a full report on how the frontend works and any issues" assistant: "I'll use the frontend-tester agent to do a thorough frontend analysis." <commentary> Developer wants a structured report covering pages, flows, errors, and UI health. </commentary> </example>

MCP servers (2)

  • drawio http
  • playwright stdio

README

Code understanding plugin for Claude Code. Helps developers (especially beginners) quickly onboard to unfamiliar projects through structured code review, step-by-step explanations, and visual diagrams via drawio-mcp.

What It Does

  • Onboarding: Generates a full onboarding package — project overview, architecture docs, and 3 key diagrams
  • Code Review: Beginner-friendly review with "why" explanations, not just "fix this"
  • Code Explanation: 4-layer model (Context → Data Flow → Details → Pitfalls)
  • Diagrams: Architecture, ERD, user flows, sequence diagrams — all as native .drawio files via drawio-mcp
  • Frontend Testing: Navigate a running app, test forms and interactions, collect console/network errors — via Playwright MCP

Usage Modes

How you invokeWhat happens
/codemap-dev:review file.py (command)Agent launches automatically
/codemap-dev:explain app.py (command)Agent launches automatically
/codemap-dev:diagram architecture (command)Agent launches automatically
/codemap-dev:test-frontend localhost:3000 (command)Agent launches automatically
"review file.py" (chat trigger)Skill triggers → asks: agent or inline?
"explain app.py" (chat trigger)Skill triggers → asks: agent or inline?
"test the frontend" (chat trigger)Skill triggers → asks: agent or inline?

Commands always delegate to specialized agents. Skills (auto-triggered by chat) give you the choice.

Requirements

  • drawio-mcp — public HTTP MCP server (auto-configured by plugin, no API key needed)
  • Playwright MCP — local stdio server, auto-installed via npx @playwright/mcp@0.0.86 (requires Node.js 20 or later)

Commands

CommandDescription
/codemap-dev:onboardFull onboarding report + 3 diagrams (architecture, main flow, ERD)
/codemap-dev:review <path|PR#>Beginner-friendly code review
/codemap-dev:explain <path|symbol>Step-by-step code explanation
/codemap-dev:diagram <type> [scope]Generate specific diagram (architecture, flow, db, sequence, deps)
/codemap-dev:dbParse models/migrations and generate ERD + DB documentation
/codemap-dev:flowsDiscover and visualize main user flows
/codemap-dev:test-frontend [url]Test running app's frontend — navigate pages, check UI, find errors, generate report

Skills (auto-triggered in chat)

SkillTriggers when...
codemap-reviewUser asks to review code, check quality, find issues
codemap-explainUser asks to explain code, understand a file/function. Asks about depth (overview/moderate/deep dive) and aspect of interest before explaining. Ref: explanation-patterns.md
codemap-diagramUser asks for a diagram, visualization, ERD, flow chart
frontend-testUser asks to test the frontend, check UI, find browser errors, verify app works

Agents

AgentRoleModel
code-reviewerFocused code review with educational feedbackOpus
architect-explainerArchitecture analysis and guided project toursOpus
diagrammerDiagram generation via drawio-mcpSonnet
frontend-testerFrontend testing via Playwright MCPSonnet

Output Artifacts

All generated files are saved to docs/codemap/ in the project:

  • docs/codemap/ONBOARDING.md — summary document for newcomers
  • docs/codemap/ARCHITECTURE.md — textual architecture description with diagram links
  • docs/codemap/DB.md — database schema description + ERD
  • docs/codemap/FLOWS.md — main user flows with diagrams
  • docs/codemap/FRONTEND.md — frontend testing report (pages, errors, recommendations)
  • docs/codemap/diagrams/*.drawio — all generated diagrams (open with draw.io)

Diagram Types

TypeCommandUse for
C4 Containerdiagram architectureSystem overview — services, databases, external APIs
Flowchartdiagram flow <feature>User action step-by-step progression
ERDdiagram db or dbDatabase tables and relationships
Sequencediagram sequence <endpoint>Request lifecycle between components
Dependencydiagram deps <module>Module import/dependency graph

Principles

  • All diagrams are native mxGraph XML rendered via drawio-mcp — no Mermaid
  • Skills are reusable: work both in commands and when users ask questions in chat
  • Review feedback explains "why", not just "what" to fix
  • Explanations use real names from code, not generic labels