---
title: "Grafana CUE Kind Definitions: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/grafana-cue-kind-definition/
description: "Define versioned resource schemas and generate matching app types from CUE."
---

# Grafana CUE Kind Definitions: review, setup & limitations · Undominated.ai

> Define versioned resource schemas and generate matching app types from CUE.

[← Explore all skills](/skills/)

OBSERVABILITY / grafana

# Grafana CUE Kind Definitions

Define versioned resource schemas and generate matching app types from CUE.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/grafana/skills/tree/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 4 linked sources
 Publisher grafana
 Licence [Apache-2.0 ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE)
 Revision 1ccacf29049f
 [Read what was—and wasn’t—checked ↓](#review)

“Author CUE kind definitions for grafana-app-sdk apps - schemas, versioning, field constraints, named type definitions, custom routes, and codegen configuration. …”

 [grafana · upstream description ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - It scaffolds a grafana-app-sdk kind in CUE and regenerates clients instead of editing pkg/generated.
- Breaking schema changes go in a new version, not into a stable v1 or v2 file.
- The definition separates common metadata, version schema and manifest registration, with explicit error recovery and stable-version compatibility boundaries.
- Add a resource kind with reusable named types and field constraints

### A good fit for

 - Adding a kind or a new schema version to a grafana-app-sdk app
- Add a resource kind with reusable named types and field constraints
- Introduce a new API version for a breaking schema change
- Check generated version directories and CRD version entries after adding a schema version.

### Weigh up before choosing

 - Generated Go and TypeScript files are overwritten and must not be hand-edited.
- The skill does not apply the CRD to a cluster.
- Codegen can disable Go or TypeScript output, but both default to true.
- This review did not execute the resource.
- Generated Go/TypeScript output is overwritten; fixes belong in CUE source.
- Schema generation does not prove migration compatibility or admission behavior; validate references, manifests and runtime consumers.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - skills/grafana-app-sdk/cue-kind-definition/SKILL.md
- README.md
- LICENSE

### Our findings

 - The workflow scaffolds kinds/*.cue, edits the schema, and runs grafana-app-sdk generate.
- The skill says never to edit files under pkg/generated, because generate overwrites them.
- A breaking change must be a new version and must not modify a stable v1 or v2 in place.
- The skill does not deploy the generated manifest; it only says the definitions/ CRD can be inspected.
- The definition separates common metadata, version schema and manifest registration, with explicit error recovery and stable-version compatibility boundaries.
- The versioning example checks generated per-version Go directories and the CRD spec.versions entries after regeneration.

### Not established by this review

 - The resource was not executed and its tools were not called.
- No skill execution, authenticated service operation, or outcome benchmark was performed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md)

DOCUMENTED COMMAND

 npx skills add grafana/skills/skills/grafana-app-sdk/cue-kind-definition Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/grafana/skills/tree/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition Copy reviewed-revision command ↗ - Install the pinned skill directory interactively, retaining its bundled references and scripts.
- Scaffold the kind, define common metadata and per-version spec/status, then register versions in the manifest.
- Run the SDK generator, repair reported CUE constraints in source and select only the required Go/TypeScript outputs.

### Before you start

 - grafana-app-sdk CLI and project
- CUE schemas and app manifest

### Compatibility

Agents supporting directory-based SKILL.md instructions

### Local instructions; runtime access depends on the workflow

 - Create or edit CUE sources and regenerate code; changes affect the accepted resource API when deployed.

### Cost model

The skill is free; service usage and infrastructure can incur charges.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Pinned skill definition ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition/SKILL.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition/SKILL.md Supports: summary, whySelected, bestFor, limitations, install, access, review
- [Publisher repository and installation guidance ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md Supports: install
- [Apache-2.0 licence ↗](https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE) Checked 2026-10-14 https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE Supports: license
- [Pinned continuation review C2-W05 ↗](https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-app-sdk/cue-kind-definition/SKILL.md Supports: review.findings, bestFor, upstreamDescription

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Grafana App Admission Control ↗ Implement validators and mutators for Grafana app resources before persistence.](/skills/grafana-admission-control/)[### Grafana App Reconciler Logic ↗ Implement scoped resource reconciliation and status updates with explicit event and finalizer behavior.](/skills/grafana-reconciler-logic/)[### OpenTelemetry with Grafana ↗ Connect application telemetry through direct OTLP export or an Alloy/Collector pipeline.](/skills/grafana-opentelemetry/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
