← 返回 Skills 市场
jpengcheng523-netizen

validation-utils

作者 jpengcheng523-netizen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
140
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jpeng-validation-utils
功能描述
Provides data validation and type checking utilities for validating inputs and data structures. Use when you need to validate data types, check constraints,...
使用说明 (SKILL.md)

Validation Utils

Provides data validation and type checking utilities.

Usage

const v = require('./skills/validation-utils');

// Type checking
if (v.isString(value)) { ... }
if (v.isArray(value)) { ... }

// Validation
const result = v.validate(user, {
  name: v.required(v.isString),
  age: v.optional(v.isNumber),
  email: v.required(v.isEmail)
});

// Assert
v.assert(v.isPositive(5), 'Must be positive');

Features

  • Type checking utilities
  • Required/optional validators
  • Email, URL, UUID validation
  • Number range validation
  • String pattern validation
  • Object schema validation
  • Assertion helpers
安全使用建议
This package looks like a straightforward validation utility and is internally consistent with its description. Before installing, confirm the full index.js contents (the provided excerpt was truncated) to ensure there are no hidden network calls, filesystem access, or dynamic evals at the end of the file. Because the source/homepage is unknown, prefer using a validation library from a known maintainer (e.g., ajv, validator.js) or run the code in a sandboxed environment and run a quick static scan (search for require('child_process'), fetch/HTTP calls, fs access, eval/new Function, or process.env usage). Also check exports and test the library locally with representative inputs before using it in production.
功能分析
Type: OpenClaw Skill Name: jpeng-validation-utils Version: 1.0.0 The skill bundle provides a comprehensive set of standard data validation and type-checking utilities (e.g., email, URL, UUID, and schema validation). The code in index.js is well-structured, contains no external dependencies, and performs no high-risk operations such as network requests, file system access, or command execution.
能力评估
Purpose & Capability
The name and description (data validation / type checking) match the included code: index.js implements many isX / validator helpers and schema validation. Declared metadata and files are proportionate to a validation utility.
Instruction Scope
SKILL.md contains only usage examples and feature descriptions for validation helpers and does not instruct the agent to read unrelated files, access environment variables, or transmit data externally.
Install Mechanism
No install spec is provided (instruction-only install), and the included package.json is minimal. Nothing is downloaded from external URLs or written to disk by an install step in the manifest.
Credentials
The skill requires no environment variables, no credentials, and no config paths. The functionality (pure JS validators) does not justify additional secrets or access.
Persistence & Privilege
The skill does not request always:true and uses default invocation settings. It does not appear to modify other skills or require system-level persistence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jpeng-validation-utils
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jpeng-validation-utils 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of validation-utils. - Provides utilities for data validation and type checking. - Supports required and optional validators for schema-based validation. - Includes functions for email, URL, and UUID validation. - Offers number range and string pattern validation. - Features assertion helpers to enforce data integrity.
元数据
Slug jpeng-validation-utils
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

validation-utils 是什么?

Provides data validation and type checking utilities for validating inputs and data structures. Use when you need to validate data types, check constraints,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 140 次。

如何安装 validation-utils?

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

validation-utils 是免费的吗?

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

validation-utils 支持哪些平台?

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

谁开发了 validation-utils?

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

💬 留言讨论