بنقرة واحدة
k8s-lint
Kubernetes YAML validation - Use kube-linter and kubeconform to check K8s config security and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Kubernetes YAML validation - Use kube-linter and kubeconform to check K8s config security and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
AI Agent code quality check - Use Ruff to check code standards for LangChain, AutoGen, and other AI Agent projects
Dockerfile best practices check - Use hadolint to validate Dockerfile security, performance, and compliance
Structure, validate, and locally manage evolution assets (Gene, Capsule, EvolutionEvent). Use when the user wants to record a solution, document a bug fix, create a Gene or Capsule, capture an evolution process, or compute an asset_id locally. No network connection required. Trigger keywords: Gene, Capsule, EvolutionEvent, evolution asset, asset_id, record solution, save fix, document repair.
Format JavaScript/TypeScript code with Prettier
Format Python code with Black
Check JavaScript/TypeScript code quality with ESLint
| name | k8s-lint |
| description | Kubernetes YAML validation - Use kube-linter and kubeconform to check K8s config security and best practices |
This skill uses kube-linter and kubeconform for dual validation of Kubernetes YAML configurations, ensuring:
| Tool | Purpose | Windows | Linux/Mac |
|---|---|---|---|
| kube-linter | Best practices check | scoop install kube-linter | brew install kube-linter |
| kubeconform | Schema validation | scoop install kubeconform | brew install kubeconform |
| kubectl | (Optional) Cluster validation | scoop install kubectl | brew install kubectl |
Check single file:
# Windows
.\.agents\skills\k8s-lint\scripts\lint.ps1 -File deployment.yaml
# Linux/Mac
./agent/skills/k8s-lint/scripts/lint.sh deployment.yaml
Check entire directory:
# Windows
.\.agents\skills\k8s-lint\scripts\lint.ps1 -Path .\k8s -Recursive
# Linux/Mac
./.agents/skills/k8s-lint/scripts/lint.sh -r k8s/
☸️ Kubernetes Lint - Checking config files...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 Schema Validation (kubeconform)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ deployment.yaml - valid
✅ service.yaml - valid
❌ ingress.yaml - invalid: Missing required field: spec.rules
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ Best Practices Check (kube-linter)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
deployment.yaml: (object: <no namespace>/nginx-deployment apps/v1, Kind=Deployment)
⚠️ no-read-only-root-fs: Container "nginx" does not have a read-only root file system
❌ cpu-requirements: Container "nginx" has no CPU limits
❌ memory-requirements: Container "nginx" has no memory limits
📊 Check Results:
❌ Errors: 3
⚠️ Warnings: 1
Create .kube-linter.yaml:
checks:
exclude:
- no-read-only-root-fs # Temporarily allow writable root filesystem
include:
- cpu-requirements
- memory-requirements
- privileged-containers
- run-as-non-root
customChecks: []