Agent skill
Kubernetes Platform
Platform engineering on Kubernetes is about making the "golden path" easy: secure-by-default workloads, consistent delivery via GitOps, and predictable operations (capacity, upgrades, incident respons
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/kubernetes-platform
SKILL.md
Kubernetes Platform
Skill Profile
(Select at least one profile to enable specific modules)
- DevOps
- Backend
- Frontend
- AI-RAG
- Security Critical
Overview
Platform engineering on Kubernetes is about making the "golden path" easy: secure-by-default workloads, consistent delivery via GitOps, and predictable operations (capacity, upgrades, incident response).
Why This Matters
- Reliability: self-healing + controlled rollouts reduce incidents
- Security: least privilege and isolation by default
- Developer velocity: standard templates + paved roads
- Cost control: right-sizing and autoscaling without surprises
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start
Assumptions
- Kubernetes cluster is already provisioned (EKS, GKE, AKS, or self-hosted)
- GitOps controller (Argo CD or Flux) is installed and configured
- Basic understanding of Kubernetes concepts (pods, services, deployments)
- Access to cloud provider resources (load balancers, block storage, IAM)
- Team has access to container registry for image storage
Compatibility
- Kubernetes: 1.24+ (Pod Security admission, stable APIs)
- Argo CD: 2.5+
- Flux: 2.0+
- Helm: 3.0+
- Prometheus: 2.40+
- Cloud Providers: AWS (EKS), GCP (GKE), Azure (AKS)
Test Scenario Matrix
| Scenario | Input | Expected Output | Verification |
|---|---|---|---|
| Deploy stateless app | Deployment manifest | Pods running, healthy | kubectl get pods |
| Scale deployment | HPA config | Autoscales on load | Load test + metrics |
| Network policy enforcement | NetworkPolicy | Traffic blocked/allowed | kubectl exec + curl |
| Secret injection | ExternalSecret | Secrets mounted | kubectl describe pod |
| GitOps sync | Git commit | Cluster reconciles | Argo CD UI |
| Pod disruption | Node drain | Pods reschedule | kubectl cordon + drain |
Technical Guardrails
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done
A Kubernetes platform change is complete when:
- All manifests are committed to Git with proper versioning
- GitOps reconciliation shows synced status
- All pods are running and healthy
- Health checks (readiness/liveness) are passing
- Metrics are being collected and visible in dashboards
- Logs are being aggregated with trace correlation
- Security policies are in compliance
- Resource utilization is within expected bounds
- SLOs are being met or error budget is healthy
- Runbooks are updated for operational procedures
Anti-patterns
- No requests/limits: unpredictable scheduling and noisy-neighbor incidents
- Hand-applied changes:
kubectl applydrift instead of GitOps reconciliation - Flat network: no NetworkPolicies; lateral movement is trivial
- Single replica: planned/unplanned disruption becomes downtime
- Running as root: wider blast radius on container compromise
- Unbounded egress: data exfiltration paths and surprise costs
- Missing probes: traffic hits pods before they're ready
- Treating cluster as product: no SLOs, no runbooks, no ownership
Reference Links
- Kubernetes Documentation
- Kubernetes Production Best Practices
- Kubernetes Patterns
- Argo CD Documentation
- Flux Documentation
- Kyverno Policies
- Prometheus Best Practices
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?