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'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gcx:scaffold-projectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scaffold a new Go project for managing Grafana resources as code using
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 |
npx claudepluginhub grafana/gcx --plugin gcxScaffolds 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+.
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.
Create project, component, or boilerplate scaffolds. Use when starting a new project, module, or component, generating boilerplate, or stamping a repeatable file structure.