← ClaudeAtlas

depgen-k8slisted

Generate a Dockerfile and Kubernetes manifests for an application targeting a single environment. Supports Spring Boot (Java), Laravel (PHP), and Node.js application stacks. Auto-detects the stack from project files (pom.xml, composer.json, package.json), reads CLAUDE.md dependencies, SPECIFICATION.md tech stack, and the application's externalized environment variables. Generates a Dockerfile in the application root folder and Kubernetes manifest YAML files directly in `<app_folder>/k8s/` (no per-environment subfolders — the k8s/ folder is gitignored, each machine maintains its own copy). Standardized input: application name (mandatory), environment (optional). Use this skill whenever the user asks to create deployment artifacts, Dockerfiles, Kubernetes manifests, or containerize an application. Also trigger when the user says things like "deploy this app", "containerize this", "create a Dockerfile", "generate k8s manifests", or any request for deployment-related artifacts.
rashidee/co2-skills · ★ 3 · DevOps & Infrastructure · score 77
Install: claude install-skill rashidee/co2-skills
# Deployment Artifact Generator — Kubernetes This skill generates deployment artifacts for a custom application: 1. **Dockerfile** — A production-ready, multi-stage container build file placed in the application root folder. 2. **Kubernetes manifests** — Manifest files stored directly in the application's own `k8s/` folder for a **single target environment**. Since the `k8s/` folder is gitignored, each machine maintains its own independent copy of the manifests with environment-specific ConfigMap/Secret values (hostnames, credentials, resource limits). **Note:** Only custom applications (from `# Custom Applications` in CLAUDE.md) are processed. 3rd party supporting applications and external services are NOT containerized by this skill. ## Inputs ``` /depgen-k8s <application> [environment] ``` | Argument | Required | Example | Description | |----------|----------|---------|-------------| | `<application>` | Yes | `hub_middleware` | Application name — must be a custom application from CLAUDE.md | | `<environment>` | No | `home_server` | Target environment name — must match a Kubernetes environment in CLAUDE.md | If `<environment>` is omitted: - If CLAUDE.md defines exactly **one** Kubernetes environment → auto-select it. - If CLAUDE.md defines **multiple** Kubernetes environments → list them and ask the user to specify. The environment name is matched **case-insensitively** against the environment headings in CLAUDE.md, accepting snake_case, kebab-case, or t