k8s-manifest-generator — скилл для Claude Code: что делает
Скилл помогает создавать Kubernetes-манифесты для приложений и инфраструктуры. Пригодится, когда нужны Deployment, Service, ConfigMap, Secret или PersistentVolumeClaim.
/plugin marketplace add wshobson/agents
/plugin install kubernetes-operations@claude-code-workflowsЧто делает k8s-manifest-generator
k8s-manifest-generator пошагово помогает создавать YAML-манифесты Kubernetes для Deployment, Service, ConfigMap, Secret и PersistentVolumeClaim. Он подсказывает, как задать requests и limits, health checks, конкретные теги образов, security context и стандартные labels.
Скилл также охватывает конфигурацию для разных окружений и проверку манифестов перед применением через dry-run и инструменты валидации. Для диагностики он предлагает команды kubectl describe pod , kubectl get nodes и kubectl get events --sort-by='.lastTimestamp'.
Ставьте его, если вы регулярно пишете Kubernetes YAML и хотите держать рядом практики безопасности и проверки. Для Helm или Kustomize понадобится отдельный шаблонный слой.
Какие задачи решает
- создать Deployment для приложения
- описать Service и сетевые порты
- вынести настройки в ConfigMap и Secret
- подготовить PersistentVolumeClaim для stateful workload
- проверить причины запуска Pod или недоступности Service
Примеры запросов агенту
- Создай Kubernetes Deployment и Service для приложения из `app.yaml`, добавь requests, limits и health checks.
- Подготовь ConfigMap и Secret для этого Deployment, проверь имена и namespace.
- Разбери, почему Pod не запускается, используя `kubectl describe pod ` и события кластера.
Как установить k8s-manifest-generator
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install kubernetes-operations@claude-code-workflowsКоманда ставит плагин kubernetes-operations целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill k8s-manifest-generator -a claude-code3Вручную: положить файлы
~/.claude/skills/k8s-manifest-generator/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/k8s-manifest-generator/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill k8s-manifest-generator -a codex2Вручную: положить файлы
.agents/skills/k8s-manifest-generator/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill k8s-manifest-generator -a cursor2Вручную: положить файлы
.cursor/skills/k8s-manifest-generator/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents k8s-manifest-generator2Вручную: положить файлы
.github/skills/k8s-manifest-generator/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/kubernetes-operations/skills/k8s-manifest-generatorВручную: положить файлы
.devin/skills/k8s-manifest-generator/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора213
Весь набор →Похожие
Вопросы о k8s-manifest-generator
Как установить k8s-manifest-generator в Claude Code?
Выполните npx skills add wshobson/agents --skill k8s-manifest-generator -a claude-code. Файл скилла появится по пути ~/.claude/skills/k8s-manifest-generator/SKILL.md.
Что делает k8s-manifest-generator?
Он помогает создавать Kubernetes-манифесты для Deployment, Service, ConfigMap, Secret и PersistentVolumeClaim. В подсказках учитываются ресурсы, health checks, labels и security contexts.
Какие проблемы Kubernetes можно разбирать с этим скиллом?
Скилл подсказывает, как проверить ошибки запуска Pod, доступность Service и загрузку ConfigMap или Secret. Для диагностики используются команды kubectl.
Исходный текст
SKILL.md · MIT
--- name: k8s-manifest-generator description: Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations. --- # Kubernetes Manifest Generator Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims. ## Purpose This skill provides comprehensive guidance for generating well-structured, secure, and production-ready Kubernetes manifests following cloud-native best practices and Kubernetes conventions. ## When to Use This Skill Use this skill when you need to: - Create new Kubernetes Deployment manifests - Define Service resources for network connectivity - Generate ConfigMap and Secret resources for configuration management - Create PersistentVolumeClaim manifests for stateful workloads - Follow Kubernetes best practices and naming conventions - Implement resource limits, health checks, and security contexts - Design manifests for multi-environment deployments ## Detailed patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices Summary 1. **Always set resource requests and limits** - Prevents resource starvation 2. **Implement health checks** - Ensures Kubernetes can manage your application 3. **Use specific image tags** - Avoid unpredictable deployments 4. **Apply security contexts** - Run as non-root, drop capabilities 5. **Use ConfigMaps and Secrets** - Separate config from code 6. **Label everything** - Enables filtering and organization 7. **Follow naming conventions** - Use standard Kubernetes labels 8. **Validate before applying** - Use dry-run and validation tools 9. **Version your manifests** - Keep in Git with version control 10. **Document with annotations** - Add context for other developers ## Troubleshooting **Pods not starting:** - Check image pull errors: `kubectl describe pod <pod-name>` - Verify resource availability: `kubectl get nodes` - Check events: `kubectl get events --sort-by='.lastTimestamp'` **Service not accessible:** - Verify selector matches pod labels: `kubectl get endpoints <service-name>` - Check service type and port configuration - Test from within cluster: `kubectl run debug --rm -it --image=busybox -- sh` **ConfigMap/Secret not loading:** - Verify names match in Deployment - Check namespace - Ensure resources exist: `kubectl get configmap,secret` ## Next Steps After creating manifests: 1. Store in Git repository 2. Set up CI/CD pipeline for deployment 3. Consider using Helm or Kustomize for templating 4. Implement GitOps with ArgoCD or Flux 5. Add monitoring and observability ## Related Skills - `helm-chart-scaffolding` - For templating and packaging - `gitops-workflow` - For automated deployments - `k8s-security-policies` - For advanced security configurations
© Seth Hobson · MIT · wshobson/agents