# Unified Diff Repair: Fix the Counts, Keep the Change — Repairs a unified diff (the patch format of git diff and diff -u) so that git apply and patch accept it against the file it was written for, and answers with the diff only, no code fence. Recounts the numbers in each hunk header from the hunk's own lines, puts back context lines and removed lines exactly as the file has them (tabs, trailing spaces, blank lines, carriage returns), adds the backslash line that marks a missing final line break…

Verified by [Verified x402](https://verifiedx402.com).

- URL: https://api.aiskills402.com/v1/skills/unified-diff-repair/file
- Category: other
- Network: eip155:8453
- Advertised price: 0.02
- Last checked: 2026-11-29T05:53:52.065Z
- Score: 91.5

This listing passed a recent check: the endpoint is live and the advertised price and terms match. Check before paying, then pay the API yourself.

- HTML: https://verifiedx402.com/v/b28e07d6eb21a2a9e755f145d055caa8
- Badge: https://verifiedx402.com/badge.svg?url=https%3A%2F%2Fapi.aiskills402.com%2Fv1%2Fskills%2Funified-diff-repair%2Ffile
- Independent check: [vet402](https://vet402.com/api/v1/check?url=https%3A%2F%2Fapi.aiskills402.com%2Fv1%2Fskills%2Funified-diff-repair%2Ffile)

```json
{
  "checkedAt": null,
  "httpStatus": null,
  "latencyMs": null,
  "priceMatches": null,
  "payToMatches": null
}
```
