360 Secure SkillHub
360 安全技能中心

Validator

该 Skill 提供命令行校验脚本,可检查邮箱、URL、IP、电话、日期、域名、信用卡号、JSON、YAML 和 CSV 等输入格式;URL 可选用 curl 做 HTTP 检查,域名可选用 dig 做 DNS 查询,核心校验可在本地离线完成。

分类:效率
xueyetianya
xueyetianya
热度 44.03
最近更新 2026-05-18 12:24:51

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add xueyetianya/validator
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
validator
version
3.0.1
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
license
MIT-0
tags
["validator","tool","utility"]
description
Validate emails, URLs, phones, dates, and custom patterns. Use when sanitizing input, verifying form fields, checking formats, or enforcing rules.

validator

Input validator.

Commands

email

Validate email format

scripts/script.sh email <address>

url

Validate URL (+ HTTP check if curl available)

scripts/script.sh url <url>

ip

Validate IPv4/IPv6 address

scripts/script.sh ip <address>

phone

Validate phone number (7-15 digits)

scripts/script.sh phone <number>

date

Validate and parse date string

scripts/script.sh date <string>

domain

Validate domain (+ DNS lookup if dig available)

scripts/script.sh domain <name>

credit-card

Luhn algorithm check + card type detection

scripts/script.sh credit-card <number>

json

Validate JSON syntax

scripts/script.sh json <file>

yaml

Validate YAML syntax

scripts/script.sh yaml <file>

csv

Validate CSV structure (column consistency)

scripts/script.sh csv <file>

Requirements

  • python3
  • curl
  • dig (optional)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com