| name | difftastic |
| description | Use this skill when the user wants to compare files or directories with a syntax-aware diff tool. |
difftastic Plugin
Structural diff tool that understands syntax across 30+ languages.
Commands
Files
difftastic files diff — Compare two files with structural diff
Directories
difftastic dirs diff — Compare two directories recursively
Usage Examples
- "Compare two files with syntax-aware diff"
- "Show differences between directories"
- "Diff two source code files"
Installation
cargo install difftastic
Examples
difft old.rs new.rs
difft --display side-by-side old.py new.py
difft dir1/ dir2/
difft --display inline file1.js file2.js
difft --ignore-comments old.java new.java
Key Features
- Syntax-aware diff for 30+ languages
- AST-based comparison (not just text)
- Side-by-side and inline display modes
- Better diffs for code refactors
- Works with git for improved diffs