diffs

Generate shareable diffs from before/after text or patches.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/rigeoben/fairy --skill diffs-rigeoben
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diffs
Source: https://github.com/rigeoben/fairy/tree/main/extensions/diffs/skills/diffs
Command: npx skills add https://github.com/rigeoben/fairy --skill diffs-rigeoben

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.

Core Features & Use Cases

  • Diff generation: Accepts before/after text or a patch string to render a precise diff.
  • Output modes: Use mode=view for an interactive viewer, mode=file to render artifacts, or mode=both to get both outputs.
  • Sharing and configuration: Supports viewerBaseUrl, fileFormat, fileQuality, and related options to tailor outputs for teams and documentation.
  • Use Case: When reviewing a pull request or documentation changes, generate a clean, shareable diff instead of summarizing edits manually.

Quick Start

Provide before/after text pairs to generate a 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 shareable diff from before and after text?

To generate a shareable diff, provide before and after text pairs or a patch string. The tool renders a precise diff output that can be shared via an interactive viewer URL or a rendered file artifact.

What is the best way to create a visual diff for code review without manual summaries?

The best way to create a visual diff for code review is using mode=view. This generates an interactive viewer URL, replacing manual edit summaries with a precise, shareable visual representation of code changes.

Can I output a diff as a file artifact instead of a viewer URL?

Yes, you can output a diff as a file artifact by using mode=file. This mode renders the diff into a downloadable artifact, with options like fileFormat and fileQuality available to control the output.

Does the diff generator support both interactive viewing and file export simultaneously?

Yes, the diff generator supports both outputs simultaneously by using mode=both. This produces an interactive viewer URL alongside a rendered file artifact, configurable with viewerBaseUrl and fileFormat options.

How do I configure the base URL for a generated diff viewer?

To configure the base URL for a generated diff viewer, use the viewerBaseUrl option. This allows you to tailor the sharing link for team environments and integrate the viewer into existing documentation workflows.