Skip to content
Back to skills

Write K8s Manifest

ASecurity

Writes Deployment, Service and config manifests for a service with probes, resource limits and a rollout that can be undone.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentskubernetessecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill write-k8s-manifest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write K8s Manifest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write K8s Manifest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-write-k8s-manifest/badge)](https://www.skillsdirectory.com/skills/workspace-templates-write-k8s-manifest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-k8s-manifest
description: Writes Deployment, Service and config manifests for a service with probes, resource limits and a rollout that can be undone.
argument-hint: "[service name, namespace]"
user-invocable: true
disable-model-invocation: true
---

Write Kubernetes manifests for: $ARGUMENTS (service name; infer it from the repository if empty).

1. Look for existing manifests, Helm charts or kustomize folders and match their layout, labels and naming. Read the app for its port, health route, config variables and startup time.
2. Create a Deployment with the image set to a specific tag (never latest), app.kubernetes.io labels, and a RollingUpdate strategy with maxUnavailable 0 and maxSurge 1.
3. Add readinessProbe, livenessProbe and a startupProbe if boot is slow. Point them at the health route, not at /.
4. Set resource requests and limits with a short note on how you chose the numbers. Add securityContext: runAsNonRoot, readOnlyRootFilesystem where the app allows it.
5. Add a Service, a ConfigMap for non-secret settings, and reference secrets by name only. Never write secret values.
6. Run `kubectl apply --dry-run=client -f <dir>` and, if a cluster is reachable, `--dry-run=server`.

Show the files and the dry-run result. Ask before writing them, and never run `kubectl apply` for real.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.