Skip to content
Skillpedia
General coding394k · #17

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.md

Copy 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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/extensions/diffs/skills/diffs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills