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, path queries, and multi-document YAML.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "jrv-yaml-toolkit" with this command: npx skills add johnnywang2001/jrv-yaml-toolkit

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

CommandDescription
validate <file>Check YAML syntax, report errors with line numbers
format <file>Pretty-print YAML with consistent indentation
to-json <file>Convert YAML to JSON
from-json <file>Convert JSON to YAML
get <file> <path>Get value at dot-path (e.g. server.host)
set <file> <path> <val>Set value at dot-path, output updated YAML
merge <file1> <file2> ...Deep-merge YAML files (right overrides left)
lint <file> --schema <s>Validate keys against a schema YAML
keys <file>List all keys as flattened dot-paths
minify <file>Output compact single-line YAML

Options

FlagDescription
--output <file>Write output to file instead of stdout
--indent NIndentation spaces (default: 2)
--allow-unicodeAllow 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

通义晓蜜 - 智能外呼

触发阿里云晓蜜外呼机器人任务,自动批量拨打电话。适用于批量外呼、客户回访、满意度调查、简历筛查约面试等场景。可从前置工具或节点获取外呼名单。

Registry SourceRecently Updated
General

Letterboxd Watchlist

Scrape a public Letterboxd user's watchlist into a CSV/JSONL list of titles and film URLs without logging in. Use when a user asks to export, scrape, or mirror a Letterboxd watchlist, or to build watch-next queues.

Registry SourceRecently Updated
General

Seedance Video Generation

Generate AI videos using ByteDance Seedance. Use when the user wants to: (1) generate videos from text prompts, (2) generate videos from images (first frame, first+last frame, reference images), or (3) query/manage video generation tasks. Supports Seedance 1.5 Pro (with audio), 1.0 Pro, 1.0 Pro Fast, and 1.0 Lite models.

Registry SourceRecently Updated
4.2K17jackycser
General

Universal Skills Manager

The master coordinator for AI skills. Discovers skills from multiple sources (SkillsMP.com, SkillHub, and ClawHub), manages installation, and synchronization...

Registry SourceRecently Updated