diffs

Render before/after text or patches into shareable diff viewer URLs or PNG/PDF artifacts.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/pertain99/openclaw-better --skill diffs-pertain99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diffs
Source: https://github.com/pertain99/openclaw-better/tree/main/extensions/diffs/skills/diffs
Command: npx skills add https://github.com/pertain99/openclaw-better --skill diffs-pertain99

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool enables turning before/after edits into real, shareable diffs instead of manual edit summaries, reducing ambiguity and speeding reviews.

Core Features & Use Cases

  • Generates diffs from before/after text or patches
  • Offers multiple rendering modes: mode=view, mode=file, mode=both
  • Supports viewer URLs and rendered artifacts (PNG/PDF) for easy sharing in chats or tickets

Quick Start

Provide a before and after text or a patch to produce a shareable diff and render it via a viewer or artifact.

Frequently Asked Questions about diffs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a shareable diff from before and after text?

To generate a diff, provide the before and after text or a patch to render a real diff, outputting a shareable viewer URL or a PNG/PDF artifact file path for distribution.

What is the best way to visualize code changes for a team review?

Visualizing code changes for team review is done by rendering patches or before/after edits into a shareable viewer URL or an artifact file, reducing ambiguity and speeding up the review process.

Can I render a patch file to a PNG or PDF artifact?

Yes, you can render a patch file to a PNG or PDF artifact using the file rendering mode, which returns a details.filePath for easy sharing across chats or tickets.

How do I share code review diffs in a viewer URL?

You can share code review diffs in a viewer URL by using the view rendering mode, which processes your before/after text or patch and returns a direct viewerUrl for access.

Does the diff generation tool support both viewer and file output modes?

Yes, the diff generation tool supports both modes simultaneously, allowing you to output a viewer URL and a rendered artifact file together using the both rendering mode.

When do I need to use patch input instead of before/after text for diffs?

You need to use patch input instead of before/after text when you already have a version-control patch file, allowing the tool to directly render the changes into a shareable viewer or artifact.