About text-diff
text-diff is a development skill for comparing files or text and producing diff views or patches. It is intended for users who need to inspect changes, with commands for unified and side-by-side output.
Key features
- 01Compare files and text
- 02Unified diff output
- 03Side-by-side view
- 04Patch generation
Use cases
- 01Reviewing changes between file versions
- 02Inspecting text differences side by side
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aidotnet/ moyucode --skill text-diffAfter installing, type/text-diffin Claude Code to confirm it loaded.
Bundled filesscripts/text_diff.py
Details
From the project READMEText Diff Tool
Description
Compare files and text content with unified diff output, side-by-side view, and patch generation.
Trigger
/diffcommand- User needs to compare files
- User wants to see changes
Usage
# Compare two files
python scripts/text_diff.py file1.txt file2.txt
# Unified diff format
python scripts/text_diff.py old.py new.py --unified
# Side-by-side view
python scripts/text_diff.py file1.txt file2.txt --side-by-side
# Generate patch
python scripts/text_diff.py old.txt new.txt --patch > changes.patch
Tags
diff, compare, patch, text, files
Compatibility
- Codex: ✅
- Claude Code: ✅
Comments
Markdown supported