kubernetes-deployment
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Deploy services to a Kubernetes cluster for DevOps tasks. Use when manifests, Kustomize overlays, Helm charts, namespaces, rollout status, kubectl, or kubeconfig under project-root `.k8s/` are involved, while preventing kubeconfig tokens, client keys, Secret manifests, and cluster credentials from entering model context.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- Ghosteken/agent-harnesstheir own version, first seen Oct 1, 2026
- Nikoxkx/Agent-Skillstheir own version, first seen Jun 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Ghosteken/agent-harness★ 2same name
- gromov0737/skills★ 2same name
- Nikoxkx/Agent-Skills★ 1same name
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.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Resolve cluster, namespace, and kubeconfig by reference: Use explicit --kubeconfig <path> and --namespace <name> or an approved context …
- Distinctive: line 25
Validate before mutation: Run schema or server dry-run validation first:
- Distinctive: line 32
If diff output contains secret values, stop and rerun with safer tooling or ask the operator for a redacted plan.
- Very specific: line 35
Watch rollouts: Use kubectl rollout status deployment/<name> --timeout=<n>s, pod readiness, service endpoints, and application health …
- Very specific: line 46
Never read or print kubeconfig files, .k8s/*config*, .kube/config, service-account tokens, client key data, or Kubernetes Secret manifests.
- Very specific: line 47
Never run kubectl config view --raw or paste kubeconfig output into an artifact.
- Distinctive: line 48
Never deploy to production without explicit human approval, a dry-run/diff plan, and rollback notes.
- Distinctive: line 49
Never rely on implicit current context or namespace.
- Distinctive: line 50
Never put Secret values, tokens, cert data, or private registry credentials into deploy reports.
- Distinctive: line 51
Never mark deploy successful until rollout and application health checks pass.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Kubernetes Deployment
When to use
Use this skill when a DevOps task deploys or verifies services on a Kubernetes cluster. Project-root .k8s/ may contain manifests, overlays, or kubeconfig files. Kubeconfig and Secret material are operator-owned credentials: DevOps may reference them in kubectl or helm commands, but must not read, summarize, copy, or print their contents.
Inputs and outputs
- Inputs: task ID, target environment, cluster/context/namespace, approved kubeconfig path or context, manifest/Kustomize/Helm path, image tag, environment contract, rollout and rollback expectations.
- Outputs: dry-run/diff evidence, applied resource summary, rollout status, service endpoint/health evidence, rollback command, and
docs/deploy-reports/<task-id>.mdwith credential material redacted.
Procedure
- Resolve cluster, namespace, and kubeconfig by reference. Use explicit
--kubeconfig <path>and--namespace <name>or an approved context from the task. Do not rely on an implicit current context. Do not runkubectl config view, especially with--raw. - Separate manifests from secrets. It is safe to read ordinary Deployment, Service, Ingress, ConfigMap, HPA, and Kustomize/Helm metadata. Do not read kubeconfig files, Kubernetes Secret manifests, sealed-secret private keys, service-account tokens, or files whose path implies secret material.
Validate before mutation. Run schema or server dry-run validation first:
kubectl --kubeconfig .k8s/<config> --namespace <ns> apply --dry-run=server -f <manifest-or-overlay> kubectl --kubeconfig .k8s/<config> --namespace <ns> diff -f <manifest-or-overlay>If diff output contains secret values, stop and rerun with safer tooling or ask the operator for a redacted plan.
- Use explicit image and config inputs. Apply manifests or Helm values that reference immutable image tags/digests. Non-secret ConfigMaps may be reviewed. Secrets must come from the cluster's approved secret manager, ExternalSecret, sealed-secret public workflow, or operator-managed injection path.
- Deploy with bounded blast radius. Apply only the task-scoped namespace/resources. Avoid cluster-wide operations unless the task is explicitly a platform task with approval. Never run
kubectl deleteagainst broad selectors without a reviewed manifest list. - Watch rollouts. Use
kubectl rollout status deployment/<name> --timeout=<n>s, pod readiness, service endpoints, and application health checks. Capture only resource names, statuses, events, and sanitized logs. - Prepare rollback. Record
kubectl rollout undo, Helm rollback revision, or re-apply previous manifest/tag. For database migrations or irreversible changes, route back to SA/TL before production deployment. - Write the deploy report. Include cluster alias/context name, namespace, manifest path, image tag/digest, validation/diff result, rollout status, health evidence, and rollback command. Never include kubeconfig contents, tokens, cert data, or Secret values.
Helm and Kustomize
- For Helm, prefer
helm upgrade --install --atomic --timeout <n> --namespace <ns> --kubeconfig .k8s/<config> ...afterhelm templateorhelm diffwhere available. Do not print full values files if they contain secrets. - For Kustomize, prefer
kubectl apply -k <overlay>with explicit kubeconfig and namespace. Keep secret generators out of model-readable paths unless they generate from non-secret literals only.
Hard rules
- Never read or print kubeconfig files,
.k8s/*config*,.kube/config, service-account tokens, client key data, or Kubernetes Secret manifests. - Never run
kubectl config view --rawor paste kubeconfig output into an artifact. - Never deploy to production without explicit human approval, a dry-run/diff plan, and rollback notes.
- Never rely on implicit current context or namespace.
- Never put Secret values, tokens, cert data, or private registry credentials into deploy reports.
- Never mark deploy successful until rollout and application health checks pass.
References
../ssh-remote-operations/SKILL.md- remote cluster admin host access when kubectl runs through SSH.../../hooks/privacy-check.cjs- path-level guard for kubeconfig and secret material.../../agents/_templates/devops.md- DevOps role contract and deploy-report schema.
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
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.

