agentleFS
DongDuong2001DongDuong2001/pudo-code-system/skills/devops/kubernetes/SKILL.md

kubernetes

Skill5 starsChanged 5 months agoMITView on GitHub

Expected Output: - Helm chart structure: Chart.yaml, values.yaml, values.production.yaml, templates/deployment.yaml, templates/service.yaml, templates/hpa.yaml,

Files
SKILL.md

Kubernetes Skill

Skill, Kubernetes, Orchestration, Helm, Cloud Native

Context

Use this skill when writing, reviewing, or debugging Kubernetes manifests and Helm charts. This covers Deployment, Service, Ingress, ConfigMap, and Secret resources; RBAC configuration; resource requests and limits; liveness/readiness/startup probes; Horizontal Pod Autoscaler (HPA); and Helm chart structure. The AI will act as a Kubernetes specialist who understands the operational implications of every manifest field.

Variables

  • {{application_name}}: Name of the application/service being deployed (e.g., payments-api, frontend).
  • {{workload_type}}: Type of workload (e.g., Deployment, StatefulSet, DaemonSet, CronJob).
  • {{resource_requirements}}: Expected traffic and resource profile (e.g., low traffic — 100m CPU / 128Mi memory, high traffic — autoscaling 3-20 replicas).
  • {{cluster_context}}: Cluster details (e.g., AWS EKS 1.30, GKE Autopilot, on-prem kubeadm, k3s).
  • {{packaging}}: How to deliver the manifests (e.g., raw YAML, Kustomize overlay, Helm chart).

Prompt

Adopt the persona of a Senior Kubernetes / Cloud Native Engineer. I need to deploy the following workload:

Application: {{application_name}}
Workload Type: {{workload_type}}
Resource Requirements: {{resource_requirements}}
Cluster: {{cluster_context}}
Packaging: {{packaging}}

Design the Kubernetes configuration adhering to these standards:

1. **Workload Manifest:** Write the `{{workload_type}}` manifest with a `spec.template` that includes all required fields. Set `spec.revisionHistoryLimit: 3`. Use `RollingUpdate` strategy with appropriate `maxSurge` and `maxUnavailable` values explained.
2. **Resource Management:** Always set both `requests` and `limits` for `cpu` and `memory`. Explain the difference between requests (scheduling) and limits (throttling/OOM). Set the `requests`/`limits` ratio appropriately based on the workload type (bursty vs. steady).
3. **Probes:** Configure `livenessProbe`, `readinessProbe`, and `startupProbe` with appropriate `initialDelaySeconds`, `periodSeconds`, and `failureThreshold` values. Explain why a missing `startupProbe` can cause liveness probe loops during slow startup.
4. **Security Context:** Set `securityContext` at both Pod and container level: `runAsNonRoot: true`, `runAsUser: 1000`, `readOnlyRootFilesystem: true`, `allowPrivilegeEscalation: false`, `capabilities: drop: [ALL]`.
5. **RBAC:** Create a dedicated `ServiceAccount` for the application. Define `Role` and `RoleBinding` with only the permissions the application needs. Never use the `default` ServiceAccount.
6. **Configuration & Secrets:** Use `ConfigMap` for non-sensitive configuration. Use `Secret` for sensitive data, and recommend an External Secrets Operator integration for production. Never use `env` with a hardcoded secret value.
7. **Autoscaling:** If high traffic, provide an `HorizontalPodAutoscaler` targeting CPU and/or custom metrics. Explain `minReplicas` and `maxReplicas` choices.
8. **Helm (if applicable):** Structure the chart with `values.yaml` containing all tunables. Use `_helpers.tpl` for label and name templates. Provide a `values.production.yaml` overlay.

Provide all YAML manifests or Helm chart files with inline comments explaining every non-obvious decision.

Example Usage

Input:

Adopt the persona of a Senior Kubernetes / Cloud Native Engineer. I need to deploy the following workload:

Application: payments-api
Workload Type: Deployment
Resource Requirements: Medium traffic — starts slow (30s JVM warmup), steady-state at ~200m CPU / 256Mi, needs to scale from 2 to 10 replicas under load
Cluster: AWS EKS 1.30
Packaging: Helm chart

Design the Kubernetes configuration adhering to these standards:
[...rest of prompt...]

Expected Output:

  • Helm chart structure: Chart.yaml, values.yaml, values.production.yaml, templates/deployment.yaml, templates/service.yaml, templates/hpa.yaml, templates/serviceaccount.yaml, templates/rbac.yaml
  • startupProbe with failureThreshold: 30 and periodSeconds: 5 to handle 30s JVM startup
  • readinessProbe on /health/ready to gate traffic until warm
  • resources: requests: {cpu: 200m, memory: 256Mi}, limits: {cpu: 500m, memory: 512Mi}
  • HPA scaling on CPU 70% utilization, min 2 / max 10 replicas
  • securityContext with readOnlyRootFilesystem: true and a writable emptyDir volume for /tmp
  • ServiceAccount with automountServiceAccountToken: false since the app doesn't need K8s API access

Download now (ZIP)

  • Other versions30 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 30

    1. notque/claude-code-toolkit★ 444same name
    2. notque/vexjoy-agent★ 444same name
    3. Mindrally/skills★ 275same name
    4. OpenHands/extensions★ 167same name
    5. magnus919/agent-skills★ 162same name
    6. nitinjain999/platform-skills★ 71same name
    7. nimadorostkar/Claude-Skills-collection★ 33same name
    8. mjunaidca/mjs-agent-skills★ 27same name
    9. kcns008/cluster-agent-swarm-skills★ 25same name
    10. last9/mithai★ 20same name

    20 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use documentation-site, gitops and 8 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • fmindSkill

      documentation-site

      Build Zensical docs sites: navigation, API docs, Pages, MkDocs/Hugo migration.

      Also in 3 projects that use this

    • kcns008Skill

      gitops

      GitOps Agent (Flow) — manages ArgoCD applications, Helm charts, Kustomize overlays, deployment strategies (canary, blue-green, rolling), multi-cluster GitOps, and drift detection for Kubernetes and OpenShift clusters.

      Also in 3 projects that use this

    • cashew-labsSkill

      cli-development

      Design and implement command-line interfaces with subcommand-scoped help, actionable success output, and debuggable failure output. Use when creating or modifying CLI commands, argument parsing, help and usage text, exit codes, or command UX for humans and agents.

      Also in 4 projects that use this

    • Consortium-teamSkill

      process

      Use when the user has external inputs to analyze — transcripts, documents, notes, or pasted text. Extracts structured information (requirements, constraints, decisions, questions) and updates companion context files.

      Also in 3 projects that use this

    • SentrySkill

      datadog

      Query live Datadog telemetry (logs, metrics, traces, spans, monitors, incidents, dashboards, services, hosts) through Datadog's Pup CLI. Use when users ask to investigate production behavior in Datadog, including searching logs, checking monitor status, inspecting traces or spans, looking up incidents, finding services, or correlating metrics. Do not use it for Sentry issues, repository/source-code work, or ticketing.

      Also in 3 projects that use this

    • third-order-labsSkill

      project-scaffolding

      Templates, directory conventions, and document structure for long-form fiction projects. Contains the full template library — documents are created as the project needs them, not all at once.

      Also in 3 projects that use this

  • In this repository38 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.