K8s Manifest Generator skill for Claude

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards.

When Claude uses it

Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

K8s Manifest Generator SKILL.md

The full skill file from wshobson/agents (MIT).

Kubernetes Manifest Generator

Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.

Purpose

This skill provides comprehensive guidance for generating well-structured, secure, and production-ready Kubernetes manifests following cloud-native best practices and Kubernetes conventions.

When to Use This Skill

Use this skill when you need to:

  • Create new Kubernetes Deployment manifests
  • Define Service resources for network connectivity
  • Generate ConfigMap and Secret resources for configuration management
  • Create PersistentVolumeClaim manifests for stateful workloads
  • Follow Kubernetes best practices and naming conventions
  • Implement resource limits, health checks, and security contexts
  • Design manifests for multi-environment deployments

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices Summary

  1. Always set resource requests and limits - Prevents resource starvation
  2. Implement health checks - Ensures Kubernetes can manage your application
  3. Use specific image tags - Avoid unpredictable deployments
  4. Apply security contexts - Run as non-root, drop capabilities
  5. Use ConfigMaps and Secrets - Separate config from code
  6. Label everything - Enables filtering and organization
  7. Follow naming conventions - Use standard Kubernetes labels
  8. Validate before applying - Use dry-run and validation tools
  9. Version your manifests - Keep in Git with version control
  10. Document with annotations - Add context for other developers

Troubleshooting

Pods not starting:

  • Check image pull errors: kubectl describe pod <pod-name>
  • Verify resource availability: kubectl get nodes
  • Check events: kubectl get events --sort-by='.lastTimestamp'

Service not accessible:

  • Verify selector matches pod labels: kubectl get endpoints <service-name>
  • Check service type and port configuration
  • Test from within cluster: kubectl run debug --rm -it --image=busybox -- sh

ConfigMap/Secret not loading:

  • Verify names match in Deployment
  • Check namespace
  • Ensure resources exist: kubectl get configmap,secret

Next Steps

After creating manifests:

  1. Store in Git repository
  2. Set up CI/CD pipeline for deployment
  3. Consider using Helm or Kustomize for templating
  4. Implement GitOps with ArgoCD or Flux
  5. Add monitoring and observability

Related Skills

  • helm-chart-scaffolding - For templating and packaging
  • gitops-workflow - For automated deployments
  • k8s-security-policies - For advanced security configurations

How to install K8s Manifest Generator

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/kubernetes-operations/skills/k8s-manifest-generator#main ~/.claude/skills/k8s-manifest-generator

Codex

npx degit wshobson/agents/plugins/kubernetes-operations/skills/k8s-manifest-generator#main ~/.codex/skills/k8s-manifest-generator

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the K8s Manifest Generator skill do?

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

+How do I install K8s Manifest Generator in Claude Code?

Copy the skill folder into ~/.claude/skills/k8s-manifest-generator, for example with "npx degit wshobson/agents/plugins/kubernetes-operations/skills/k8s-manifest-generator#main ~/.claude/skills/k8s-manifest-generator". Claude Code loads it automatically and uses it when a task matches.

+Does K8s Manifest Generator work with ChatGPT or Codex?

Yes. K8s Manifest Generator uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/k8s-manifest-generator. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is K8s Manifest Generator free?

K8s Manifest Generator is published on GitHub by wshobson under the MIT license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. K8s Security Policies

    Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security.

    wshobson/agents★ 43k
  5. Linkerd Patterns

    Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments.

    wshobson/agents★ 43k
  6. Ml Pipeline Workflow

    Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment.

    wshobson/agents★ 43k
  7. Mtls Configuration

    Configure mutual TLS (mTLS) for zero-trust service-to-service communication.

    wshobson/agents★ 43k
  8. Multi Cloud Architecture

    Design multi-cloud architectures using a decision framework to select and integrate services across AWS, Azure, GCP, and OCI.

    wshobson/agents★ 43k
  9. Prometheus Configuration

    Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications.

    wshobson/agents★ 43k

See all devops & cloud skills →

More skills from wshobson

  1. Kpi Dashboard Design

    Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns.

    wshobson/agents★ 43k
  2. Langchain Architecture

    Design LLM applications using LangChain 1.x and LangGraph for agents, memory, and tool integration.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.