/install file-diff
File Diff
Compare two files and display differences in a clean, readable markdown format.
Usage
Quick Compare (Two file paths)
diff \x3Csource_file> \x3Ctarget_file>
Unified Diff Format (Recommended)
diff -u \x3Csource_file> \x3Ctarget_file>
Output Format
The diff output is formatted as:
**File A**: `/path/to/file1`
**File B**: `/path/to/file2`
## Differences
### 1. [Section/Line description]
```diff
- removed line
+ added line
## Workflow
1. Identify the two files to compare
2. Run `diff -u` command
3. Parse the unified diff output
4. Format into readable markdown with:
- File paths as headers
- Line numbers from diff output
- `-` prefix for removals (red)
- `+` prefix for additions (green)
- Context lines for clarity
## Example
Input:
```bash
diff -u /tmp/original.txt /tmp/modified.txt
Output format:
**File A**: `/tmp/original.txt`
**File B**: `/tmp/modified.txt`
## Differences
### Line 5
```diff
- old content
+ new content
## Notes
- Always use `-u` flag for unified format (more readable)
- Include both file paths in the output
- Preserve all changes including additions, deletions, and modifications
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install file-diff - After installation, invoke the skill by name or use
/file-diff - Provide required inputs per the skill's parameter spec and get structured output
What is File Diff?
Compare two files and display their differences in a human-readable markdown format. Use when asked to "compare files", "show diff", "compare differences", "... It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.
How do I install File Diff?
Run "/install file-diff" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is File Diff free?
Yes, File Diff is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does File Diff support?
File Diff is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created File Diff?
It is built and maintained by Super 9° (@super9du); the current version is v1.0.0.