← Back to Skills Marketplace
mirni

Diffgate

by mirni · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
98
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install diffgate
Description
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...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install diffgate
  3. After installation, invoke the skill by name or use /diffgate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug diffgate
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 98 downloads so far.

How do I install Diffgate?

Run "/install diffgate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Diffgate free?

Yes, Diffgate is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Diffgate support?

Diffgate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Diffgate?

It is built and maintained by mirni (@mirni); the current version is v1.0.0.

💬 Comments