âïž
Kubernetes
Kubernetes manifest validation and best practices
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-kubernetesOverview
Kubernetes manifest validation and best practices for cloud-native deployments.
Features
- Validates Kubernetes manifests using kubeconform
- Provides skills for working with Kubernetes resources
- Ensures manifest quality and security best practices
Requirements
Install kubeconform for manifest validation:
# macOS
brew install kubeconform
# Linux
wget https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz
tar xf kubeconform-linux-amd64.tar.gz
sudo mv kubeconform /usr/local/bin/
Skills Included
- kubernetes-manifests: Working with Kubernetes manifest files
- kubernetes-resources: Understanding Kubernetes resources (Pods, Deployments, Services, etc.)
- kubernetes-security: Security best practices for Kubernetes
Hook Behavior
Validates YAML manifests in directories containing .yaml or .yml files using kubeconform.
Skills
ð
kubernetes-manifests
Use when writing and deploying Kubernetes manifests for container orchestration.
ð
kubernetes-resources
Use when managing Kubernetes resources including deployments, services, configmaps, and secrets.
ð
kubernetes-security
Use when implementing Kubernetes security best practices including RBAC, pod security policies, and network policies.
Hooks
ðª
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yaml,*.yml -- sh -c 'if command -v kubeconform >/dev/null 2>&1; then kubeconform -summary *.yaml *.yml 2>/dev/null || true; fi'ðª
SubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yaml,*.yml -- sh -c 'if command -v kubeconform >/dev/null 2>&1; then kubeconform -summary *.yaml *.yml 2>/dev/null || true; fi'