understand
यह क्या करती है
यह tool project के code का विश्लेषण करके एक interactive visual map बनाता है। इससे आप समझ सकते हैं कि code के अलग-अलग हिस्से आपस में कैसे जुड़े हैं और मिलकर कैसे काम करते हैं।
कब इस्तेमाल करें
- ✓जब किसी नए project की structure समझनी हो।
- ✓जब किसी अनजान हिस्से में bug ठीक करना हो।
- ✓जब किसी और का code review कर रहे हों।
Skill का लिंक
https://github.com/Egonex-AI/Understand-Anything/blob/main/understand-anything-plugin/skills/understand/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस project का code analyze करो और एक knowledge graph बनाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
tool सारी code files पढ़ता है, components और उनके संबंधों को पहचानता है, और एक खास file (`knowledge-graph.json`) बनाता है, जिसे interactive dashboard पर देखा जा सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
/understand
Analyze the current codebase and produce a knowledge-graph.json file in the project's data directory (.ua/, or the legacy .understand-anything/ when it already exists). This file powers the interactive dashboard for exploring the project's architecture.
Options
$ARGUMENTSmay contain:--full— Force a full rebuild, ignoring any existing graph--auto-update— Enable automatic graph updates on commit (writesautoUpdate: trueto$UA_DIR/config.json)--no-auto-update— Disable automatic graph updates (writesautoUpdate: falseto$UA_DIR/config.json)--review— Run full LLM graph-reviewer instead of inline deterministic validation--language <lang>— Generate all textual content (summaries, descriptions, tags, titles, languageNotes, languageLesson) in the specified language. Accepts ISO 639-1 codes (zh,ja,ko,en,es,fr,de, etc.) or friendly names (chinese,japanese,korean,english,spanish, etc.). Locale variants supported:zh-TW,zh-HK, etc. Defaults toen(English). Stores preference in$UA_DIR/config.jsonfor consistency across incremental updates.--exclude <patterns>— Comma-separated glob patterns for additional files/directories to exclude from analysis (e.g.,--exclude "tests/*,docs/*"). These patterns take highest priority over built-in defaults and.understandignorerules. Supports gitignore syntax including!negation.- A directory path (e.g.
/path/to/repoor../other-project) — Analyze the given directory instead of the current working directory
Progress Reporting
Throughout execution, report progress to the user at each phase transition and during batch processing. This keeps users informed on large codebases where analysis can take a long time.
Phase transitions: At the start of each phase, print a status line:
[Phase N/7] <phase name>...Example:
[Phase 2/7] Analyzing files (12 batches)...Batch progress: During Phase 2, report each batch with its index and total:
Analyzing batch X/N (files: foo.ts, bar.ts, ...)(list up to 3 filenames, then...if more)Phase completion: When a phase finishes, briefly confirm:
Phase N complete. <one-line summary of result>Example:
Phase 1 complete. Found 247 files across 3 languages.
Phase 0 — Pre-flight
Determine whether to run a full analysis or incremental update.
- Resolve
PROJECT_ROOT:Parse
$ARGUMENTSfor a non-flag token (any argument that does not start with--). If found, treat it as the target directory path.- If the path is relative, resolve it against the current working directory.
- Verify the resolved path exists and is a directory (run
test -d <path>). If it does not exist or is not a directory, report an error to the user and STOP. - Set
PROJECT_ROOTto the resolved absolute path.
If no directory path argument is found, set
PROJECT_ROOTto the current working directory.Worktree redirect. If
PROJECT_ROOTis 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 knowledge graph with it (issue #133). Detect a worktree by comparinggit rev-parse --git-diragainstgit 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-diris 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] Detected git worktree at $PROJECT_ROOT" echo "[understand] Redirecting output to main repo root: $MAIN_ROOT" echo "[understand] (Set UNDERSTAND_NO_WORKTREE_REDIRECT=1 to keep PROJECT_ROOT as the worktree.)"
…
अक्सर पूछे जाने वाले सवाल
'knowledge graph' क्या है?
यह एक visual चित्र है, जो code के हिस्सों (components) और उनके आपसी जुड़ाव को नक्शे की तरह दिखाता है।
क्या graph में विवरण की भाषा चुन सकते हैं?
हाँ, `--language` option के साथ भाषा का नाम या code लिख सकते हैं, जैसे `--language english` या `--language en`।
code बदलने पर क्या होगा?
आप tool से दोबारा analysis करने को कह सकते हैं। `--auto-update` option है, जिससे code बदलने पर graph अपने आप update हो जाता है।
जानकारी
लेखक का मूल विवरण
Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships
लोकप्रियता
- GitHub स्टार
- 87k
- रैंकिंग में स्थान
- #1372
- लाइसेंस
- MIT
- अपडेट की गई
- 12/10/2026
कमेंट
- …
इस repository की और skills
understand-chat
87kयह आपके एजेंट को codebases को समझने और समझाने देता है। मौजूदा code का विश्लेषण करने या यह पूछने में उपयोगी है कि कोई program कैसे काम करता है।
understand-dashboard
87kआपके एजेंट को किसी code project का ढांचा समझने में मदद करता है। यह parts और उनके आपसी संबंध समझने के लिए एक interactive map बनाता है।
understand-diff
87kआपके एजेंट को code changes का विश्लेषण करने देता है। यह समझने में मदद करता है कि क्या बदला गया, कौन से हिस्से प्रभावित हुए, और क्या जोखिम हैं।
understand-domain
87kआपके एजेंट से code में से business knowledge निकलवाता है। यह एक graph बनाता है जो दिखाता है कि चीज़ें कैसे काम करती हैं।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।