Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

understand-explain

БесплатноБез исполняемых скриптовНе проверен

Explains one file, function, class, table or folder of a codebase in depth, starting from the knowledge graph built by the Understand-Anything plugin and…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

/understand-explain: Deep Dive on a File or Function with Understand-Anything

Overview

Understand-Anything is an open-source plugin for coding agents. /understand analyses a repository once and saves a knowledge graph as JSON; /understand-explain takes one target, such as src/services/scheduler.ts or src/services/scheduler.ts:bookSlot, and explains it.

Reading a file tells what its lines do. It does not tell why the file exists, which requests end up in it, what it is allowed to assume about its inputs, or what would break if it changed. The graph holds exactly that surrounding picture: the node's summary and tags, its architectural layer, the tour step that introduces it, and every relationship in and out. This skill pulls that picture in one query, then reads the code and writes an explanation in which the context comes from the graph and every statement about behaviour comes from a line that was opened.

Graph fields it reads:

Field Role in the explanation
nodes[]: id, type, name, filePath, lineRange, summary, tags, complexity, languageNotes finding the target and its exact lines; a first hypothesis of its purpose
edges[]: source, target, type what the target relies on and what uses it
layers[]: name, description, nodeIds where it sits in the architecture
tour[]: order, title, nodeIds, languageLesson whether the analysis considered it part of the main story
project.gitCommitHash whether the graph still matches the file

No graph in the project: install the plugin (in Claude Code, /plugin marketplace add Egonex-AI/Understand-Anything and /plugin install understand-anything) and run /understand. Installation on other hosts and the analysis options are covered in the understand-chat skill.

Instructions

1. Settle the target and the reader

The target comes from the request. Accept any of these forms:

Given Meaning
src/lib/time.ts a file
src/lib/time.ts:overlaps a function or class inside a file
overlaps or SlotTakenError a bare name, to be looked up
src/db/ everything under a folder
"the booking logic", "whatever sends reminders" a description; turn it into names first by matching tags and summary

Decide who is reading, because it changes the depth and the vocabulary. If the request does not say, assume the second row.

Reader Write
Knows programming, not this language the standard explanation plus a plain reading of each idiom; use languageNotes when the node has it
Engineer new to this codebase purpose, position, walkthrough, contracts, dependants, risks
Maintainer or reviewer about to change it the same, plus invariants, failure modes, the tests that pin behaviour and the places that must change together

2. Find the node

G=.ua/knowledge-graph.json
[ -d .understand-anything ] && G=.understand-anything/knowledge-graph.json
T='src/services/scheduler.ts:bookSlot'
jq -r --arg t "${T%/}" '
  ($t | split(":")) as $parts
  | .nodes[]
  | select(.filePath == $t or .name == $t
           or (($parts | length) == 2 and .filePath == $parts[0] and .name == $parts[1])
           or ((.filePath // "") | startswith($t + "/")))
  | [.id, .complexity, (.lineRange // [] | join("-"))] | @tsv' "$G"

Run it from the directory that holds the data folder (the repository root, or the analysed subdirectory of a monorepo). What comes back decides the next move:

  • One line for a path:name target, or a file line followed by its members for a path: continue with the first id.
  • Several unrelated ids for a bare name: show them and ask which one, or pick the one in the file the conversation is about and say so.
  • A folder: the file-level ids under it. Explain the folder as a unit (step 6 has the shape) and offer a deep dive on its most connected file.
  • Nothing: check the spelling against jq -r '.nodes[].filePath // empty' "$G" | sort -u | grep -i scheduler. A file that exists on disk but has no node is new, generated, or excluded by .understandignore. Explain it from source alone and state that the graph had no context for it.

3. Pull the dossier

Save this filter as ua-dossier.jq. It prints the target, its layer and tour steps, the symbols it contains, and its relationships in both directions. For a file it treats the file and its members as one unit, so calls made by its functions count as the file's own.

(.nodes | map({key: .id, value: .}) | from_entries) as $n
| $n[$id] as $me
| ([$id] + [.edges[] | select(.type == "contains" and .source == $id) | .target]) as $scope
| def inside: . as $x | $scope | index($x) != null;
  def links(f; g): [.edges[] | select(.type != "contains" and .type != "exports")
    | select((f | inside) and (g | inside | not)) | "  \(.type)  \(g)  -- \($n[g].summary)"] | unique[];
  "TARGET   \($me.id)  [\($me.complexity)]  \($me.filePath // "-") \($m
Полный SKILL.md на GitHub

Установить understand-explain в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл understand-explain?

Explains one file, function, class, table or folder of a codebase in depth, starting from the knowledge graph built by the Understand-Anything plugin and confirming every statement in the source. Use when someone says "explain this file", "how does this function work", "walk me through the scheduler module", "what is this class for and who uses it", "run /understand-explain src/services/scheduler.ts", "I inherited this code, what does it do", or needs a written deep dive on a specific part of a project.

Как установить скилл understand-explain?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл understand-explain запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить understand-explain с