文本差异比较工具。比较两个文本、文件或字符串的差异,高亮显示新增、删除和修改的行。适合代码审查、文档对比、版本比对等场景。
文本差异比较工具,快速比较两个文本或文件的差异。
bash
python3 scripts/diff.py string 第一段文本 第二段文本
bash
python3 scripts/diff.py file /path/to/file1.txt /path/to/file2.txt
bash
python3 scripts/diff.py file /path/to/file1.txt /path/to/file2.txt --format simple
bash
python3 scripts/diff.py file /path/to/file1.txt /path/to/file2.txt --format json
bash
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 diff-tool-1776383521 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 diff-tool-1776383521 技能
skillhub install diff-tool-1776383521
文件大小: 3.77 KB | 发布时间: 2026-4-17 14:39