understand-domain

understand-domain is a skill for Claude Code from Egonex-AI/Understand-Anything. It costs 38 tokens per session (2,548 once invoked), scanned A, original, MIT.

A codebase analysis tool that identifies business areas, workflows, and process steps, then shows them as an interactive flow graph.

In plain words
What is it for?
Use it to map business processes from existing project files or from a previously created knowledge graph, and inspect the results in a dashboard.
Why use it?
It helps developers understand what the software does in business terms without manually tracing the whole codebase.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the understand-anything plugin — 9 skills, 12 agents, 2 hooks shipped together

Good fit Use it to map business processes from existing project files or from a previously created knowledge graph, and inspect the results in a dashboard.

Compare 6 skills from other repositories ↓
About the project

Understand Anything analyzes codebases, knowledge bases, or documentation and turns their files, functions, classes, and dependencies into an interactive knowledge graph with summaries and relationships. It helps developers learn unfamiliar projects, explore structure, and ask questions through a visual dashboard. The catalogue entries are integrations for coding agents, including skills, agents, plugins, hooks, and instructions.

Egonex-AI/Understand-Anything · 95,207 stars · on GitHub · understand-anything.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Egonex-AI/Understand-Anything
Claude Code
/plugin install understand-anything

Made for: Claude Code.

Or install understand-anything, the plugin that ships this one along with the rest of its 9 skills, 12 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for understand-domain

README.md
[![agentmods](https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-domain/github.svg)](https://agentmods.dev/skills/egonex-ai/understand-anything/understand-domain)
Your own site
<a href="https://agentmods.dev/skills/egonex-ai/understand-anything/understand-domain"><img src="https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-domain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for understand-domain

Your own site · 80×15
<a href="https://agentmods.dev/skills/egonex-ai/understand-anything/understand-domain"><img src="https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-domain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,548 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Jul 2026
  • Snyk pass 18 Jul 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02548
Opus 5.5 $0.00015 $0.01019
Sonnet 5.5 $0.00008 $0.00510
Haiku 4.5 $0.00004 $0.00255

Measured 26d ago against content hash 51b41220b878, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

understand-domain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (extract-domain-context.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

understand-anything-plugin/skills/understand-domain/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/understand-domain

Extracts business domain knowledge — domains, business flows, and process steps — from a codebase and produces an interactive horizontal flow graph in the dashboard.

How It Works

  • If a knowledge graph already exists (.ua/knowledge-graph.json, or the legacy .understand-anything/knowledge-graph.json when that directory is present), derives domain knowledge from it (cheap, no file scanning)
  • If no knowledge graph exists, performs a lightweight scan: file tree + entry point detection + sampled files
  • Use --full flag to force a fresh scan even if a knowledge graph exists

Instructions

Phase 0: Resolve PROJECT_ROOT

Set PROJECT_ROOT to the current working directory.

Worktree redirect. If PROJECT_ROOT is inside a git worktree (not the main checkout), redirect output to the main repository root. Worktrees managed by Claude Code are ephemeral — the data directory (.ua/, or legacy .understand-anything/) written there is destroyed when the session ends, taking the domain graph with it (issue #133). Detect a worktree by comparing git rev-parse --git-dir against git rev-parse --git-common-dir; in a normal checkout or submodule they resolve to the same path, in a worktree they differ and the parent of --git-common-dir is the main repo root.

COMMON_DIR=$(git -C "$PROJECT_ROOT" rev-parse --git-common-dir 2>/dev/null)
GIT_DIR=$(git -C "$PROJECT_ROOT" rev-parse --git-dir 2>/dev/null)
if [ -n "$COMMON_DIR" ] && [ -n "$GIT_DIR" ]; then
  COMMON_ABS=$(cd "$PROJECT_ROOT" && cd "$COMMON_DIR" 2>/dev/null && pwd -P)
  GIT_ABS=$(cd "$PROJECT_ROOT" && cd "$GIT_DIR" 2>/dev/null && pwd -P)
  if [ -n "$COMMON_ABS" ] && [ "$COMMON_ABS" != "$GIT_ABS" ]; then
    MAIN_ROOT=$(dirname "$COMMON_ABS")
    if [ -d "$MAIN_ROOT" ] && [ "${UNDERSTAND_NO_WORKTREE_REDIRECT:-0}" != "1" ]; then
      echo "[understand-domain] Detected git worktree at $PROJECT_ROOT"
      echo "[understand-domain] Redirecting output to main repo root: $MAIN_ROOT"
      echo "[understand-domain] (Set UNDERSTAND_NO_WORKTREE_REDIRECT=1 to keep PROJECT_ROOT as the worktree.)"
      PROJECT_ROOT="$MAIN_ROOT"
    fi
  fi
fi

Read the full file on GitHub · 166 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · +5 lines 51b41220b878
  2. 3mo ago First seen · 161 lines · 38 tokens per session scan A b2c98c18b579

Subscribe to this mod's changes

understand-domain is a skill published in the GitHub repository Egonex-AI/Understand-Anything (95,207 stars, last pushed 8d ago), licensed MIT. It adds 38 tokens to every session and 2,548 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

understand-domain compared with skills from other repositories

understand-domain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
understand-domainEgonex-AI/Understand-AnythingSkill95k8d agoMITA38Claude Code
skill-sanitizeranimaresearch/skillsSkill115mo agononeA193Claude Code, Codex
public-skill-launcheranimaresearch/skillsSkill115mo agononeA66Codex
knowledge-gravity-labanimaresearch/skillsSkill115mo agononeA74Codex
super-lab-liteanimaresearch/skillsSkill115mo agononeA64Claude Code, Codex
dirty-skillanimaresearch/skillsSkill115mo agononeA28Claude Code, Codex
baoyu-comicJimLiu/baoyu-skillsSkill28k13d agoMITA61Claude Code