add-datasource
Use for the implementation workflow that adds gcx CLI support for a datasource type not registered in internal/datasources/providers — query client, command…
Scaffolds a new Go project for managing Grafana resources as code via gcx dev scaffold. Use when the user wants to create a new Grafana resources-as-code project, start a new dashboards-as-code repo, scaffold a gcx project, or asks "how do I get started with gcx". Triggers on
$ npx -y skills add grafana/gcx --skill scaffold-project --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/scaffold-projectContext preview
The summary Claude sees to decide when to auto-load this skill.
Scaffolds a new Go project for managing Grafana resources as code via gcx dev scaffold. Use when the user wants to create a new Grafana resources-as-code project, start a new dashboards-as-code repo, scaffold a gcx project, or asks "how do I get started with gcx". Triggers on
name: scaffold-project description: > Scaffolds a new Go project for managing Grafana resources as code via gcx dev scaffold. Use when the user wants to create a new Grafana resources-as-code project, start a new dashboards-as-code repo, scaffold a gcx project, or asks "how do I get started with gcx". Triggers on phrases like "new project", "scaffold", "bootstrap", "create project", "get started".
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:
gcx 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
1. `cd my-dashboards && go mod tidy` 2. Configure gcx: `gcx config set stacks.default.grafana.server <URL>`, `gcx config set stacks.default.grafana.token <TOKEN>`, and `gcx config set contexts.default.stack default` 3. Edit `internal/dashboards/sample.go` or generate new stubs with `gcx dev generate` 4. Push to Grafana: `gcx resources push`
| Issue | Fix | |-------|-----| | `go mod tidy` fails | Ensure your Go toolchain meets the version required by the generated `go.mod` | | 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` |
Grafana — in your terminal and your agentic coding environment. gcx works with Grafana Cloud, Enterprise, and OSS (Grafana 12+). See the compatibility matrix for details. Query production. Investigate alerts. Let the Assistant root-cause issues.
Repo: grafana/gcx
Use for the implementation workflow that adds gcx CLI support for a datasource type not registered in internal/datasources/providers — query client, command…
Use for the implementation workflow once a capability is already classified as a Grafana Cloud product provider (SLO, OnCall, Synthetic Monitoring, k6, ML,…
Regenerate the gcx marketing bento-box slide (slide.html) with verified commands from the current codebase. Builds a fresh binary and reflects against the…
Guides a contributor and their coding agent through adding or extending a capability in the grafana/gcx codebase: deciding whether a new command is needed and…
Reference for porting a Grafana Cloud product from the legacy grafana-cloud-cli into a gcx provider — adapter, schema/example registration, CRUD redirect…