data-serialization

Convert and query JSON, YAML, TOON, XML, and HTML data formats.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/nsheaps/ai-mktpl --skill data-serialization-nsheaps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-serialization
Source: https://github.com/nsheaps/ai-mktpl/tree/main/plugins/data-serialization/skills/data-serialization
Command: npx skills add https://github.com/nsheaps/ai-mktpl --skill data-serialization-nsheaps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert, normalize, and query structured data across formats to make toolchains and LLM contexts compact, consistent, and queryable. It eliminates manual format juggling and reduces tokens for LLM inputs by providing reliable conversions and query patterns.

Core Features & Use Cases

  • Format conversion between JSON, YAML, TOON, XML, and HTML with guidance on when to use each format.
  • Token-efficient TOON encoding/decoding to reduce LLM input size for uniform arrays and tabular data.
  • Querying guidance and examples using jq, yq, and XPath/xmllint, plus Playwright accessibility snapshot conversion for accessibility testing workflows.
  • Use case: convert API output to TOON for prompt input, run jq/yq filters to extract relevant records, or turn Playwright snapshots into queryable JSON for automated audits.

Quick Start

Convert data.json to TOON format and return the converted content.

Frequently Asked Questions about data-serialization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert JSON to YAML for structured data transformation?

To convert JSON to YAML for structured data transformation, you can apply format conversion workflows that produce lossless translations between JSON, YAML, and TOON. This ensures your data remains consistent and queryable across different structured formats.

What is TOON format and when should I use it for LLM inputs?

TOON is a token-efficient data format used to reduce LLM input size for uniform arrays and tabular data. You should use TOON encoding when you need to compress structured API outputs into compact, lossless payloads before feeding them into prompt contexts.

How do I run jq queries to extract specific records from API output?

You can run jq queries to extract specific records from API output by applying jq-based querying workflows to your JSON data. This allows you to filter and retrieve relevant records while preserving the original source files during the transformation process.

Can I convert Playwright accessibility snapshots into queryable JSON?

Yes, you can convert Playwright accessibility snapshots into queryable JSON. This functionality supports accessibility testing workflows by transforming snapshot data into structured formats suitable for automated audits and further querying.

Does this data conversion approach handle malformed input?

Yes, this data conversion approach explicitly handles malformed input during transformations. It applies processing logic that manages malformed data gracefully while performing format conversions and querying workflows across JSON, YAML, XML, and HTML.