본문으로 건너뛰기
Skillpedia
일반 코딩87k · #1364

understand-chat

하는 일

이 도구는 코드 프로젝트를 이해하도록 돕습니다. 지식 지도(knowledge map)를 사용해 파일, 함수, 그리고 모든 것이 어떻게 연결되어 있는지에 대한 질문에 답합니다.

사용하는 경우

  • ✓특정 코드를 이해하지 못할 때.
  • ✓프로젝트의 여러 부분이 서로 어떻게 연관되어 있는지 보고 싶을 때.
  • ✓파일이나 함수가 무엇을 하는지 빠른 요약을 얻고 싶을 때.

스킬 링크

https://github.com/Egonex-AI/Understand-Anything/blob/main/understand-anything-plugin/skills/understand-chat/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Egonex-AI/Understand-Anything/blob/main/understand-anything-plugin/skills/understand-chat/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'utils.py' 파일의 'calculate_total' 함수를 설명해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 코드를 설명하는 특별한 파일('지식 지도')을 참고합니다. 질문과 관련된 정보를 찾고, 코드 부분들이 어떻게 연결되는지 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

/understand-chat

Answer questions about this codebase using the knowledge graph in the project's data directory (.ua/knowledge-graph.json, or the legacy .understand-anything/knowledge-graph.json when that directory is present).

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

  1. Use Grep to search within the JSON for relevant entries BEFORE reading the full file
  2. Only read sections you need — don't dump the entire graph into context
  3. Node names and summaries are the most useful fields for understanding
  4. Edges tell you how components connect — follow imports and calls for dependency chains

Instructions

  1. Resolve the data directory $UA_DIR. Run UA_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.json exists in the current project root. If not, tell the user to run /understand first.

  2. Check graph freshness before using graph-derived context:

    • Read project.gitCommitHash from the graph metadata as GRAPH_COMMIT_RAW. Resolve it as a commit before using it in any Git diff, then compare it with git rev-parse HEAD and 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 answering that graph-derived context may omit those changes. Suggest: Run /understand to refresh the graph.
    • Run the commit diff only when GRAPH_COMMIT_RAW resolves successfully. If the graph commit or Git metadata is missing, invalid, or unavailable, give a brief best-effort warning and continue instead of blocking.
  3. Read project metadata only — use Grep or Read with a line limit to extract just the "project" section from the top of the file for context (name, description, languages, frameworks).

  4. Search for relevant nodes — use Grep to search the knowledge graph file for the user's query keywords: "$ARGUMENTS"

    • Search "name" fields: grep -i "query_keyword" in the graph file
    • Search "summary" fields for semantic matches
    • Search "tags" arrays for topic matches
    • Note the id values of all matching nodes
  5. Find connected edges — for each matched node ID, Grep for that ID in the edges section to find:

    • What it imports or depends on (downstream)
    • What calls or imports it (upstream)
    • This gives you the 1-hop subgraph around the query
  6. Read layer context — Grep for "layers" to understand which architectural layers the matched nodes belong to.

  7. Answer the query using only the relevant subgraph:

    • Reference specific files, functions, and relationships from the graph
    • Explain which layer(s) are relevant and why
    • Be concise but thorough — link concepts to actual code locations

…

자주 묻는 질문

'지식 지도'는 무엇인가요?

파일 이름, 함수, 그 역할, 서로의 연결 관계처럼 코드에 대해 정리된 정보를 담은 파일입니다.

지식 지도가 오래되었다면 어떻게 되나요?

도구는 지도가 만들어진 뒤 코드가 바뀌었다고 경고하고, 지도를 업데이트할 것을 제안할 수 있습니다.

도구는 정보를 어떻게 찾나요?

질문의 키워드를 지식 지도의 이름, 설명, 태그에서 검색하고, 코드 부분 사이의 연결을 따라갑니다.

상세 정보

작성자의 원본 설명

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

repo: Egonex-AI/Understand-Anything

인기도

GitHub 스타
87k
순위
#1364
라이선스
MIT
업데이트
2026. 10. 12.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬