k8s-yaml-validator

Validate Kubernetes YAML manifests with syntax, schema, and dry-run checks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill k8s-yaml-validator-sudohakan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-yaml-validator
Source: https://github.com/sudohakan/claude-code-dotfiles/tree/main/config/skills/cc-devops-skills/devops-skills-plugin/skills/k8s-yaml-validator
Command: npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill k8s-yaml-validator-sudohakan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the validation of Kubernetes YAML manifests, catching syntax errors, schema violations, and potential deployment issues before they reach a cluster.

Core Features & Use Cases

  • Comprehensive Validation: Checks YAML syntax, Kubernetes schema compliance, and performs cluster dry-runs.
  • CRD Support: Detects and looks up documentation for Custom Resource Definitions.
  • Use Case: Before applying a new Kubernetes deployment configuration, use this Skill to ensure it's free of errors and adheres to best practices, preventing costly deployment failures.

Quick Start

Use the k8s-yaml-validator skill to validate the file 'deployment.yaml'.

Frequently Asked Questions about k8s-yaml-validator

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

FAQPage Schema
How do I validate Kubernetes YAML manifests before deployment?

Validate Kubernetes YAML manifests by running them through a multi-stage process that performs syntax linting, schema validation, and cluster dry-runs to catch formatting errors and deployment issues before they reach your cluster.

What is Kubernetes schema validation and how does it prevent deployment errors?

Kubernetes schema validation checks API object structure and schema compliance against best practices. It identifies structural violations and potential admission controller rejections early, preventing costly deployment failures during the apply phase.

Can I validate Kubernetes CRDs using a YAML linter?

Yes, you can validate Custom Resource Definitions by using a validator that includes CRD detection. It automatically identifies custom resources and looks up their documentation to verify configurations against the expected schema.

Does kubeconform work with kubectl for cluster dry-runs?

Kubeconform handles local schema validation, while kubectl supports cluster dry-runs. Together they provide comprehensive validation by combining offline linting with server-side admission controller checks to ensure manifests are fully deployment-ready.

Why does my Kubernetes YAML fail to apply with an admission controller rejection?

Admission controller rejections occur when manifests violate cluster policies. Validating your YAML beforehand through cluster dry-runs and schema compliance checks detects these issues locally, preventing failed deployments caused by API object structure violations.