Implement idiomatic Kubernetes operations with label selectors, strategic merge patches, and proper error handling for production-grade CLI tooling.
Implements idiomatic Kubernetes operations using label selectors, strategic merge patches, and proper error handling for production-grade CLI tooling. Use when building Kubernetes CLI commands that need to list resources with filters, perform safe updates, or handle not-found errors correctly.
/plugin marketplace add adaptive-enforcement-lab/claude-skills/plugin install build@ael-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/example-1.mermaidA well-designed Kubernetes CLI provides idiomatic operations that work consistently across resource types. This section covers:
See the full implementation guide in the source documentation.
| Practice | Description |
|---|---|
| Use label selectors | Filter resources server-side, not client-side |
| Prefer patches over updates | Patches are safer for concurrent modifications |
| Use strategic merge patches | Kubernetes-native patch format for resources |
| Handle not found errors | Check apierrors.IsNotFound(err) before creating |
| Respect resource versions | Use optimistic concurrency for updates |
Use the Kubernetes API idiomatically: label selectors, patches, and proper error handling.
graph TB
CLI[CLI Command] --> List[List Resources]
CLI --> Mutate[Mutate Resources]
CLI --> Watch[Watch Changes]
List --> Filter[Label Selectors]
Mutate --> Patch[Strategic Merge Patch]
Mutate --> Create[Get-or-Create]
Watch --> Events[Event Stream]
%% Ghostty Hardcore Theme
style CLI fill:#65d9ef,color:#1b1d1e
style List fill:#a7e22e,color:#1b1d1e
style Mutate fill:#fd971e,color:#1b1d1e
style Watch fill:#9e6ffe,color:#1b1d1e
style Filter fill:#5e7175,color:#f8f8f3
style Patch fill:#5e7175,color:#f8f8f3
style Create fill:#5e7175,color:#f8f8f3
style Events fill:#5e7175,color:#f8f8f3
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.