/k8s:k8s-crd-designfrom k8s
Designs Kubernetes CRD schemas, validating/mutating webhooks, RBAC, and reconcile loops for operators.
Ships in k8s. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use these patterns when designing and implementing CRDs, webhooks, controllers, and RBAC for Kubernetes operators.
Before writing code, answer:
Propose a CRD with:
+kubebuilder:validation:*).+kubebuilder:default:= markers for sensible defaults.+kubebuilder:validation:Enum, +kubebuilder:validation:Minimum, +kubebuilder:validation:Pattern as appropriate.+kubebuilder:printcolumn for useful kubectl get output.Example pattern:
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
type MyResource struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MyResourceSpec `json:"spec,omitempty"`
Status MyResourceStatus `json:"status,omitempty"`
}
Ignore (don't block the cluster if webhook is down)Fail (safety over availability)Standard reconcile pattern:
Key principles:
List the minimal permissions the controller needs:
Avoid:
Minimum test coverage:
// Example envtest setup
var _ = BeforeSuite(func() {
testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
WebhookInstallOptions: envtest.WebhookInstallOptions{
Paths: []string{filepath.Join("..", "config", "webhook")},
},
}
// ...
})
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
npx claudepluginhub sagart-cactus/claude-k8s-plugin --plugin k8sOther plugins' skills for the same job