← 返回 Skills 市场
dinghaibin

Validator Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install validator-tool
功能描述
Validate data formats including JSON, email, URL, file paths, IP addresses, and phone numbers with detailed error reporting and batch processing.
使用说明 (SKILL.md)

Validator Tool — Multi-Format Data Validation

Validate, lint, and report errors across common data formats. Designed for input sanitization pipelines, CI checks, and API request validation.

Quick Start

# Validate a JSON string
validator-tool --json '{"name":"Alice","age":30}'

# Validate an email address
validator-tool --email "[email protected]"

# Validate a URL
validator-tool --url "https://example.com/path?q=1"

Usage

validator-tool [TYPE] [INPUT] [OPTIONS]

Types:
  --json      Validate JSON syntax and optional schema
  --email     Validate email format (RFC 5321/5322)
  --url       Validate URL format and scheme
  --path      Validate file/directory path (exists, readable, writable)
  --ip        Validate IPv4 or IPv6 address
  --phone     Validate phone number format (E.164 or regional)

Options:
  --schema FILE   JSON Schema file for --json validation
  --strict        Strict mode (reject warnings as errors)
  --batch FILE    Validate multiple inputs from a file (one per line)
  --json-output   Output results as JSON
  --verbose       Show detailed error reasons

Examples

# Validate JSON with schema
validator-tool --json '{"id":1,"name":"Test"}' --schema schema.json

# Batch validate emails from file
validator-tool --email --batch emails.txt --json-output

# Validate an IP address
validator-tool --ip "192.168.1.1"

# Check if a file path exists and is writable
validator-tool --path "/tmp/log.txt" --strict

Features

  • Multiple formats: JSON, email, URL, path, IP, phone
  • JSON Schema support: Validate against draft-07 schemas
  • Batch mode: Process hundreds of inputs from a file
  • Exit codes: 0 = all valid, 1 = any invalid, 2 = error
  • Machine-readable: --json-output for pipeline integration
  • Strict mode: Surface warnings as errors
  • i18n emails: Supports internationalized email addresses
安全使用建议
This skill looks safe for ordinary local validation tasks. Before installing, note that the documentation and script differ somewhat, and avoid passing real payment-card numbers or large private batch files unless you specifically intend the agent to validate them.
功能分析
Type: OpenClaw Skill Name: validator-tool Version: 1.0.0 The validator-tool skill bundle provides a Python script (scripts/validate.py) that implements standard data validation logic for formats like JSON, email, IP addresses, and credit card numbers (via Luhn algorithm) using built-in libraries. While the documentation (SKILL.md) describes several features not actually implemented in the code (such as file path validation, batch processing, and JSON schema support), the existing code is safe, lacks network/file-writing capabilities, and contains no indicators of malicious intent or prompt injection.
能力评估
Purpose & Capability
The stated purpose is data-format validation and the included Python code performs local validation, but SKILL.md documents path/schema/batch options that the script does not implement, while the script adds credit-card, UUID, hex, and date validators not listed in the main description.
Instruction Scope
The instructions are user-invoked CLI examples. Some documented options involve user-specified files or paths, so users should ensure the agent only validates intended inputs.
Install Mechanism
There is no install spec, no required binaries, no required environment variables, and the included script uses only Python standard-library modules.
Credentials
The provided code shows local parsing/validation only, with no network calls, file writes, subprocess execution, credential use, or background behavior.
Persistence & Privilege
No persistence, privilege escalation, account access, background worker, or long-running autonomous behavior is shown in the artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install validator-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /validator-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug validator-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Validator Tool 是什么?

Validate data formats including JSON, email, URL, file paths, IP addresses, and phone numbers with detailed error reporting and batch processing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Validator Tool?

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

Validator Tool 是免费的吗?

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

Validator Tool 支持哪些平台?

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

谁开发了 Validator Tool?

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

💬 留言讨论