@juriruegger/understand
v0.1.3
Published
OpenCode plugin for understanding important code changes before merging.
Maintainers
Readme
understand
understand is an open source OpenCode plugin that helps explain the important code changes in your current branch or uncommitted working tree before you merge.
It is built for situations where the diff is too large to read line-by-line, but you still want a grounded explanation with exact citations and architecture-level context.
Install
Add the plugin package name to the plugin array in your OpenCode config:
{
"plugin": ["@juriruegger/understand"]
}Restart OpenCode after updating the config.
Use
/understand
The bundled plugin exposes the understand_git tool and is intended to make the bundled understand skill available to OpenCode.
The skill will:
- ask whether to inspect uncommitted changes or the current branch
- suggest likely target branches with the default branch first
- explain the important architecture and behavior changes with citations
- optionally quiz you on the important changes for active recall
Development
Install dependencies:
npm installBuild:
npm run buildType-check:
npm run checkValidate the bundled skill:
python3 /home/juri/.codex/skills/.system/skill-creator/scripts/quick_validate.py skills/understandThe package also exposes a helper CLI for smoke-testing the git manifest logic:
node dist/cli.js targets --cwd /path/to/repo
node dist/cli.js branch-manifest --cwd /path/to/repo --target main
node dist/cli.js uncommitted-manifest --cwd /path/to/repoReleases
This repo can publish to npm automatically from GitHub Actions when you push a version tag.
Publishing a release
- Update the package version:
npm version patch- Push the commit and tag:
git push --follow-tagsThe workflow publishes only when the pushed tag matches v<package.json version>.
License
MIT
