一键导入
kubernetes-manifest-generator
Generate and validate Kubernetes YAML manifests with best practices for Deployments, Services, ConfigMaps, and security policies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate and validate Kubernetes YAML manifests with best practices for Deployments, Services, ConfigMaps, and security policies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyzes and optimizes frontend performance using Core Web Vitals, bundle analysis, lazy loading, image optimization, and caching strategies
Design RESTful APIs with OpenAPI 3.1/3.2, resource modeling, HTTP semantics, versioning, pagination, HATEOAS, and OWASP API Security.
Design data pipelines with quality checks, orchestration, and governance using modern data stack patterns for robust ELT/ETL workflows.
Validate WCAG 2.2 compliance (A/AA/AAA) with ARIA, color contrast, keyboard navigation, screen readers, and automated testing via axe-core/Pa11y.
Design Kafka architectures with exactly-once semantics, Kafka Streams, ksqlDB, Schema Registry (Avro/Protobuf), performance tuning, and KRaft.
Design RabbitMQ architectures with exchanges, quorum queues, routing patterns, clustering, dead letter exchanges, and AMQP best practices.
| name | Kubernetes Manifest Generator |
| slug | kubernetes-manifest-generator |
| description | Generate and validate Kubernetes YAML manifests with best practices for Deployments, Services, ConfigMaps, and security policies. |
| capabilities | ["Kubernetes Deployment and Service manifest generation","ConfigMap and Secret manifest creation","NetworkPolicy and RBAC configuration","Resource requests and limits optimization","Health check (liveness/readiness) configuration","Pod Security Standards enforcement"] |
| inputs | [{"workload_name":"name of the workload (string)"},{"workload_type":"deployment, statefulset, daemonset, job, cronjob (string)"},{"container_image":"container image with tag (string)"},{"port":"exposed container port (integer, optional)"},{"replicas":"number of replicas (integer, default: 3)"},{"resources":"CPU/memory requests and limits (object, optional)"},{"health_checks":"liveness and readiness probe config (object, optional)"},{"security_context":"pod and container security settings (object, optional)"}] |
| outputs | [{"kubernetes_manifests":"validated K8s YAML for Deployment and Service"},{"validation_results":"kubectl dry-run validation output"},{"best_practices_report":"compliance with K8s best practices"}] |
| keywords | ["kubernetes","yaml","deployment","service","configmap","networkpolicy","rbac","pod-security","manifest-generation"] |
| version | 1.0.0 |
| owner | cognitive-toolworks |
| license | MIT |
| security | Public; no secrets or PII; safe for open repositories |
| links | ["https://kubernetes.io/docs/concepts/workloads/controllers/deployment/","https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/","https://kubernetes.io/docs/concepts/configuration/overview/","https://kubernetes.io/docs/concepts/security/pod-security-standards/"] |
Trigger conditions:
Not for:
Time normalization:
NOW_ET using NIST/time.gov semantics (America/New_York, ISO-8601): 2025-10-26T01:33:54-04:00NOW_ET for all citation access datesInput validation:
workload_name must be DNS-1123 compliant (lowercase, alphanumeric, hyphens)workload_type must be one of: deployment, statefulset, daemonset, job, cronjobcontainer_image must include tag (not :latest for production)replicas must be ≥1 (≥3 recommended for production)resources.requests must be ≤ resources.limits if both specifiedSource freshness:
Decision thresholds:
Step 1: Generate core Kubernetes manifests
Step 2: Validate and output
Abort conditions:
All T1 steps plus:
Step 1: Add health checks
Step 2: Apply security hardening
Step 3: Add resource management
Step 4: Network security
Step 5: Validate and report
Abort conditions:
All T1 + T2 steps plus:
Step 1: Advanced workload features
Step 2: Complete GitOps structure
Output:
Workload type selection:
Resource sizing defaults:
Health check defaults:
Ambiguity handling:
Required fields (all tiers):
kubernetes_manifests:
deployment: "Deployment YAML with metadata, spec, containers"
service: "Service YAML (if port specified)"
validation_results:
syntax_valid: boolean
kubectl_dry_run: "command output or error"
best_practices_report:
checks_passed: integer
checks_failed: integer
recommendations: ["array of improvement suggestions"]
Additional T2 fields:
security_config:
service_account: "ServiceAccount YAML"
rbac_role: "Role or ClusterRole YAML"
rbac_binding: "RoleBinding YAML"
network_policy: "NetworkPolicy YAML"
pod_security_standard: "restricted | baseline | privileged"
autoscaling:
hpa: "HorizontalPodAutoscaler YAML (if applicable)"
metrics: ["cpu", "memory", "custom"]
Additional T3 fields:
advanced_features:
pvc: "PersistentVolumeClaim YAML (if StatefulSet)"
pdb: "PodDisruptionBudget YAML"
affinity_rules: "Pod affinity configuration"
gitops_structure:
kustomization: "Kustomization.yaml for base"
namespace: "Namespace YAML with ResourceQuota"
service_monitor: "Prometheus ServiceMonitor CRD (if applicable)"
# T1 Example: Basic Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-api
labels:
app: web-api
version: v1.0.0
spec:
replicas: 3
selector:
matchLabels:
app: web-api
template:
metadata:
labels:
app: web-api
spec:
containers:
- name: api
image: myregistry/web-api:1.0.0
ports:
- containerPort: 8080
resources:
requests: {cpu: 100m, memory: 128Mi}
limits: {cpu: 200m, memory: 256Mi}
(Service manifest generated alongside Deployment)
Token budgets (enforced):
Safety checks:
Auditability:
Determinism:
Validation requirements:
kubectl apply --dry-run=client -f -Official Documentation (accessed 2025-10-26T01:33:54-04:00):
Validation Tools:
Best Practices: