json-yaml
JSON/YAML Tools Skill
Validate, format, and convert between JSON, YAML, and TOML formats.
When to Use
✅ USE this skill when:
- "Format this JSON"
- "Validate this YAML file"
- "Convert JSON to YAML"
- "Parse this config file"
- "Query JSON data"
When NOT to Use
❌ DON'T use this skill when:
- Editing files directly → use text editor
- Large data processing → use specialized tools
Commands
Validate
{baseDir}/validate.sh <file>
{baseDir}/validate.sh config.json --format json
{baseDir}/validate.sh config.yaml --format yaml
Format/Prettify
{baseDir}/format.sh config.json
{baseDir}/format.sh config.yaml --indent 4
{baseDir}/format.sh config.json --compact
Convert
{baseDir}/convert.sh config.json --to yaml
{baseDir}/convert.sh config.yaml --to json
{baseDir}/convert.sh config.toml --to json
{baseDir}/convert.sh config.json --to toml
Query
{baseDir}/query.sh data.json '.users[0].name'
{baseDir}/query.sh data.json '.items | length'
{baseDir}/query.sh data.yaml '.config.settings'
Flatten/Unflatten
{baseDir}/flatten.sh data.json
{baseDir}/unflatten.sh data.json
Merge
{baseDir}/merge.sh file1.json file2.json --out merged.json
{baseDir}/merge.sh base.yaml overlay.yaml
Output Formats
- Formatted: Pretty-printed with indentation
- Compact: Single line, no whitespace
- Flat: Dot-notation keys
Examples
Format JSON file:
{baseDir}/format.sh config.json
# Output: Properly indented JSON
Convert YAML to JSON:
{baseDir}/convert.sh config.yaml --to json
Query JSON with jq-like syntax:
{baseDir}/query.sh data.json '.users[].name'
{baseDir}/query.sh data.json '.items | map(.price) | add'
Validate JSON:
{baseDir}/validate.sh config.json
# Output: Valid ✓ or error details
Notes
- Uses Python's json, yaml, and tomli libraries
- Supports YAML 1.2 specification
- Handles circular references in merge
- Query syntax is similar to jq
More from winsorllc/upgraded-carnival
vector-memory
Vector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic search, similar document retrieval, or context-aware memory.
131model-router
Route requests between different LLM providers and models. Configure routing rules, fallback providers, and model-specific parameters inspired by ZeroClaw and OpenClaw model routing systems.
63rss-monitor
Monitor RSS/Atom feeds and blogs for new content using feedparser.
59rss-reader
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
54video-frames
Production-grade video frame extraction with thumbnail grids, GIF creation, and batch frame processing. Includes intelligent quality presets, progress tracking, and comprehensive error handling.
39elevenlabs-tts
Convert text to speech using ElevenLabs API. Use when you need to generate voice audio for messages, narrations, or accessibility.
25