diff
Installation
SKILL.md
diff
Compare files and directories line-by-line to detect changes and generate patches.
Quick Start
- Verify
diffis available:diff --versionorman diff - Establish the command surface:
man diffordiff --help - Start with a read-only comparison:
diff file1.txt file2.txt
Intent Router
Load only the reference file needed for the active request.
references/install-and-setup.md— Installing diff (GNU, BSD) on macOS, Linux, Windowsreferences/cheatsheet.md— Common flags, unified diffs, context diffs, side-by-side output, patch generationreferences/advanced-usage.md— Recursive directory comparison, ignore patterns, patch application, three-way merge, performancereferences/troubleshooting.md— Binary file detection, line ending differences (CRLF vs LF), encoding issues, exit codes