k8s-yaml-validator

Validates Kubernetes YAML manifests via linting, schema checks, and dry-runs.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill k8s-yaml-validator-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-yaml-validator
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/infrastructure/k8s/yaml-validator
Command: npx skills add https://github.com/pantheon-org/tekhne --skill k8s-yaml-validator-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill ensures your Kubernetes YAML manifests are syntactically correct, adhere to schemas, and pass cluster-level checks before deployment, preventing common errors and deployment failures.

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 (CRDs).
  • Detailed Reporting: Generates reports with suggested fixes, categorized by severity.
  • Use Case: Before applying a complex set of Kubernetes resources to production, use this Skill to catch syntax errors, schema violations, and potential admission controller rejections, ensuring a smooth deployment.

Quick Start

Use the k8s-yaml-validator skill to validate the manifest 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?

To validate Kubernetes YAML manifests before deployment, this Skill performs multi-stage checks using yamllint for syntax, kubeconform for schema compliance, and kubectl cluster dry-runs to prevent application failures.

What's the best way to check Kubernetes YAML syntax and schema compliance together?

Checking Kubernetes YAML syntax and schema compliance is best handled by running yamllint and kubeconform in sequence, followed by a cluster dry-run to catch admission controller rejections and potential deployment errors.

Does this Kubernetes YAML validation approach support Custom Resource Definitions?

Yes, Kubernetes YAML validation supports Custom Resource Definitions (CRDs) by automatically detecting them during the schema validation stage and looking up relevant documentation to ensure proper resource configuration.

How do I get suggested fixes for Kubernetes YAML errors?

To get suggested fixes for Kubernetes YAML errors, this Skill generates detailed validation reports that categorize issues by severity and provide actionable recommended corrections alongside fix complexity estimates.

Can I use kubectl cluster dry-runs to catch admission controller rejections?

Yes, you can use kubectl cluster dry-runs to catch admission controller rejections, as this Skill integrates dry-run validation to verify that your manifests will pass cluster-level checks before actual deployment.

Why does my Kubernetes deployment fail with schema validation errors?

Kubernetes deployment failures with schema validation errors occur when manifests violate Kubernetes API schemas, which this Skill prevents by running kubeconform checks and providing detailed reports with suggested fixes before deployment.