generate-resource-stubs

Installation
SKILL.md

Generate Typed Resource Stubs

Generate ready-to-edit Go files for dashboards and alert rules using gcx dev generate. The generated code uses the grafana-foundation-sdk builder pattern and compiles without modification.

This skill stops at scaffolding. If the task is to decide which dashboard panels, variables, queries, and layout should exist, use create-dashboard after generating the stub.

Quick Start

# Dashboard stub
gcx dev generate dashboards/my-service-overview.go

# Alert rule stub
gcx dev generate alerts/high-cpu-usage.go
Installs
19
Repository
grafana/gcx
GitHub Stars
611
First Seen
Apr 7, 2026
generate-resource-stubs — grafana/gcx