← 返回 Skills 市场
mirni

Datagate

作者 mirni · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
104
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install datagate
功能描述
Validate JSON data against a JSON Schema (Draft 2020-12). Post a schema and payload, get back whether it's valid plus detailed error paths and messages for e...
使用说明 (SKILL.md)

DataGate

Validate any JSON payload against a JSON Schema.

Start the server

uvicorn datagate.app:app --port 8004

Validate data

curl -s -X POST http://localhost:8004/v1/validate \
  -H "Content-Type: application/json" \
  -d '{
    "json_schema": {
      "type": "object",
      "properties": {"name": {"type": "string"}, "age": {"type": "integer", "minimum": 0}},
      "required": ["name", "age"]
    },
    "payload": {"name": "Alice", "age": 30}
  }' | jq

Returns valid (true/false), error_count, and errors (each with path pointing to the exact field and message explaining the violation).

Handles invalid schemas too

If you send a broken schema, DataGate catches it and returns an error pointing to $schema with a clear message. No crashes.

Use case

Agents passing data between services can validate payloads before sending. Non-Python agents get Pydantic-grade validation via a simple API call.

安全使用建议
This skill is internally consistent and implements a local JSON Schema validation API. Before installing: run it inside a controlled environment (virtualenv/container) so pip installs don't affect system packages; be aware running the server binds a network port — bind to localhost or firewall it if you don't want external access; vet PyPI package sources per your org policy; and avoid exposing the endpoint to untrusted clients because malicious or deeply recursive schemas/payloads could cause high CPU/memory use (denial-of-service risk).
功能分析
Type: OpenClaw Skill Name: datagate Version: 1.0.0 The 'datagate' skill bundle is a legitimate utility for validating JSON payloads against JSON Schemas using FastAPI and the jsonschema library. The implementation in datagate/app.py and datagate/models.py is straightforward, follows best practices, and contains no evidence of malicious intent, data exfiltration, or suspicious execution patterns.
能力评估
Purpose & Capability
Name/description match the code and runtime instructions. Required binary (python) and listed Python packages (fastapi, uvicorn, pydantic, jsonschema) are appropriate for a small validation HTTP service.
Instruction Scope
SKILL.md instructs running a local uvicorn server and shows a single POST /v1/validate endpoint. The instructions do not read unrelated files, env vars, or send data to other endpoints.
Install Mechanism
Install spec indicates Python packages (PyPI-style). This is a standard, expected install method for a Python FastAPI app; no downloads from arbitrary URLs or extraction of remote archives were found.
Credentials
The skill declares no required environment variables or credentials and the code does not access secrets or external configs. Required dependencies are limited to those needed for the service.
Persistence & Privilege
always:false and no special privileges requested. The skill runs as a normal local HTTP service and does not attempt to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install datagate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /datagate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Updated documentation for clarity and usability: simplified usage, enhanced descriptions, and improved example responses. - Metadata field revised to add emoji and update install instructions format. - Outlined handling of invalid schemas with clear error responses. - Clarified language-agnostic use cases and stated that agents of any runtime can access validation. - Removed explicit version references and streamlined installation steps.
v0.1.1
- Added installation instructions and metadata, including dependencies and openclaw requirements. - Updated usage section with local server startup instructions and revised curl example to use localhost. - Incremented version to 0.1.1.
v0.1.0
Initial release of DataGate. - Validate JSON payloads against JSON Schema (Draft 2020-12) - Returns detailed error reports with error paths and messages - Stateless API suitable for agent pipelines - Usable as both a hosted API and a standalone FastAPI app - Language-agnostic design for easy integration with any runtime
元数据
Slug datagate
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Datagate 是什么?

Validate JSON data against a JSON Schema (Draft 2020-12). Post a schema and payload, get back whether it's valid plus detailed error paths and messages for e... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 104 次。

如何安装 Datagate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install datagate」即可一键安装,无需额外配置。

Datagate 是免费的吗?

是的,Datagate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Datagate 支持哪些平台?

Datagate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Datagate?

由 mirni(@mirni)开发并维护,当前版本 v1.0.0。

💬 留言讨论