← 返回 Skills 市场
johnnywang2001

Jrv Yaml Toolkit

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
153
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jrv-yaml-toolkit
功能描述
Full-featured YAML toolkit for validating, formatting, converting, merging, and querying YAML files. Supports YAML-to-JSON, JSON-to-YAML, schema validation,...
使用说明 (SKILL.md)

jrv-yaml-toolkit

Everything you need to work with YAML files: validate syntax, format/prettify, convert to/from JSON, query with dot-path expressions, merge multiple files, and check against a schema.

Quick Start

# Validate YAML syntax
python3 scripts/yaml_toolkit.py validate config.yaml

# Format/prettify YAML
python3 scripts/yaml_toolkit.py format messy.yaml

# Convert YAML to JSON
python3 scripts/yaml_toolkit.py to-json config.yaml

# Convert JSON to YAML
python3 scripts/yaml_toolkit.py from-json data.json

# Query a value by dot-path
python3 scripts/yaml_toolkit.py get config.yaml "server.host"

# Set a value
python3 scripts/yaml_toolkit.py set config.yaml "server.port" 8080

# Merge multiple YAML files (later files override earlier)
python3 scripts/yaml_toolkit.py merge base.yaml override.yaml

# Lint against a simple schema file
python3 scripts/yaml_toolkit.py lint config.yaml --schema schema.yaml

# List all keys (flattened dot-path)
python3 scripts/yaml_toolkit.py keys config.yaml

# Minify YAML (single-line flow style)
python3 scripts/yaml_toolkit.py minify config.yaml

Commands

Command Description
validate \x3Cfile> Check YAML syntax, report errors with line numbers
format \x3Cfile> Pretty-print YAML with consistent indentation
to-json \x3Cfile> Convert YAML to JSON
from-json \x3Cfile> Convert JSON to YAML
get \x3Cfile> \x3Cpath> Get value at dot-path (e.g. server.host)
set \x3Cfile> \x3Cpath> \x3Cval> Set value at dot-path, output updated YAML
merge \x3Cfile1> \x3Cfile2> ... Deep-merge YAML files (right overrides left)
lint \x3Cfile> --schema \x3Cs> Validate keys against a schema YAML
keys \x3Cfile> List all keys as flattened dot-paths
minify \x3Cfile> Output compact single-line YAML

Options

Flag Description
--output \x3Cfile> Write output to file instead of stdout
--indent N Indentation spaces (default: 2)
--allow-unicode Allow unicode in output (default: true)

Use Cases

  • DevOps: Validate Kubernetes and Docker Compose configs before applying
  • CI/CD: Merge environment-specific YAML overrides
  • Config management: Query and patch config values programmatically
  • Data pipelines: Convert between JSON and YAML for different tools
  • Documentation: List all config keys for auto-generated docs

Exit Codes

  • 0 — Success
  • 1 — Validation error or key not found
  • 2 — File not found or parse error
安全使用建议
The skill appears internally consistent and implements a local YAML CLI without network calls or credential access. Before installing: (1) be aware the package source has no homepage and unknown owner—review the bundle yourself if you can; (2) install PyYAML (pip install pyyaml) before use; (3) run the tool on non-sensitive files first and/or in a sandbox, and keep backups before using commands that write output (set/merge/from-json with --output). If you need higher assurance, request a full code review of the complete script (the listing was truncated at the CLI wiring) or ask the author for a source repo or homepage.
功能分析
Type: OpenClaw Skill Name: jrv-yaml-toolkit Version: 1.0.0 The jrv-yaml-toolkit is a standard utility for processing YAML files, providing features like validation, formatting, conversion, and merging. The implementation in scripts/yaml_toolkit.py uses security best practices such as yaml.safe_load() to prevent arbitrary code execution during parsing and does not contain any network calls, obfuscation, or unauthorized file access.
能力评估
Purpose & Capability
Name/description align with the included script: the Python CLI implements validate/format/convert/get/set/merge/lint/keys/minify and supports the documented use cases.
Instruction Scope
SKILL.md instructs the agent to run the bundled script on user-provided files. The instructions do not ask the agent to read unrelated system files, environment variables, or send data externally.
Install Mechanism
There is no install spec (instruction-only), which is lowest risk, but the script requires PyYAML (it exits with an error if pyyaml is missing). The registry metadata did not declare this dependency explicitly—user must install pyyaml themselves.
Credentials
The skill requests no environment variables, no credentials, and references only the files passed on the command line. No excessive or unrelated secrets or paths are requested.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide agent settings. It writes only to stdout or to a user-specified output file.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jrv-yaml-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jrv-yaml-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of jrv-yaml-toolkit. - Supports validating YAML syntax with error reporting. - Formats and prettifies YAML files. - Converts between YAML and JSON formats. - Queries and sets values using dot-path expressions. - Deep-merges multiple YAML files with override support. - Validates YAML against a schema file. - Lists all YAML keys in flattened form. - Outputs minified, single-line YAML. - Provides command-line options for output file, indentation, and Unicode handling.
元数据
Slug jrv-yaml-toolkit
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Jrv Yaml Toolkit 是什么?

Full-featured YAML toolkit for validating, formatting, converting, merging, and querying YAML files. Supports YAML-to-JSON, JSON-to-YAML, schema validation,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。

如何安装 Jrv Yaml Toolkit?

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

Jrv Yaml Toolkit 是免费的吗?

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

Jrv Yaml Toolkit 支持哪些平台?

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

谁开发了 Jrv Yaml Toolkit?

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

💬 留言讨论