k8s-yaml-generator

Generate and validate Kubernetes YAML resources with CRD documentation lookup.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill streamlines the creation and validation of Kubernetes YAML manifests, ensuring compliance and reducing manual errors in your deployments.

Core Features & Use Cases

  • YAML Generation: Create production-ready YAML for any Kubernetes resource, including complex Custom Resource Definitions (CRDs).
  • CRD Documentation Lookup: Automatically fetches documentation for CRDs using Context7 MCP or web search for accurate field generation.
  • Validation: Integrates with k8s-yaml-validator to ensure syntax, API compliance, and best practices.
  • Use Case: Generate a Kubernetes Deployment and Service YAML for a new microservice, ensuring all fields are correctly configured and validated before applying to your cluster.

Quick Start

Use the k8s-yaml-generator skill to create a Kubernetes Deployment for an application named 'my-app' with 3 replicas.

Frequently Asked Questions about k8s-yaml-generator

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

FAQPage Schema
How do I generate Kubernetes YAML for a Deployment and Service?

To generate Kubernetes YAML, you define your resource specifications like application name and replica count. This skill creates production-ready Deployment and Service manifests, ensuring all fields are correctly configured for your microservice.

Can I automatically fetch documentation for Custom Resource Definitions?

Yes, you can fetch Custom Resource Definitions documentation automatically. The skill leverages Context7 MCP or web search to look up CRD schemas, ensuring accurate field generation for your custom Kubernetes resources.

How do I validate Kubernetes YAML syntax and API compliance?

You validate Kubernetes YAML by integrating with the k8s-yaml-validator. This checks your manifests for syntax errors, API version compliance, and best practices, ensuring your configurations are production-ready before applying them.

What is the best way to create production-ready Kubernetes ConfigMaps?

The best way to create ConfigMaps is by specifying your configuration data. This skill generates standard Kubernetes ConfigMaps and validates them to ensure compliance and reduce manual errors in your deployments.

Does Kubernetes YAML generation work for complex Custom Resource Definitions?

Yes, Kubernetes YAML generation works for complex Custom Resource Definitions. The skill fetches the required CRD documentation using Context7 MCP to accurately generate and validate the custom fields required by your specific resources.