sota-api-design
State-of-the-art API design and audit guidance (2026) covering REST/HTTP, GraphQL, gRPC, WebSockets/SSE/realtime, webhooks,…
State-of-the-art Kubernetes platform security and operations (2026) for cloud-managed (EKS/GKE/AKS) and self-hosted clusters (kubeadm, k3s/k0s, Talos). Use when building, operating, hardening, or auditing the cluster PLATFORM layer: control plane and etcd, API server/kubelet,
Claude Code
$ npx -y skills add martinholovsky/SOTA-skills --skill sota-kubernetes --agent claude-code
Codex
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a codex -y
Cursor
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a cursor -y
Gemini CLI
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a gemini-cli -y
GitHub Copilot
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a github-copilot -y
OpenCode
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a opencode -y
Windsurf
$ npx skills add martinholovsky/SOTA-skills --skill sota-kubernetes -a windsurf -y
name: sota-kubernetes description: >- State-of-the-art Kubernetes platform security and operations (2026) for cloud-managed (EKS/GKE/AKS) and self-hosted clusters (kubeadm, k3s/k0s, Talos). Use when building, operating, hardening, or auditing the cluster PLATFORM layer: control plane and etcd, API server/kubelet, RBAC, admission control and policy-as-code, GitOps controllers, operators/CRDs/admission webhooks, Helm/Kustomize supply chain, multi-tenancy, cluster lifecycle/upgrades/CVE response, and audit logging. Trigger keywords: Kubernetes, k8s, cluster, control plane, etcd, kube-apiserver, kubelet, RBAC, ClusterRole, ServiceAccount, admission controller, Pod Security Admission, PSA, Kyverno, Gatekeeper, OPA, ValidatingAdmissionPolicy, Argo CD, Flux, GitOps, operator, CRD, admission webhook, Helm, Kustomize, multi-tenancy, vCluster, Talos, k3s, k0s, kubeadm, EKS, GKE, AKS, CIS benchmark, kube-bench, audit log, version skew. NOT pod-level securityContext/seccomp (sota-sandboxing) or NetworkPolicy/CNI depth (sota-network-security).
Engineer and audit the Kubernetes **platform** so that a compromised workload, a hostile chart, a leaked token, or a malicious controller cannot pivot to cluster-admin, read every Secret, or take the cluster down. This skill owns the layer above the pod: control plane and etcd, API server and kubelet hardening, RBAC and ServiceAccount identity, admission control and policy-as-code, GitOps controllers, operators/CRDs and admission webhooks, Helm/Kustomize at admission, multi-tenancy boundaries, cluster lifecycle, and K8s audit logging.
It does **not** re-teach pod isolation mechanics. Boundaries it defers:
Two modes. Pick one explicitly at the start of the task.
---
Use when provisioning a cluster, writing RBAC/policies/manifests, configuring a GitOps controller, or installing an operator/chart.
1. **Name the cluster topology first**: managed (EKS/GKE/AKS) vs self-hosted (kubeadm, k3s/k0s, Talos), single- vs multi-tenant, who the threat actors are (workload → control plane? tenant → tenant? compromised CI → cluster?). Read the matching rules. 2. **Least privilege by default**: no wildcard RBAC verbs/resources, `automountService AccountToken: false` unless the pod calls the API, scoped AppProjects, operators get the narrowest RBAC that works. Loosen only with a comment stating why. 3. **Encrypt etcd at rest with a KMS provider** ([`rules/01`](rules/01-control-plane-etcd.md)) — Secrets are base64, not encrypted, by default. This is the single most common "we thought we were covered" gap. 4. **Admission is fail-closed and ENFORCING, not auditing.** A policy left in `audit`/ `warn` forever is documentation, not a control ([`rules/03`](rules/03-admission-policy.md)). Ship the AUDIT→ENFORCE rollout plan with the policy. 5. **GitOps is the only write path to the cluster.** Humans propose via PR; the controller reconciles. Scope the controller's own privileges and AppProjects tightly ([`rules/04`](rules/04-gitops-controllers.md)). 6. **Plan the upgrade before you build**: version skew, EOL date, CVE-response runbook, tested etcd restore ([`rules/01`](rules/01-control-plane-etcd.md) §4, §7).
Deliverables: topology + threat statement, the concrete manifests/configs, the AUDIT→ENFORCE rollout, and the residual-risk/assumptions list (cloud-managed control plane internals you cannot see, org IAM, CNI behavior).
**Coverage:** every `rules/` file's Audit checklist applies in AUDIT mode. Mark one *not applicable* only with its reason in the report — never skip a file because the thing it checks for is absent, since that absence may be the finding.
Use when reviewing an existing cluster, its RBAC, policies, GitOps config, or operators.
Procedure: inventory the cluster surface (control plane flags or managed equivalent, RBAC graph, admission po
Make your AI coding assistant build and audit like your most senior engineer. Your assistant is brilliant — it just doesn't know your standards, and it forgets the ones it does know as the task grows long.
State-of-the-art API design and audit guidance (2026) covering REST/HTTP, GraphQL, gRPC, WebSockets/SSE/realtime, webhooks,…
State-of-the-art software and system architecture rules (2026) for both building and auditing. Use when designing, building,…
State-of-the-art rules for writing and auditing asynchronous and concurrent code across runtimes (Python asyncio, JS/Node, Go,…
State-of-the-art C and C++ engineering rules that Claude applies when writing or auditing C/C++. Covers modern idioms (RAII,…
State-of-the-art CLI and developer-tool UX guidance (2026) covering command and flag design, output and interaction…
State-of-the-art cloud infrastructure architecture (2026). Applies when designing, building, or auditing cloud environments on…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.