360 Secure SkillHub
360 安全技能中心

file-compare

核心功能为对比两个文件,适用于需要实用工具功能、自动化对比任务及文件系统操作场景。使用时通过命令行指定输入输出文件,需先配置COMPARE_API_KEY环境变量,执行后返回含success状态和对比数据的JSON结果。

jpengcheng523-netizen
jpengcheng523-netizen
热度 33.15
最近更新 2026-05-11 17:37:12
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add jpeng-file-compare
Metadata
name
jpeng-file-compare
description
Compare two files
version
1.0.0
author
jpeng
tags
["utility","compare","filesystem"]

File Compare

Compare two files

When to Use

  • User needs utility related functionality
  • Automating compare tasks
  • Filesystem operations

Usage

python3 scripts/file_compare.py --input <input> --output <output>

Configuration

Set required environment variables:

export COMPARE_API_KEY="your-api-key"

Output

Returns JSON with results:

{
  "success": true,
  "data": {}
}