understand-explain
하는 일
프로그래밍 코드의 특정 부분을 이해하도록 돕습니다. 파일, 함수, 모듈을 분석해 무엇을 하는지, 다른 부분과 어떻게 연결되는지, 얼마나 중요한지 설명합니다.
사용하는 경우
- ✓이해하지 못하는 코드를 만났을 때.
- ✓특정 기능이 어떻게 작동하는지 알아내려 할 때.
- ✓프로그래밍 프로젝트의 구조를 배우고 싶을 때.
스킬 링크
https://github.com/Egonex-AI/Understand-Anything/blob/main/understand-anything-plugin/skills/understand-explain/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“'src/utils/math.js' 파일의 'calculate_total_price' 함수를 설명해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 먼저 코드 정보가 최신인지 확인합니다. 그다음 요청한 코드 구성 요소를 찾고, 다른 부분과의 연결을 분석하며, 원본 코드를 읽어 자세한 설명을 제공합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
/understand-explain
Provide a thorough, in-depth explanation of a specific code component.
Graph Structure Reference
The knowledge graph JSON has this structure:
project— {name, description, languages, frameworks, analyzedAt, gitCommitHash}nodes[]— each has {id, type, name, filePath?, summary, tags[], complexity, languageNotes?}- Code node types: file, function, class, module, concept
- Non-code node types: config, document, service, table, endpoint, pipeline, schema, resource
- Domain/knowledge node types: domain, flow, step, article, entity, topic, claim, source
- IDs use the node type as prefix, e.g.
file:path,function:path:name,config:path,article:path
edges[]— each has {source, target, type, direction, weight}- Key types: imports, contains, calls, depends_on, configures, documents, deploys, triggers, contains_flow, flow_step, related, cites
layers[]— each has {id, name, description, nodeIds[]}tour[]— each has {order, title, description, nodeIds[]}
How to Read Efficiently
- Use Grep to search within the JSON for relevant entries BEFORE reading the full file
- Only read sections you need — don't dump the entire graph into context
- Node names and summaries are the most useful fields for understanding
- Edges tell you how components connect — follow imports and calls for dependency chains
Instructions
Resolve the data directory
$UA_DIR. RunUA_DIR=$([ -d .understand-anything ] && echo .understand-anything || echo .ua)— this is the legacy.understand-anything/when it already exists, otherwise the new.ua/. Check that$UA_DIR/knowledge-graph.jsonexists. If not, tell the user to run/understandfirst.Check graph freshness before using graph-derived context:
- Read
project.gitCommitHashfrom the graph metadata asGRAPH_COMMIT_RAW. Resolve it as a commit before using it in any Git diff, then compare it withgit rev-parse HEADand inspect project-scoped committed and working-tree changes from the project root:GRAPH_COMMIT=$(git rev-parse --verify --end-of-options "${GRAPH_COMMIT_RAW}^{commit}" 2>/dev/null) git rev-parse HEAD git diff --name-only "$GRAPH_COMMIT" HEAD -- . git diff --cached --name-only -- . git diff --name-only -- . git ls-files --others --exclude-standard -- . - The
-- .pathspec is required: commits that only touch a sibling monorepo project must not make this graph stale. A hash mismatch alone is not stale when the project diff is empty. - Ignore the selected data directory (
.ua/or legacy.understand-anything/) in every command's output because it contains generated graph artifacts, not project source drift. - If the committed diff or any working-tree command reports project files, warn before explaining that graph-derived context may omit those changes. Suggest: Run
/understandto refresh the graph. - Run the commit diff only when
GRAPH_COMMIT_RAWresolves successfully. If the graph commit or Git metadata is missing, invalid, or unavailable, give a brief best-effort warning and continue instead of blocking.
- Read
Find the target node — use Grep to search the knowledge graph for the component: "$ARGUMENTS"
- For file paths (e.g.,
src/auth/login.ts): search for"filePath"matches - For function notation (e.g.,
src/auth/login.ts:verifyToken): search for the function name in"name"fields filtered by the file path - Note the exact node
id,type,summary,tags, andcomplexity
- For file paths (e.g.,
Find all connected edges — Grep for the target node's ID in the edges section:
"source"matches → things this node calls/imports/depends on (outgoing)"target"matches → things that call/import/depend on this node (incoming)- Note the connected node IDs and edge types
Read connected nodes — for each connected node ID from step 4, Grep for those IDs in the nodes section to get their
name,summary, andtype. This builds the component's neighborhood.Identify the layer — Grep for the target node's ID in the
"layers"section to find which architectural layer it belongs to and that layer's description.Read the actual source file — Read the source file at the node's
filePathfor the deep-dive analysis.Explain the component in context:
- Its role in the architecture (which layer, why it exists)
…
자주 묻는 질문
지식 그래프의 '노드'는 무엇인가요?
코드나 문서의 한 조각을 나타냅니다. 파일, 함수, 클래스, 개념 등이 해당합니다.
'엣지'는 무엇인가요?
노드들이 어떻게 연결되는지 나타냅니다. 예를 들어 한 함수가 다른 함수를 호출하거나, 한 파일이 다른 파일을 가져오는 관계입니다.
마지막 분석 이후 코드가 바뀌었다면 어떻게 되나요?
도구는 코드가 바뀌었는지 확인하고, 정보가 오래되었을 수 있다고 경고하며 다시 분석할 것을 제안합니다.
상세 정보
작성자의 원본 설명
Use when you need a deep-dive explanation of a specific file, function, or module in the codebase
인기도
- GitHub 스타
- 87k
- 순위
- #1368
- 라이선스
- MIT
- 업데이트
- 2026. 10. 12.
댓글
- …
이 저장소의 다른 스킬
understand-chat
87k코드베이스를 이해하고 설명하도록 에이전트를 돕습니다. 기존 코드를 분석하거나 프로그램의 작동 방식에 대한 질문에 답하는 데 유용합니다.
understand-dashboard
87k에이전트가 코드 프로젝트가 어떻게 구성되어 있는지 보도록 돕습니다. 부분들과 그 연결을 이해할 수 있는 대화형 지도를 만듭니다.
understand-diff
87k에이전트가 코드 변경을 분석하도록 합니다. 무엇이 바뀌었는지, 어떤 부분이 영향을 받았는지, 위험이 무엇인지 이해하도록 돕습니다.
understand-domain
87k코드에서 업무 지식을 추출하도록 에이전트를 돕습니다. 일이 어떻게 흘러가는지 보여 주는 그래프를 만듭니다.