Sponsor Suno AI Music arrow_forward
Slash Command

K8s Manifest Generate

Generate production-ready Kubernetes manifests

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026

What K8s Manifest Generate is

K8s Manifest Generate is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

K8s Manifest Generate gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install K8s Manifest Generate

Claude Code

  1. Download k8s-manifest-generate.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/packages/devops-automation-pack/plugins/04-kubernetes/commands/k8s-manifest-generate.md, shared under the repository's MIT license. Read the full file on GitHub.

Generates complete, production-ready Kubernetes manifests with best practices (health checks, resource limits, security contexts, auto-scaling).

When to Use This

  • Deploying application to Kubernetes
  • Need complete manifest set (Deployment, Service, Ingress, etc.)
  • Want production-ready configuration
  • Need auto-scaling setup
  • Using Helm (use /k8s-helm-chart instead)
  • Simple one-off task (use kubectl run)

How It Works

You are a Kubernetes expert. When user runs /k8s-manifest-generate or /km:

  1. Detect application type:
  • Stateless (web app, API) → Deployment
  • Stateful (database, queue) → StatefulSet
  • Batch processing → Job or CronJob
  • Node-level agent → DaemonSet
  1. Ask key questions:
  • Container image and tag?
  • Port(s) exposed?
  • Resource requirements (CPU, memory)?
  • Need persistent storage?
  • External access required (Ingress)?
  • Auto-scaling needed?
  • Environment variables?
  1. Generate manifest set:
  • Namespace (isolation)
  • ConfigMap (configuration)
  • Secret (credentials template)
  • Deployment/StatefulSet (workload)
  • Service (networking)
  • Ingress (external access, if needed)
  • HPA (auto-scaling, if needed)
  • PVC (storage, if needed)
  1. Apply best practices:
  • Resource requests and limits
  • Liveness and readiness probes
  • Non-root security context
  • Rolling update strategy
  • Pod disruption budget (if >1 replica)
  • Labels for organization
  1. Provide deployment guide:
  • kubectl apply commands
  • Verification steps
  • Troubleshooting tips

Output Format

---
# All manifests in single file
# Can be applied with: kubectl apply -f manifests.yaml
## Deployment Instructions

### 1. Update secrets:
[List of secrets to update]

### 2. Apply manifests:

kubectl apply -f manifests.yaml


### 3. Verify:

kubectl get pods -n


## Expected Results

- Pods: Running
- Service: ClusterIP assigned
- Ingress: Address assigned (if applicable)

Examples

Example 1: Node.js Web App

User: /km

Questions:

  • App type? → Stateless web app
  • Image? → myregistry/webapp:1.0.0
  • Port? → 3000
  • Resources? → 250m CPU, 512Mi memory
  • Storage? → No
  • External access? → Yes (Ingress)
  • Auto-scale? → Yes (2-10 replicas)

Output:

---
# webapp-manifests.yaml
# Production-ready Kubernetes manifests for Node.js web app

apiVersion: v1
kind: Namespace
metadata:
  name: webapp

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: webapp-config
  namespace: webapp
data:
  NODE_ENV: "production"
  LOG_LEVEL: "info"
…

Example 2: PostgreSQL StatefulSet

User: /km

Questions:

  • App type? → Stateful database
  • Image? → postgres:15-alpine
  • Port? → 5432
  • Resources? → 500m CPU, 2Gi memory
  • Storage? → Yes, 10Gi
  • External access? → No (internal only)
  • Auto-scale? → No (databases don't auto-scale)

Output:

---
# postgres-manifests.yaml
# Production-ready PostgreSQL StatefulSet

apiVersion: v1
kind: Namespace
metadata:
  name: database

---
apiVersion: v1
kind: Secret
metadata:
  name: postgres-secrets
  namespace: database
type: Opaque
stringData:
  # UPDATE THESE VALUES!
…

Example 3: Batch CronJob

User: /km

Questions:

  • App type? → Scheduled batch job
  • Image? → myregistry/data-sync:1.0.0
  • Schedule? → Every day at 2 AM
  • Resources? → 1 CPU, 2Gi memory
  • Completion? → Run to completion, keep last 3 successful

Output:

---
# data-sync-cronjob.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: batch-jobs

---
apiVersion: v1
kind: Secret
metadata:
  name: sync-secrets
  namespace: batch-jobs
type: Opaque
stringData:
  # UPDATE THESE VALUES!
  S3_ACCESS_KEY: "your-access-key"
  S3_SECRET_KEY: "your-secret-key"
…

Pro Tips

Always set resource limits (prevents cluster instability) Use readiness probes (prevents routing to unhealthy pods) Non-root user is critical for security StatefulSets for databases, Deployments for apps Use namespaces to isolate applications

Troubleshooting

Issue: Pod stuck in Pending → Check resources: kubectl describe pod -n → Verify node capacity sufficient for requests

Issue: Pod CrashLoopBackOff → Check logs: kubectl logs -n --previous → Verify health check endpoints exist

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is K8s Manifest Generate?

K8s Manifest Generate is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Generate production-ready Kubernetes manifests

How do I install K8s Manifest Generate in Claude Code?

Download k8s-manifest-generate.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use K8s Manifest Generate in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is K8s Manifest Generate safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.