# Unified Diff Generator

> Use this tool when you need to compare two text strings and generate a unified diff with contextual information. It solves problems in version control, code review, and text comparison tasks by providing a standardized output format for AI models to analyze. The tool takes two text strings as input and outputs a unified diff with 3 lines of context around changes, making it ideal for applications requiring precise text difference detection.

Canonical page: https://skillsregistry.net/skills/tatn-unified-diff-generator  
JSON: https://api.skillsregistry.net/v1/skills/tatn-unified-diff-generator

## Description

This MCP server implementation, developed by tatn, provides unified diff generation capabilities between two text strings. Built using TypeScript and leveraging the diff package, it offers a tool to generate diffs with 3 lines of context around changes. The implementation focuses on accurate difference detection and a standardized output format, making it easier for AI models to analyze and compare text. It's particularly useful for version control tasks, code review assistance, or any application requiring precise text comparison, enabling AI to efficiently identify and process textual differences without needing deep knowledge of diff algorithms.

## Trust

- **Trust score (0–1):** 0.99
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** version-control
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/tatn-unified-diff-generator)
- **Repository:** <https://github.com/tatn/mcp-server-diff-typescript>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "tatn-unified-diff-generator"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/tatn-unified-diff-generator` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/tatn-unified-diff-generator/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
