🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Kubernetes Operator Scaffolder

by @charlie-morrison

Scaffold production-ready Kubernetes operators — generate CRDs, controllers, RBAC, webhooks, and Dockerfiles with best practices for Go or Python operators.

💡 Examples

Provide the following inputs:

  • Resource name — the noun your operator manages (e.g., Database, CacheCluster, MLPipeline)
  • API group — the Kubernetes API group (e.g., infra.example.com)
  • API version — typically v1alpha1 for new operators
  • Languagego (kubebuilder) or python (kopf)
  • Spec fields — the fields users will set in the custom resource (name, type, default, validation)
  • Reconciliation behavior — what the controller should do when the resource is created, updated, or deleted
  • Example invocation:

    > Scaffold a Go operator for a PostgresCluster resource in the db.example.com group. Spec fields: replicas (int, default 3), version (string, default "16"), storageSize (string, default "10Gi"). On create, it should provision a StatefulSet with PVCs. On delete, clean up PVCs.

    ⚙️ Configuration

    Before scaffolding, the agent checks for:

    # Go operator (kubebuilder path)
    go version            # Go 1.22+
    kubebuilder version   # kubebuilder 4.x
    controller-gen --version
    kustomize version

    Python operator (kopf path)

    python3 --version # 3.11+ pip show kopf # kopf framework pip show kubernetes # k8s client

    If tools are missing, the agent provides install commands before proceeding.

    View on ClawHub
    TERMINAL
    clawhub install kubernetes-operator-scaffolder

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →