yaml

Enforce YAML syntax and style rules for parseable configuration files.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill yaml-cogni-ai-ou
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: yaml
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/yaml
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill yaml-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents YAML formatting and structural mistakes that lead to broken configs, failed automation, and confusing runtime errors.

Core Features & Use Cases

  • YAML formatting rules: Standardizes indentation, list/object structure, quoting, and comment style to keep files parseable and consistent.
  • Linting and automated fixing guidance: Shows how to validate YAML with yamllint and apply project formatting with yamlfix.
  • Safe editing practices: Warns against using non-schema-aware tools like sed/awk/grep that commonly corrupt YAML.

Quick Start

Use the yaml skill when you update a YAML file to ensure it follows project formatting rules and passes yamllint/yamlfix checks.

Frequently Asked Questions about yaml

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

FAQPage Schema
How do I fix YAML indentation and formatting errors that break configuration parsing?ā–¼

Fix YAML formatting errors by standardizing indentation, list structure, and quoting, then validating with yamllint to ensure configs parse correctly without runtime errors.

Why does editing YAML with sed or awk corrupt my configuration files?ā–¼

Editing YAML with sed or awk corrupts files because these text-based tools are not schema-aware and easily break whitespace and indentation rules, causing invalid structures.

What is the best way to automate YAML linting in a pre-commit workflow?ā–¼

Automate YAML linting by integrating yamllint and yamlfix into pre-commit validation workflows, ensuring files enforce whitespace rules and pass formatting checks before commits.

How do I validate YAML structure for infrastructure and agent setups?ā–¼

Validate YAML structure for infrastructure and agent setups by applying formatting rules and running yamllint to confirm correct indentation, proper quoting, and safe configuration parsing.

Can I use yamlfix to automatically standardize YAML style across my project?ā–¼

Yes, use yamlfix to automatically apply project formatting rules, standardizing comment style, list object structure, and quoting to keep YAML files parseable and consistent.

When do I need to run yamllint checks on .yml files?ā–¼

Run yamllint checks on .yml files when authoring or maintaining YAML configurations to enforce whitespace rules, avoid unsafe text transformations, and prevent syntax errors.