agentleFS
fmindfmind/dot/skills/kubernetes/SKILL.md

kubernetes

Skill13 starsChanged 4 days agoMITView on GitHub

Operate Kubernetes with kubectl, Helm, kustomize, kubeconform, and stern.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gitops, datadog and 5 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.
  • 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 4 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

  • ihiteshguptaSkill

    terraform

    Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.

    Also in 5 projects that use this

  • ddehartSkill

    process

    Process work sessions into the claude-code-plugins knowledge graph — preserves the session transcript, writes or links its chronicle entry as the session's synthesis, turns the transcript into observations, updates the patterns and decisions they support, folds in named plugins and skills, and proposes promotions to the personal commons. Also resolves-and-preserves an on-demand Claude Code docs URL when one comes up. Use when the user says "process this session", "run /process", names a session transcript or UUID, names a chronicle entry whose session should be processed, asks what's in the processing queue, or points at a Claude Code release-notes / docs page to capture.

    Also in 3 projects that use this

  • wpankSkill

    caching

    Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use kubectl, helm, kustomize, kubeconform, and stern for Kubernetes cluster inspection, manifest authoring, Helm releases, and log …

    line 15
  2. Distinctive:

    Use a local cluster only when needed: read k3d before creating or deleting one.

    line 38
  3. Very specific:

    Keep Secret payloads out of logs: avoid running unbounded kubectl get secret -o yaml.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kubernetes Cluster and Workload Operations

Use kubectl, helm, kustomize, kubeconform, and stern for Kubernetes cluster inspection, manifest authoring, Helm releases, and log debugging. docker manages container runtimes and infra-as-code provisions managed cloud clusters.

The workstation installs none of these tools globally: declare the ones the project uses, including k3d for local clusters, in its mise.toml with mise use --pin <tool> per mise.

Confirm user authority for cluster mutations and spending, reusing existing authorization. Pin --context and --namespace (or Helm's --kube-context) after resolving the intended cluster.

Workflow

  1. Verify active context and namespace: inspect the current cluster context before running any command; never assume terminal defaults point to dev.

    kubectl config get-contexts
    kubectl --context <context> cluster-info
  2. Lint and validate manifests: validate schemas against the target cluster's version (kubeconform defaults to master schemas) and scan for misconfigurations with trivy and the project's trivy.yaml before applying manifests.

    kubeconform -strict -summary -kubernetes-version <cluster-version> <file-or-directory>
    trivy --config trivy.yaml config <file-or-directory>
    kustomize build <kustomization-dir> | kubeconform -strict -summary -kubernetes-version <cluster-version> -
  3. Use a local cluster only when needed: read k3d before creating or deleting one; manifest checks often answer the question without it.
  4. Deploy declaratively: apply configurations using Helm or Kustomize; preview changes before mutating cluster state.

    helm upgrade --install <release-name> <chart-path> --kube-context <context> --namespace <namespace> --dry-run=server --hide-secret
    kubectl --context <context> --namespace <namespace> diff -k <kustomization-dir>

    A diff exit status of 1 means differences; higher values are errors. Review the preview, then apply within the authorized scope; with Helm 4 add --rollback-on-failure --timeout <duration>, which replaces the deprecated --atomic (as --force-replace replaces --force). kubectl diff masks Secret data unless --show-secrets is passed, but ConfigMaps and rendered chart values are not masked; exclude sensitive values from captured output.

  5. Inspect workloads and bounded logs: narrow to the relevant workload and time window. Use finite log reads for agents; reserve streaming stern for an explicitly interactive investigation. The line limit applies per pod/container, so keep the pod query narrow.

    stern <pod-query> --context <context> -n <namespace> --since 15m --tail 50 --no-follow
    kubectl --context <context> get pods,events -n <namespace>

Gotchas

  • Pin the context explicitly: omitted context flags use mutable kubeconfig defaults. Pass the selected context on each call; change the persistent current context only when that change is requested.
  • Keep Secret payloads out of logs: avoid running unbounded kubectl get secret -o yaml; inspect metadata and key names (kubectl describe secret <name> shows sizes, not values) without printing raw base64 payloads to terminal logs.

Task guides

<!-- guides:start -->
  • k3d: Create, budget, and tear down disposable local k3d clusters for runtime tests.
<!-- guides:end -->

Documentation

Download now (ZIP)

Does it work?

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

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.