From grafana-k6
Scaffolds and develops Grafana App Platform apps using the grafana-app-sdk CLI and Go library. Covers project init, deployment modes (standalone operator / grafana/apps / frontend-only), CUE kind schemas, code generation, and app configuration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grafana-k6:app-sdk-conceptsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The grafana-app-sdk is a CLI + Go library for building schema-centric apps on the Grafana App Platform. Apps define resources via CUE schemas ("kinds"), generate Go + TypeScript code, and implement business logic via admission control and reconcilers.
The grafana-app-sdk is a CLI + Go library for building schema-centric apps on the Grafana App Platform. Apps define resources via CUE schemas ("kinds"), generate Go + TypeScript code, and implement business logic via admission control and reconcilers.
go install github.com/grafana/grafana-app-sdk/cmd/grafana-app-sdk@latest
grafana-app-sdk version # verify
# 1. Init the project (use the Go module path)
grafana-app-sdk project init github.com/example/my-app
# 2. Add operator scaffolding — ASK THE USER FIRST.
# They may prefer to write app.App by hand.
grafana-app-sdk project component add operator
# 3. Verify scaffolded layout
ls pkg/app pkg/watchers cmd/operator
# Expected: app.go, watchers/<kind>.go, main.go
Common failure: forgetting go install updates the binary — verify with grafana-app-sdk version before init.
grafana/grafana)Only available inside the Grafana repo (or fork) — the init command detects apps/ and pkg/registry/apps/ at the repo root.
mkdir -p apps/my-app && cd apps/my-app
grafana-app-sdk project init github.com/grafana/grafana/apps/my-app
# Keep ONLY: kinds/ pkg/ go.mod go.sum — delete everything else.
cp apps/example/Makefile apps/my-app/Makefile
cp apps/example/kinds/config.cue apps/my-app/kinds/config.cue # overwrite
go work use ./apps/my-app
Then register the app inside Grafana (pkg/registry/apps/apps.go + register.go). Full walkthrough in references/deployment-modes.md.
1. project init → module, Makefile, kinds/
2. project kind add MyKind → CUE kind scaffold
3. Edit kinds/*.cue → schemas, validation, versions
4. grafana-app-sdk generate → Go types, clients, TS types, AppManifest, CRDs
5. Implement logic → fill in reconciler / admission stubs
6. (optional) project component add frontend
Always rerun generate after every CUE change — generated code is the API your reconciler sees.
| Mode | When to pick | Where it runs |
|---|---|---|
| Standalone operator | Outside Grafana repo, want your own binary | Kubernetes operator with its own webhook server |
| grafana/apps | Inside github.com/grafana/grafana (or fork) | In-process inside Grafana's API server |
| Frontend-only | UI-only app, no Go logic needed | No backend — TS types only |
Full per-mode init, runtime, and wiring detail in references/deployment-modes.md.
references/deployment-modes.md — per-mode init, runtime semantics, grafana/apps registration walkthroughreferences/project-structure.md — standalone project layout, what's hand-edited vs generatedreferences/cli-reference.md — every grafana-app-sdk subcommand with flagsreferences/specific-config.md — app.Config.SpecificConfig pattern for feature-flag-driven app configreferences/local-development.md — Tilt + k3d local dev loopreferences/local-config.md — local/config.yaml reference2plugins reuse this skill
First indexed Jul 2, 2026
npx claudepluginhub caraar12345/llm-grafana-skills --plugin grafana-coreScaffolds and develops Grafana App Platform apps using the grafana-app-sdk CLI and Go library. Covers project init, deployment modes (standalone operator / grafana/apps / frontend-only), CUE kind schemas, code generation, and app configuration.
Scaffolds Grafana plugin projects (panel, data source, app, backend) using @grafana/create-plugin. Automates Docker dev environment setup with hot-reload and plugin configuration for v12.x+.
Generate, modify, and convert Grafana dashboard JSON to typed code using the grafana-foundation-sdk builder pattern. Use when creating monitoring dashboards programmatically or working with Prometheus/Loki queries.