lang-yaml

Validate YAML documents for YAML 1.2.2 compliance and Prettier formatting.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-yaml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-yaml
Source: https://github.com/dragoscirjan/opencode-config/tree/main/skills/lang-yaml
Command: npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-yaml

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you keep YAML files valid, readable, and consistent so configuration errors do not disrupt workflows.

Core Features & Use Cases

  • Standards Guidance: Follows YAML 1.2.2 practices for reliable parsing and predictable document behavior.
  • Formatting Consistency: Uses Prettier-based formatting to keep indentation and style uniform.
  • Structure Validation: Checks document shape so nested keys, mappings, and sequences stay correct.
  • Use Case: Ideal for configuration files, CI settings, and agent or tool manifests that must remain machine-readable.

Quick Start

Ask the assistant to review this YAML file for YAML 1.2.2 compliance, format it with Prettier, and validate its structure.

Frequently Asked Questions about lang-yaml

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

FAQPage Schema
How do I validate YAML configuration files for syntax and formatting errors?

To validate YAML configuration files, you can check documents against YAML 1.2.2 compliance and apply Prettier formatting to ensure syntax, indentation, and structure are correct. This prevents configuration errors from disrupting workflows.

What is the best way to format YAML files to keep them machine-readable?

The best way to format YAML files is using Prettier-based formatting, which enforces uniform indentation and style. This ensures nested keys, mappings, and sequences remain structurally correct and machine-readable.

Does this YAML validation approach work for CI settings and agent manifests?

Yes, this YAML validation approach works for CI settings and agent manifests. It checks document shape and validates nested keys to ensure machine-readable documents remain consistent across development workflows.

Why does my YAML file fail structural correctness checks?

YAML files fail structural correctness checks when nested keys, mappings, and sequences violate YAML 1.2.2 standards. Validating document structure and applying Prettier formatting identifies and resolves these inconsistencies.

Can I use Prettier to standardize YAML formatting across development workflows?

Yes, you can use Prettier to standardize YAML formatting across development workflows. It maintains formatting consistency by enforcing uniform indentation and style for configuration files and manifests.