k8s-yaml-validator

Validate Kubernetes YAML manifests with linting, CRD detection, and schema verification.

7|3|Updated May 4, 2026
One-click install
npx skills add https://github.com/nopperabbo/codebuddy2api --skill k8s-yaml-validator-nopperabbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-yaml-validator
Source: https://github.com/nopperabbo/codebuddy2api/tree/main/opencode-config/skills/_archived/k8s-yaml-validator
Command: npx skills add https://github.com/nopperabbo/codebuddy2api --skill k8s-yaml-validator-nopperabbo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This skill provides a deterministic workflow to validate Kubernetes manifests, catching syntax errors, schema mismatches, and CRD references before applying changes to a cluster.

Core Features & Use Cases

  • Lint YAML: enforce syntax/style standards for Kubernetes manifests.
  • Schema validation: verify apiVersion, kind, required fields, and types against Kubernetes schemas.
  • CRD detection: identify Custom Resource Definitions and guide documentation lookup.
  • Multi-document handling: process files with multiple YAML documents safely.
  • Report-only guidance: deliver a comprehensive validation report without applying changes.

Quick Start

Run the validator against your YAML file to generate a comprehensive validation report.

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?

You validate Kubernetes YAML manifests by linting syntax, verifying schemas, and detecting CRDs to catch structural issues before deployment. The process enforces strict, version-aware checks using yamllint and kubeconform, returning a detailed report.

What is the best way to lint multi-document Kubernetes YAML files?

The best way to lint multi-document Kubernetes YAML files involves processing each document safely to enforce syntax and style standards. This validation handles multi-document files, checks apiVersion and kind against schemas, and identifies Custom Resource Definitions.

Does Kubernetes YAML validation work with Custom Resource Definitions?

Yes, Kubernetes YAML validation works with Custom Resource Definitions by detecting CRD resources and guiding documentation lookup. It verifies required fields and types against Kubernetes schemas while safely processing multi-document YAML files.

Can I perform a server-side dry-run during Kubernetes schema validation?

Yes, you can perform an optional server-side dry-run during Kubernetes schema validation to ensure manifests are checked against actual cluster state. This deterministic workflow preserves user files and returns a structured result without applying changes.

Why does my Kubernetes YAML schema validation fail on required fields?

Kubernetes YAML schema validation fails on required fields when manifests have mismatches in apiVersion, kind, or field types against Kubernetes schemas. The validation report identifies these specific structural issues and syntax errors before deployment.