understand-diff

understand-diff is a skill for Claude Code from Egonex-AI/Understand-Anything. It costs 27 tokens per session (1,361 once invoked), scanned A, original, MIT.

A change-analysis tool for examining Git differences or pull requests, which are proposed sets of code changes, alongside a project's knowledge graph.

In plain words
What is it for?
Use it to review changed files, affected components, dependency paths, and possible risks in a branch or pull request.
Why use it?
It helps identify which components changed and what parts of the system may be affected.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

not rated 87krepo +852 8d ago A scan Socket: passSnyk: passSkillSpector: pass 27 tokens original MIT

Good fit Use it to review changed files, affected components, dependency paths, and possible risks in a branch or pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/egonex-ai/understand-anything/understand-diff
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 · 87,026 stars · on GitHub · understand-anything.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Egonex-AI/Understand-Anything --skill understand-diff
Clone the repo
git clone --depth 1 https://github.com/Egonex-AI/Understand-Anything

Made for: Claude Code.

Or install understand-anything, the plugin that ships this one along with the rest of its 9 skills, 10 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-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-diff/github.svg)](https://agentmods.dev/skills/egonex-ai/understand-anything/understand-diff)
Your own site
<a href="https://agentmods.dev/skills/egonex-ai/understand-anything/understand-diff"><img src="https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-diff/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-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/egonex-ai/understand-anything/understand-diff"><img src="https://agentmods.dev/badge/skills/egonex-ai/understand-anything/understand-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,361 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
  • NVIDIA SkillSpector pass 7 Sept 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.00027 $0.01361
Opus 5.5 $0.00011 $0.00544
Sonnet 5.5 $0.00005 $0.00272
Haiku 4.5 $0.00003 $0.00136

Measured 1mo ago against content hash fc8dc1b216ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

understand-diff 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 1mo ago.

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-diff/SKILL.md · 86 lines

How it starts

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

/understand-diff

Analyze the current code changes against 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. If not, tell the user to run /understand first.

  2. Get the changed files list (do NOT read the graph yet):

    • If on a branch with uncommitted changes: git diff --name-only
    • If on a feature branch: git diff main...HEAD --name-only (or the base branch)
    • If the user specifies a PR number: get the diff from that PR

Read the full file on GitHub · 86 lines

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. 1mo ago First seen · 86 lines · 27 tokens per session scan A fc8dc1b216ee

Subscribe to this mod's changes

understand-diff is a skill published in the GitHub repository Egonex-AI/Understand-Anything (87,026 stars, last pushed 8d ago), licensed MIT. It adds 27 tokens to every session and 1,361 once invoked, about $0.0001 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

Other skills, from other repositories

git-pr-review

A read-only reviewer for GitHub pull requests, which are proposed code changes submitted for review. It produces an evidence-based report about whether a pull request should be merged.

huangwb8/skills · 76 tokens

respond-to-pr-comments-in-blocklist

Interactively walk a user through PR review comments one at a time, collect a per-comment decision, then post agent-authored replies on GitHub and resolve the review threads once the user approves a preview. Use only when the user wants to reply to or resolve review threads on GitHub. Skip when the user only wants…

aiskillstore/marketplace · 98 tokens

github-pr-best-practices

Best practices for creating GitHub pull requests including conventional commits, PR formatting, and multi-language support (en/ja). Use when creating PRs, writing PR descriptions, or formatting commit messages.

aiskillstore/marketplace · 46 tokens

create-pr

A workflow tool for creating GitHub pull requests. A pull request is a proposed code change that others can review before it is merged.

aiskillstore/marketplace · 88 tokens

git-workflow

Enhanced git operations using lazygit, gh (GitHub CLI), and delta. Triggers on: stage changes, create PR, review PR, check issues, git diff, commit interactively, GitHub operations, rebase, stash, bisect.

aiskillstore/marketplace · 55 tokens

release-skills

A release workflow for preparing and publishing a new version of a software project. A release is a named version that may include updated version files, release notes, tags, or a GitHub Release.

JimLiu/baoyu-skills · 87 tokens