diffs

Convert before/after text or patches into unified diffs with viewer URLs or artifact paths.

1.0k|59|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/SafeAI-Lab-X/ClawKeeper --skill diffs-safeai-lab-x
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: diffs
Source: https://github.com/SafeAI-Lab-X/ClawKeeper/tree/main/legacy/clawkeeper-watcher/extensions/diffs/skills/diffs
Command: npx skills add https://github.com/SafeAI-Lab-X/ClawKeeper --skill diffs-safeai-lab-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually crafting diffs is error-prone and time-consuming; this skill automates the creation of precise, shareable diffs from before/after text or patches.

Core Features & Use Cases

  • Diff generation from before/after text or a patch to produce a unified diff suitable for reviews and documentation.
  • Flexible rendering options including mode=view (viewer URL), mode=file (rendered artifacts), or both, with control over file formats and quality.
  • Use Case: add a diff to a pull request, issue, or chat thread to clearly illustrate changes across versions.

Quick Start

Provide the before and after text (or a patch) to generate a real, shareable diff.

Frequently Asked Questions about diffs

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

FAQPage Schema
How do I generate a unified diff from before and after text for a code review?▼

To generate a unified diff for code review, provide the before and after text, and the tool converts the input into a real, shareable diff artifact or viewer URL instantly.

Can I create a shareable diff viewer URL from a patch file?▼

Yes, you can create a shareable diff viewer URL from a patch by using mode=view, which returns a direct URL to visualize the code changes without manual formatting.

What is the best way to add a precise code diff to a pull request or issue thread?▼

The best way to add a precise code diff to a pull request is to input the version changes and use mode=both, returning both a viewer URL and rendered artifact path for the thread.

Does this diff generation tool support outputting rendered artifact files alongside viewer links?▼

Yes, the diff generation tool supports outputting rendered artifact files alongside viewer links by selecting mode=both, offering control over file formats and output quality.

Why should I use an automated diff generator instead of manually crafting code changes?▼

You should use an automated diff generator because manually crafting diffs is error-prone and time-consuming, whereas automation ensures precise, shareable results from text or patches instantly.

When do I need to produce a unified diff for documentation edits?▼

You need to produce a unified diff for documentation edits when precise before-after comparisons are required, converting text changes into a standardized format suitable for version control reviews.