kubernetes-skill
Prevent Kubernetes hallucinations by diagnosing and fixing failure modes: insecure workload defaults, resource starvation, network exposure, privilege sprawl, fragile rollouts, and API drift. Use when generating, reviewing, refactoring, or migrating manifests, Helm charts, Kustomize overlays, cluster policies, and platform-specific Kubernetes work for EKS, GKE, AKS, OpenShift, GitOps controllers, or observability stacks.
含まれるファイル(75)
- SKILL.md4.6 KB
- .claude-plugin/marketplace.json423 B
- .github/CODEOWNERS16 B
- .github/dependabot.yml118 B
- .github/FUNDING.yml23 B
- .github/PULL_REQUEST_TEMPLATE.md921 B
- .github/workflows/deploy-docs.yml931 B
- .github/workflows/stale.yml1.2 KB
- .github/workflows/validate.yml4.4 KB
- .gitignore28 B
- assets/logo.png1.7 MB
- CHANGELOG.md622 B
- CODE_OF_CONDUCT.md943 B
- CONTRIBUTING.md1.9 KB
- docs/.gitignore21 B
- docs/advanced/token-efficiency.md3.5 KB
- docs/architecture/multi-tenancy.md6.3 KB
- docs/architecture/storage-and-state.md6.0 KB
- docs/architecture/workload-patterns.md5.8 KB
- docs/book.json371 B
- docs/community/changelog.md1.3 KB
- docs/community/contributing.md2.2 KB
- docs/core-concepts/failure-modes.md7.9 KB
- docs/core-concepts/philosophy.md5.6 KB
- docs/core-concepts/workflow.md7.8 KB
- docs/examples/bad-patterns.md3.3 KB
- docs/examples/do-dont-checklist.md2.1 KB
- docs/examples/good-patterns.md3.3 KB
- docs/failure-modes/api-drift.md6.1 KB
- docs/failure-modes/fragile-rollouts.md6.7 KB
- docs/failure-modes/insecure-workload-defaults.md6.4 KB
- docs/failure-modes/network-exposure.md6.2 KB
- docs/failure-modes/privilege-sprawl.md6.3 KB
- docs/failure-modes/resource-starvation.md6.7 KB
- docs/getting-started/installation.md3.7 KB
- docs/getting-started/quick-start.md3.2 KB
- docs/guides/helm-patterns.md4.5 KB
- docs/guides/kustomize-patterns.md4.2 KB
- docs/guides/observability.md4.0 KB
- docs/guides/security-hardening.md4.5 KB
- docs/guides/validation-and-policy.md3.4 KB
- docs/integrations/mcp-integration.md3.2 KB
- docs/package-lock.json101.1 KB
- docs/package.json250 B
- docs/README.md1.4 KB
- docs/SUMMARY.md1.5 KB
- LICENSE1.1 KB
- PHILOSOPHY.md10.9 KB
- README.md22.2 KB
- references/api-drift.md11.2 KB
- references/conditional/aks-patterns.md3.8 KB
- references/conditional/eks-patterns.md4.2 KB
- references/conditional/gitops-controllers.md4.0 KB
- references/conditional/gke-patterns.md3.9 KB
- references/conditional/observability-stacks.md4.6 KB
- references/conditional/openshift-patterns.md3.5 KB
- references/daemonset-operator-patterns.md7.0 KB
- references/deployment-patterns.md6.1 KB
- references/do-dont-patterns.md4.4 KB
- references/examples-bad.md8.1 KB
- references/examples-good.md11.1 KB
- references/fragile-rollouts.md12.0 KB
- references/helm-patterns.md5.9 KB
- references/insecure-workload-defaults.md9.2 KB
- references/job-patterns.md5.5 KB
- references/kustomize-patterns.md5.4 KB
- references/multi-tenancy.md9.8 KB
- references/network-exposure.md14.4 KB
- references/observability.md9.4 KB
- references/privilege-sprawl.md9.9 KB
- references/resource-starvation.md12.1 KB
- references/security-hardening.md7.5 KB
- references/stateful-patterns.md6.2 KB
- references/storage-and-state.md10.8 KB
- references/validation-and-policy.md7.4 KB
SKILL.md(原文)
インストールする前に、エージェントに与えられる指示の中身を確認できます。
KubeShark: Failure-Mode Workflow for Kubernetes
Run this workflow top to bottom.
1) Capture execution context
Record before writing manifests:
- cluster version (e.g. 1.30, 1.31) and distribution (EKS, GKE, AKS, k3s, vanilla)
- target namespace and environment criticality (dev/staging/prod)
- workload type (Deployment, StatefulSet, Job, CronJob, DaemonSet)
- deployment method (raw YAML, Helm, Kustomize, operator-managed)
- policy enforcement (Pod Security Admission level, Kyverno, OPA/Gatekeeper)
- cloud provider and CNI (affects networking, storage classes, load balancers)
- platform controllers/add-ons (GitOps, observability, ingress, service mesh, autoscaling)
If unknown, state assumptions explicitly.
2) Diagnose likely failure mode(s)
Select one or more based on user intent and risk:
- insecure workload defaults: missing security contexts, PSS violations, host access
- resource starvation: missing requests/limits, no PDB, scheduling chaos
- network exposure: flat networking, missing policies, wrong Service types, DNS issues
- privilege sprawl: overly permissive RBAC, leaked secrets, excess ServiceAccount rights
- fragile rollouts: misconfigured probes, mutable tags, unsafe update strategies
- API drift: wrong apiVersion, deprecated APIs, schema violations, tool-specific errors
3) Load only the relevant reference file(s)
Primary failure-mode references:
references/insecure-workload-defaults.mdreferences/resource-starvation.mdreferences/network-exposure.mdreferences/privilege-sprawl.mdreferences/fragile-rollouts.mdreferences/api-drift.md
Supplemental references (only when needed):
references/deployment-patterns.mdreferences/stateful-patterns.mdreferences/job-patterns.mdreferences/daemonset-operator-patterns.mdreferences/security-hardening.mdreferences/observability.mdreferences/multi-tenancy.mdreferences/storage-and-state.mdreferences/helm-patterns.mdreferences/kustomize-patterns.mdreferences/validation-and-policy.mdreferences/examples-good.mdreferences/examples-bad.mdreferences/do-dont-patterns.md
Conditional Reference Retrieval (CRR) references (load only when the signal is detected):
references/conditional/eks-patterns.mdfor EKS, AWS, IRSA, EKS Pod Identity, AWS Load Balancer Controller, EBS/EFS CSI, Karpenterreferences/conditional/gke-patterns.mdfor GKE, Autopilot, Workload Identity Federation for GKE, Dataplane V2, GCE Ingress, Config Syncreferences/conditional/aks-patterns.mdfor AKS, Microsoft Entra Workload ID, Azure CNI, AGIC, Azure Disk/File/Blob CSIreferences/conditional/openshift-patterns.mdfor OpenShift, OKD, ROSA, ARO, Routes, SCCs, OLM,ocreferences/conditional/gitops-controllers.mdfor Argo CD, ApplicationSet, Flux, GitOps reconciliation, sync wavesreferences/conditional/observability-stacks.mdfor Prometheus Operator, ServiceMonitor, PodMonitor, OpenTelemetry, Loki, Grafana
Do not load multiple CRR files unless the task spans multiple detected platforms/tools.
4) Propose fix path with explicit risk controls
For each fix, include:
- why this addresses the failure mode
- what could still go wrong at deploy time or runtime
- guardrails (validation commands, policy checks, rollback path)
5) Generate implementation artifacts
When applicable, output:
- Kubernetes manifests (YAML with security contexts, resource limits, labels)
- Helm values/templates or Kustomize overlays
- NetworkPolicies, RBAC resources, PodDisruptionBudgets
- Policy rules (Kyverno/OPA) and admission controls
6) Validate before finalize
Always provide validation steps tailored to deployment method and risk tier:
kubectl apply --dry-run=serverorkubectl diffkubeconformfor schema validation against target cluster version- cross-resource consistency check (label/selector/port alignment)
- policy scan (PSS profile check, Kyverno/OPA audit) Never recommend direct production apply without reviewed diff and approval.
7) Output contract
Return:
- assumptions and cluster version floor
- selected failure mode(s)
- chosen remediation and tradeoffs
- validation/test plan
- rollback/recovery notes (rollout undo, revision history, data safety)
レビュー
まだレビューはありません。使ってみた感想をお寄せください。