Skip to content
Kitbay
Skill

understand-diff

MITUpdated on Nov 11, 202691,945GitHub stars

A command skill from the Understand Anything plugin that explains what a set of code changes touches.

What the skill teaches

A command skill from the Understand Anything plugin that explains what a set of code changes touches. It collects the changed files from uncommitted work, the diff against the base branch or a named pull request, matches them to nodes in the knowledge graph built earlier by the plugin's /understand command, and follows the graph one step out to find callers and dependencies. It reports the changed and affected components, the architectural layers involved, a risk rating based on complexity, cross-layer links and reach, and what to review. It warns when the graph is older than the code and writes an overlay file so the changes can be seen in the plugin's dashboard.

Capabilities

  • Match changed files to a codebase knowledge graph
  • Find callers and dependencies affected by a change
  • Rate the risk of a diff or pull request
  • Show the change in the plugin's dashboard