# Lint YAML configs for syntax, duplicate keys, and style drift before CI or deploy

> Uses yamllint to inspect hand-written or generated YAML before it reaches CI or deploy. The agent returns line-level syntax, duplicate-key, indentation, and formatting findings so config changes can be fixed before they break pipelines or runtime environments.

- Skill: `agentskillexchange/lint-yaml-configs-for-syntax-duplicate-keys-and-style-drift-` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/lint-yaml-configs-for-syntax-duplicate-keys-and-style-drift-`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/lint-yaml-configs-for-syntax-duplicate-keys-and-style-drift-/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/lint-yaml-configs-for-syntax-duplicate-keys-and-style-drift-

---


# Lint YAML configs for syntax, duplicate keys, and style drift before CI or deploy

Uses yamllint to inspect hand-written or generated YAML before it reaches CI or deploy. The agent returns line-level syntax, duplicate-key, indentation, and formatting findings so config changes can be fixed before they break pipelines or runtime environments.

## Prerequisites

Python and the yamllint CLI

## Installation

Use the upstream install or setup path that matches your environment:
- pip install --user yamllint

Requirements and caveats from upstream:
- Written in Python.
- Using pip, the Python package manager:

Basic usage or getting-started notes:
- ^^^^^^^^^^^^
- .. code:: bash
- yamllint is also packaged for all major operating systems, see installation

- Source: https://github.com/adrienverge/yamllint
- Extracted from upstream docs: https://raw.githubusercontent.com/adrienverge/yamllint/HEAD/README.rst

## Documentation

- https://yamllint.readthedocs.io/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/lint-yaml-configs-for-syntax-duplicate-keys-and-style-drift-before-ci-or-deploy/)

