file-diff-checker
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "file-diff-checker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-62a43da2af9d77061f34ffeddb6424634e084a6614985d2edbcca60ed8bca9ed. Verify the upstream source and version against https://skillhub.cn/skills/user_d8831e99/file-diff-checker before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Duplicate File Diff Checker: for comparing differences among duplicate files, performing automatic deduplication, intelligent classification, and building file knowledge associations. This skill should be used when the user asks about “duplicate file diff checking.” Keywords: file comparison, diff analysis, deduplication.
Introduction source: third_party · user_d8831e99 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Use `write_to_file` Generates the file.
- Limits and differences
- All data must come from `web_search` I'm sorry. `web_fetch` The true search results,** the creation of data is forbidden** The report must be kept as a file if data is missing and labeled "data is not available" rather than speculating. `write_to_file` ) cannot only be published in the dialogue and the recommendation is used in conjunction with manual judgement, AI analysis only for reference
- Testing
- Not tested
Browse files
Frontmatter
name: file-diff-checker
slug: file-diff-checker
displayName: 文件差异对比
description: "重复文件差异对比。自动去重、智能归类,构建文件知识关联 This skill should be used when the user asks about 重复文件差异对比. Keywords: 文件对比, 差异分析, 去重."
version: 1.0.0
author: AtomCode
tags: [文件, 对比, 差异, 去重]重复文件差异对比
自动去重、智能归类,构建文件知识关联
前置依赖
pip install pandas
核心能力
能力1:读取指定目录下的文件(read_file)
用 web_fetch 抓取页面内容 / 用 read_file 读取文件。
能力2:检测重复和相似文件
用 read_file 逐个读取目标文件,用 execute_command 运行diff工具进行精确对比。
能力3:生成差异对比报告(高亮不同之处)
用 write_to_file 生成文件。
能力4:提供去重合并建议
用 read_file 逐个读取目标文件,用 execute_command 运行diff工具进行精确对比。
能力5:输出整理后的文件清单
用 write_to_file 生成文件。
使用流程
步骤 1:收集用户需求
向用户确认以下信息(如果未主动提供):
- 需要对比哪些文件?(提供文件路径或目录)
- 是否需要忽略特定类型的差异?(空格/注释/编码)
- 输出差异报告的格式?(Markdown/HTML)
步骤 2:运行脚本处理数据
python3 scripts/file_diff_checker_tool.py run \
--input "用户提供的输入" \
--output "/path/to/output_file"
读取脚本输出的结果,确认数据处理成功。
步骤 3:生成最终产出
基于脚本输出和搜索到的资源,用 write_to_file 生成以下文件:
- Markdown 差异报告
- 去重后文件清单
输出格式要求:Markdown 差异报告 + 去重建议清单
步骤 4:汇总交付
向用户展示:
- 生成的文件路径和内容摘要
- 搜集到的资源链接列表
- 关键发现和建议
输出格式
# 📋 重复文件差异对比 — 执行报告
**生成时间**: YYYY-MM-DD HH:MM
**目标用户**: 办公人员、项目管理者、文档管理员
## 执行摘要
[基于实际执行结果的一段话摘要]
## 详细结果
### 📊 生成的文件
| 文件名 | 类型 | 说明 |
|--------|------|------|
| [文件名] | [类型] | [说明] |
### 🔗 资源链接
| 名称 | 链接 | 说明 |
|------|------|------|
| [资源] | [URL] | [说明] |
## 行动建议
[具体的下一步建议]
验收标准
- ✅ 所有文件已读取
- ✅ 重复检测准确
- ✅ 差异高亮清晰
- ✅ 去重建议可执行
场景化适配
根据文件类型(代码/文档/表格)调整对比策略
依赖 Skills
本 Skill 参考以下已有 Skill 的能力进行增强:
- note-organizer
注意事项
- 所有数据必须来自
web_search/web_fetch的真实搜索结果,严禁编造数据 - 数据缺失时标注"数据不可用"而非猜测
- 报告必须保存为文件(
write_to_file),不能只在对话中输出 - 建议结合人工判断使用,AI 分析仅供参考
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供重复文件差异对比与智能去重能力,解决用户文件管理的实际痛点
- 支持多种文件类型适配,具备较强的通用性和实用性
Highlights
- 触发场景描述清晰,关键词覆盖合理,边界明确
Highlights
- 结构完整,流程清晰,包含端到端示例和验收标准
- frontmatter 完整,文档组织规范
Areas to improve
-
异常处理与确认机制不足 Reported severity: Major
未显式处理文件不存在、权限错误、diff 工具未安装等常见异常,也未对不可逆操作(如去重删除)提供用户确认机制
Recommendation: 建议在脚本和执行流程中加入异常捕获与友好提示,并对删除/覆盖等操作增加确认步骤
Highlights
- 依赖明确,工具调用方式清晰
- 脚本路径和参数设计合理
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 18
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.