← Back to Skills Marketplace
dinghaibin

Validator Tool

by BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
45
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install validator-tool
Description
Validate data formats including JSON, email, URL, file paths, IP addresses, and phone numbers with detailed error reporting and batch processing.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install validator-tool
  3. After installation, invoke the skill by name or use /validator-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug validator-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Validator Tool?

Validate data formats including JSON, email, URL, file paths, IP addresses, and phone numbers with detailed error reporting and batch processing. It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.

How do I install Validator Tool?

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

Is Validator Tool free?

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

Which platforms does Validator Tool support?

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

Who created Validator Tool?

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

💬 Comments