claude

Understand Code

Scan a repository into a traceable knowledge graph, explore it in an interactive dashboard, generate a graph-linked Markdown knowledge base, and answer code questions from that evidence.

1 on GitHubby Lum1104v2.7.6MITupdated 29 days agodevelopment
/

Plugin understand-code from marketplace understand-code in chifanjie/Tomato. Commands read from the repo's manifest — 26 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (11)

  • understand-chat

    Use when you need to ask questions about a codebase or understand code using a knowledge graph

  • understand-dashboard

    Launch the interactive web dashboard to visualize a codebase's knowledge graph

  • understand-diff

    Use when you need to analyze git diffs or pull requests to understand what changed, affected components, and risks

  • understand-doctor

    Diagnose an Understand Code installation — plugin root, build state, graph and knowledge-base freshness — and report exactly what to run next. Use when a /understand command fails, when the dashboard shows no graph or no knowledge base, or when the user asks whether the plugin is installed correctly

  • understand-domain

    Extract business domain knowledge from a codebase and generate an interactive domain flow graph. Works standalone (lightweight scan) or derives from an existing /understand knowledge graph.

  • understand-explain

    Use when you need a deep-dive explanation of a specific file, function, or module in the codebase

  • understand-full

    Run the full Understand Code workflow: generate graph, launch dashboard, generate knowledge base, and link the dashboard to the generated knowledge base

  • understand-kb

    Generate a complete Markdown knowledge base from an existing understand-code code knowledge graph

  • understand-knowledge

    Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.

  • understand-onboard

    Use when you need to generate an onboarding guide for new team members joining a project

  • understand

    Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships

Subagents (12)

  • architecture-analyzer

    Analyzes a codebase's file structure, summaries, and import relationships to identify logical architectural layers and assign every file to exactly one layer.

  • article-analyzer

    Analyzes markdown files using pre-parsed structural data and LLM inference to extract knowledge graph nodes and edges (entities, claims, implicit relationships, topic clustering).

  • assemble-reviewer

    Reviews the output of merge-batch-graphs.py for semantic issues the script cannot catch. Recovers dropped nodes/edges and fills cross-batch gaps.

  • domain-analyzer

    Analyzes codebases to extract business domain knowledge — domains, business flows, and process steps. Produces a domain-graph.json that maps how business logic flows through the code.

  • file-analyzer

    Analyzes batches of source files to produce knowledge graph nodes and edges. Extracts file structure, functions, classes, and relationships using a two-phase approach: structural extraction script followed by LLM semantic analysis.

  • graph-reviewer

    Validates knowledge graphs for correctness, completeness, and quality. Runs systematic checks and renders approval or rejection decisions.

  • kb-featured-writer

    Writes source-grounded project overview, reading entry, capability, flow and module pages from the exact featured plan.

  • kb-file-writer

    Generates complete Chinese file-level knowledge documents from file-doc tasks, graph context, and source code.

  • kb-topic-writer

    Generates Chinese topic documents for important functions/classes selected from the complete file-document layer.

  • knowledge-graph-guide

    Use this agent when users need help understanding, querying, or working with an Understand-Anything knowledge graph. Guides users through graph structure, node/edge relationships, layer architecture, tours, and dashboard usage.

  • project-scanner

    Scans a codebase directory to produce a structured inventory of all project files, detected languages, frameworks, import maps, and estimated complexity.

  • tour-builder

    Designs guided learning tours through codebases, creating 5-15 pedagogical steps that teach project architecture and key concepts in logical order.

Hooks (2)

  • PostToolUse

    node "${CLAUDE_PLUGIN_ROOT}/hooks/understand-code-hook.mjs" post-tool-use 2>/dev/null || true

  • SessionStart

    node "${CLAUDE_PLUGIN_ROOT}/hooks/understand-code-hook.mjs" session-start 2>/dev/null || true

View source on GitHub

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

AI-powered codebase understanding — analyze, visualize, and explain any project

9 skills · 10 agents · hooks

Egonex-AI/Understand-Anything 92,410

diagram-design

claudecodex

Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.

1 skill · 7 commands

cathrynlavery/diagram-design 66,757

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Maintain Understand Code?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted