Skip to content
Kitbay

cue-kind-definition

Apache-2.0Updated on Nov 10, 2026307GitHub stars

A Grafana Labs skill for defining resource types, called kinds, in CUE for apps built with grafana-app-sdk.

What the skill teaches

A Grafana Labs skill for defining resource types, called kinds, in CUE for apps built with grafana-app-sdk. The agent scaffolds a kind with the SDK's CLI, fills in the spec and status schemas with constraints such as patterns, enumerations and ranges, defines reusable named types, adds new versions of a kind and registers them in the app manifest, and sets up custom routes. It then runs the SDK's code generator and checks that the Go types and CRD definitions for each version were produced, with steps for recovering from generation errors. References cover schema types, versioning and kind layout.

Capabilities

  • Scaffold a new kind with the SDK CLI
  • Write spec and status schemas with field constraints
  • Add and register a new version of a kind
  • Run code generation and check the output