diffs
What it does
It gives an AI agent a tool that turns before-and-after text, or a patch, into a visual diff. It is for people who want to review or share exact changes.
When to use it
- ✓When you want to show exactly what changed in a text or code edit.
- ✓When you need a diff you can share as a link or as a PDF or PNG file.
- ✓When a hand-written summary of the changes would be unclear or easy to get wrong.
Skill link
https://github.com/openclaw/openclaw/blob/main/extensions/diffs/skills/diffs/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me exactly what changed between these two versions of my notes, and give me a PDF I can send.”
5 new skills a week. 1 minute to read.
How it works
The tool compares the old and new text, or reads a patch, and creates a viewer page, a file, or both. It reports whether anything changed and returns the viewer link or file path.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
When you need to show edits as a real diff, prefer the diffs tool instead of writing a manual summary.
The diffs tool accepts either before + after text, or a unified patch string.
Check details.changed: identical before/after input returns false without creating an artifact; rendered results return true.
Use mode=view when you want an interactive gateway-hosted viewer. After the tool returns, present details.viewerUrl with an available surface-presentation tool.
If the deployment uses a loopback trusted proxy (for example Tailscale Serve with gateway.trustedProxies including 127.0.0.1), raw loopback viewer requests can be rejected without forwarded client-IP headers. In that topology, prefer mode=file / mode=both, or use a configured viewerBaseUrl / explicit proxy/public baseUrl when you need a shareable viewer URL.
Use mode=file when you need a rendered file artifact. Set fileFormat=png (default) or fileFormat=pdf. The tool result includes details.filePath.
For large or high-fidelity files, use fileQuality (standard|hq|print) and optionally override fileScale/fileMaxWidth.
When you need to deliver the rendered file to a user or channel, do not rely on the raw tool-result renderer. Instead, use an available file-sending tool to send details.filePath as an attachment.
Use mode=both when you want both the gateway viewer URL and the rendered artifact.
If the user has configured diffs plugin defaults, prefer omitting mode, theme, layout, and related presentation options unless you need to override them for this specific diff.
Include path for before/after text when you know the file name.
FAQ
Does it make a file if nothing changed?
No. If the before and after text are identical, the tool reports no change and creates no artifact.
Can I send the rendered file to someone?
Yes. The skill can send the file as an attachment through an available file-sending tool.
Which file formats can it make?
It makes PNG images by default, and PDF files when you ask for them.
Details
Original description by the author
Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #17
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
executing-plans
311kHelps your agent carry out a written implementation plan step by step in the current session, testing each step before moving on.
finishing-a-development-branch
311kHelps your agent wrap up finished code by running the tests, then offering clear options to merge, open a pull request, or keep the branch.
receiving-code-review
311kHelps your agent weigh code review feedback carefully, checking each point against the code before changing anything.