understand-diff
Skill1 starsChanged 5 months agoMITView on GitHub
Use when you need to analyze git diffs or pull requests to understand what changed, affected components, and risks
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- DevKazonovic/claude-dashboardedited, first seen Nov 29, 2026
- pwizzang/claude-skillsword for word, first seen Nov 16, 2026
- Pdbjork/hermosskills-siteword for word, first seen Jul 8, 2026
- MovGP0/Skillsword for word, first seen Jun 30, 2026
- karanmrn/claude-skillsword for word, first seen Jun 28, 2026
- sidkh/skillstheir own version, first seen Apr 22, 2026
Other versions6 projects use a version of this.
Word for word · 4
- MovGP0/Skills★ 1100% same
- karanmrn/claude-skills★ 0100% same
- Pdbjork/hermosskills-site★ 0100% same
- pwizzang/claude-skills★ 0100% same
Edited · 1
- DevKazonovic/claude-dashboard★ 111% same
Wrote their own version · 1
- sidkh/skills★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository146 other files it gives its agents.
- AGENTS.mdAGENTS.md
- humanizer/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- academy-guideSkill
- agent-browserSkill
- agent-evalSkill
- agent-introspection-debuggingSkill
- agent-reachSkill
- algorithmic-artSkill
- api-and-interface-designSkill
- ask-mattSkill
- audit-context-buildingSkill
- autoresearchSkill
- backend-patternsSkill
- brainstormingSkill
- brand-guidelinesSkill
- brandkitSkill
- browser-testing-with-devtoolsSkill
- industrial-brutalist-uiSkill
- canvas-designSkill
- capability-evolverSkill
- ci-cd-and-automationSkill
- cinematic-filmSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-budgetSkill
- context-engineeringSkill
- continuous-learningSkill
- coross-platform-vim-nvim-deploySkill
- councilSkill
- cpp-testingSkill
- csharp-testingSkill
- debugging-and-error-recoverySkill
- deep-researchSkill
- deployment-patternsSkill
- deprecation-and-migrationSkill
- diagram-designSkill
- dispatching-parallel-agentsSkill
- distillySkill
- django-securitySkill
- django-tddSkill
- dmux-workflowsSkill
- doc-coauthoringSkill
- documentation-and-adrsSkill
- docxSkill
- domain-modelingSkill
- doubt-driven-developmentSkill
- drawio-skillSkill
- ecc-harnessSkill
- entry-point-analyzerSkill
- executing-plansSkill
- figgenie-paper-diagramSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- fsharp-testingSkill
- git-workflow-and-versioningSkill
- golang-testingSkill
- gpt-tasteSkill
- graphifySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use Grep to search within the JSON for relevant entries BEFORE reading the full file
- Distinctive: line 27
Only read sections you need — don't dump the entire graph into context
- Very specific: line 33
Check that .understand-anything/knowledge-graph.json exists.
- Distinctive: line 36
If on a branch with uncommitted changes: git diff --name-only
- Distinctive: line 37
If on a feature branch: git diff main...HEAD --name-only (or the base branch)
- Distinctive: line 38
If the user specifies a PR number: get the diff from that PR
- Very specific: line 72
After writing, tell the user they can run /understand-anything:understand-dashboard to see the diff overlay visually.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/understand-diff
Analyze the current code changes against the knowledge graph at .understand-anything/knowledge-graph.json.
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
- Check that
.understand-anything/knowledge-graph.jsonexists. If not, tell the user to run/understandfirst. - 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
- If on a branch with uncommitted changes:
- Read project metadata only — use Grep or Read with a line limit to extract just the
"project"section for context. - Find nodes for changed files — for each changed file path, use Grep to search the knowledge graph for:
- Nodes with matching
"filePath"values (e.g.,grep "changed/file/path") - This finds file-level nodes (including non-code types) AND function/class nodes defined in those files
- Note the
idvalues of all matched nodes
- Nodes with matching
- Find connected edges (1-hop) — for each matched node ID, Grep for that ID in the edges to find:
- What imports or depends on the changed nodes (upstream callers)
- What the changed nodes import or call (downstream dependencies)
- These are the "affected components" — things that might break or need updating
- Identify affected layers — Grep for the matched node IDs in the
"layers"section to determine which architectural layers are touched. - Provide structured analysis:
- Changed Components: What was directly modified (with summaries from matched nodes)
- Affected Components: What might be impacted (from 1-hop edges)
- Affected Layers: Which architectural layers are touched and cross-layer concerns
- Risk Assessment: Based on node
complexityvalues, number of cross-layer edges, and blast radius (number of affected components) - Suggest what to review carefully and any potential issues
- Write diff overlay for dashboard — after producing the analysis, write the diff data to
.understand-anything/diff-overlay.jsonso the dashboard can visualize changed and affected components. The file contains:
After writing, tell the user they can run{ "version": "1.0.0", "baseBranch": "<the base branch used>", "generatedAt": "<ISO timestamp>", "changedFiles": ["<list of changed file paths>"], "changedNodeIds": ["<node IDs from step 4>"], "affectedNodeIds": ["<node IDs from step 5, excluding changedNodeIds>"] }/understand-anything:understand-dashboardto see the diff overlay visually.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

