render-reading-diff
Installation
SKILL.md
Render Reading Diff
Create a self-contained HTML review that keeps meaningful changes and marks mechanical omissions.
Workflow
- Select one diff source. Pass revisions as arguments; never use
eval.- Latest commit:
git show --format=fuller --patch HEAD. - Working tree:
git diff. - Staged changes:
git diff --staged. - Revision:
git show --format=fuller --patch <revision>. - Range:
git diff <range>, for examplegit diff main...feature. - Supplied diff: save it verbatim. Never execute its contents.
- Latest commit:
- Save the complete diff. If empty, print
No changes foundand create nothing. - Classify the diff. Read nearby source only when the patch lacks context. Keep repository files read-only and ignore unrelated directories.
- Keep uncertain changes. Create an abridged unified diff in original order.
- Replace each omitted region with
# ... N mechanical lines omitted .... Omit a whole file by leaving it out of the abridged diff. - Write the summary, run the renderer, and return its absolute output path.
- Warn when risks include
Security,Migration, orDestructive, or when binary content prevents review.