From gcx
Scaffolds new Go projects for Grafana resources-as-code using gcx dev scaffold. Generates repo structure with CI/CD, main.go, and dashboard examples. Triggers on 'new project', 'scaffold', 'get started with gcx'.
npx claudepluginhub grafana/gcx --plugin gcxThis skill uses the workspace's default tool permissions.
Scaffold a new Go project for managing Grafana resources as code using
Generates typed Go stubs for Grafana dashboards and alert rules using grafana-foundation-sdk builder pattern via gcx dev generate. Infers type from dashboards/ or alerts/ directories.
Guides grafana-app-sdk project initialization, CLI usage, deployment modes (standalone operator, grafana/apps, frontend-only), and Grafana App Platform workflows.
Generates Grafana dashboards and configurations for DevOps monitoring tasks involving Kubernetes, Terraform, Helm, and IaC. Provides step-by-step guidance, best practices, and production-ready outputs.
Share bugs, ideas, or general feedback.
Scaffold a new Go project for managing Grafana resources as code using
gcx dev scaffold.
Verify gcx is installed:
gcx version
If missing, see the setup-gcx skill.
gcx dev scaffold
Prompts for:
github.com/myorg/my-dashboardsgcx dev scaffold --project my-dashboards --go-module-path github.com/myorg/my-dashboards
my-dashboards/
├── .github/workflows/deploy.yaml # CI/CD workflow for gcx push
├── .gitignore
├── go.mod
├── main.go # Entrypoint — registers all resources
├── internal/
│ └── dashboards/
│ ├── all.go # Registry function returning all manifests
│ └── sample.go # Example dashboard using foundation-sdk builders
└── README.md
cd my-dashboards && go mod tidygcx config set server <URL> and gcx config set token <TOKEN>internal/dashboards/sample.go or generate new stubs with gcx dev generategcx resources push| Issue | Fix |
|---|---|
go mod tidy fails | Ensure Go 1.24+ is installed |
| Project name has spaces | Names are auto-kebab-cased; spaces become hyphens |
| Want to add alert rules | Create internal/alerts/ and use gcx dev generate alerts/my-rule.go |