k8s-gen

Verified·Scanned 2/18/2026

This skill converts docker-compose files or plain descriptions into Kubernetes manifests using an OpenAI model. It requires OPENAI_API_KEY and calls openai.chat.completions.create, which sends the provided input to the OpenAI service.

from clawhub.ai·ve75e286·37.6 KB·0 installs
Scanned from 1.0.1 at e75e286 · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/k8s-gen

ai-k8s

Got a docker-compose file and need to move to Kubernetes? Don't spend hours translating YAML by hand. Just feed it in and get proper K8s manifests back.

Install

npm install -g ai-k8s

Usage

# From a docker-compose file
npx ai-k8s docker-compose.yml --namespace production

# From a description
npx ai-k8s "3 replicas of a node app with redis and postgres"

# Save output
npx ai-k8s docker-compose.yml -o k8s-manifests.yml

Setup

export OPENAI_API_KEY=your-key-here

Options

  • -n, --namespace <ns> - Target namespace (defaults to "default")
  • -o, --output <file> - Write to a file

License

MIT