understand-domain

Extract business domains, flows, and process steps from a codebase into an interactive flow graph.

90.9k|7.8k|Updated Mar 15, 2026
Ready to run
npx skills add https://github.com/Lum1104/Understand-Anything --skill understand-domain-lum1104
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: understand-domain
Source: https://github.com/Lum1104/Understand-Anything/tree/main/understand-anything-plugin/skills/understand-domain
Command: npx skills add https://github.com/Lum1104/Understand-Anything --skill understand-domain-lum1104

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Understanding a large codebase requires mapping how business domains connect, what flows exist between them, and which steps execute within each flow. Manual exploration is time-consuming; this Skill automates domain extraction and visualization. ## Core Features & Use Cases - Domain Knowledge Extraction: Identifies business domains, processes, and workflows from code structure and entry points. - Interactive Flow Graphs: Generates horizontal flow visualizations showing domain relationships and execution paths. - Graph Derivation: Reuses existing knowledge graphs for fast analysis, or performs lightweight codebase scanning when starting fresh. - Use Case: You inherit a Node.js backend with dozens of microservices. Run this Skill to automatically map all HTTP routes, event handlers, and CLI commands into a domain graph showing how payment processing, order fulfillment, and notifications interact. ## Quick Start Run understand-domain to analyze your current project and visualize its business domains and process flows in the dashboard.

Frequently Asked Questions about understand-domain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does understand-domain extract domains from code?▼

The Skill scans for entry points (HTTP routes, CLI commands, event handlers, cron jobs) and file structure, then uses an LLM agent to analyze these patterns and infer business domains. It prioritizes files with business logic keywords like 'controller', 'service', 'handler', and 'workflow'.

Can understand-domain work with existing knowledge graphs?▼

Yes. If a knowledge graph already exists from a previous `/understand` run, the Skill reuses it for fast domain extraction without rescanning files. Use the `--full` flag to force a fresh scan regardless of existing graphs.

What programming languages and frameworks does it support?▼

It detects entry points in TypeScript, JavaScript, Python, Go, Rust, Java, and other common languages. Framework support includes Express, FastAPI, NestJS, Flask, gRPC, and GraphQL resolvers.

Why does understand-domain warn about stale graphs?▼

The Skill compares the graph's recorded Git commit against the current HEAD. If project files changed since the graph was created, domain extraction may miss those changes. Regenerate the graph by running `/understand` to refresh.

What output does understand-domain produce?▼

It generates `domain-graph.json` containing nodes (domains, processes, steps) and edges (calls, contains, depends-on relationships), then auto-launches the dashboard to visualize the domain flow interactively.

How does the Skill handle monorepos and git worktrees?▼

For git worktrees, the Skill detects ephemeral session directories and redirects output to the main repository root, ensuring domain graphs persist after the session ends. Set `UNDERSTAND_NO_WORKTREE_REDIRECT=1` to disable this behavior.