← 返回 Skills 市场
98
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install diffgate
功能描述
Compare two texts and get a unified diff with a similarity score (0-1), line-level additions/deletions, and individual change records. Useful for comparing L...
使用说明 (SKILL.md)
DiffGate
Compare two texts and see exactly what changed.
Start the server
uvicorn diffgate.app:app --port 8006
Compare texts
curl -s -X POST http://localhost:8006/v1/diff \
-H "Content-Type: application/json" \
-d '{"text_a": "hello\
world", "text_b": "hello\
earth"}' | jq
Returns similarity (1.0 = identical, 0.0 = completely different), additions, deletions, and changes (each with type add/delete and content).
Use cases
- Compare two LLM outputs to check consistency
- Verify a document hasn't been tampered with
- Track changes between skill versions
- Diff config files before and after an update
安全使用建议
This skill appears coherent and limited to running a local FastAPI service that diffs two texts. Before installing: (1) run pip installs inside a virtual environment, (2) avoid exposing the server port to untrusted networks (it listens on localhost:8006 by default in the docs but starting uvicorn can bind more widely depending on flags), and (3) review and limit input sizes if you expect very large texts (models allow up to 500k chars). If you need stronger isolation, run it in a container. No credentials are required and no external network calls are present in the code.
功能分析
Type: OpenClaw Skill
Name: diffgate
Version: 1.0.0
The DiffGate skill is a straightforward FastAPI application designed to compare text strings and calculate similarity scores using the standard Python 'difflib' library. The code in diffgate/app.py and diffgate/models.py is clean, stateless, and lacks any indicators of malicious intent, data exfiltration, or unauthorized execution. The instructions in SKILL.md are consistent with the provided functionality.
能力评估
Purpose & Capability
Name/description (text diff + similarity) match the included Python FastAPI app and Pydantic models. Required binary (python) and the listed pip packages (fastapi, uvicorn, pydantic) are appropriate and proportional.
Instruction Scope
SKILL.md instructs the agent to start a local uvicorn server and POST two texts to /v1/diff. The app only processes provided text inputs, computes a SequenceMatcher ratio, and builds a unified diff; it does not read local files, access other environment variables, or call external endpoints.
Install Mechanism
Install metadata points to installing common Python packages via pip (fastapi, uvicorn, pydantic). This is a standard, expected install path for a FastAPI service and does not fetch arbitrary binaries or unknown URLs.
Credentials
No environment variables, credentials, or config paths are requested. The skill requires no secrets and its declared requirements are minimal and appropriate for the stated functionality.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes. It only provides a local HTTP service and does not modify other skills or system configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install diffgate - 安装完成后,直接呼叫该 Skill 的名称或使用
/diffgate触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial stable release with refreshed docs and metadata.
- Updated documentation for clarity, with simple usage and examples
- Enhanced SKILL metadata (adds emoji, refines install section)
- Documents new use cases (LLM output comparison, config tracking)
- No code/API changes—functionality remains the same
v0.1.1
- Added Openclaw metadata section specifying binary and Python package requirements.
- Updated installation instructions to include pydantic dependency.
- Revised usage section with clarified steps for starting the server and making requests.
- Minor documentation improvements for clarity and accuracy.
v0.1.0
- Initial release of diffgate.
- Compares two texts and returns a unified diff, similarity score, addition and deletion counts, and detailed change records.
- Supports both hosted API and standalone FastAPI server deployments.
- Provides structured, easy-to-parse JSON responses for text comparison tasks.
元数据
常见问题
Diffgate 是什么?
Compare two texts and get a unified diff with a similarity score (0-1), line-level additions/deletions, and individual change records. Useful for comparing L... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 Diffgate?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install diffgate」即可一键安装,无需额外配置。
Diffgate 是免费的吗?
是的,Diffgate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Diffgate 支持哪些平台?
Diffgate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Diffgate?
由 mirni(@mirni)开发并维护,当前版本 v1.0.0。
推荐 Skills