/scaffold-project
Scaffolds a new Go project for Grafana resources as code with `gcx dev scaffold`. Use to start a new dashboards-as-code repo or gcx project. Not for installing or connecting gcx (use setup-gcx).
Claude Code
$ npx -y skills add grafana/gcx --skill scaffold-project --agent claude-code
Codex
$ npx skills add grafana/gcx --skill scaffold-project -a codex -y
Cursor
$ npx skills add grafana/gcx --skill scaffold-project -a cursor -y
Gemini CLI
$ npx skills add grafana/gcx --skill scaffold-project -a gemini-cli -y
GitHub Copilot
$ npx skills add grafana/gcx --skill scaffold-project -a github-copilot -y
OpenCode
$ npx skills add grafana/gcx --skill scaffold-project -a opencode -y
Windsurf
$ npx skills add grafana/gcx --skill scaffold-project -a windsurf -y
SKILL.md
scaffold-project.SKILL.mdname: scaffold-project
description: >-
Scaffolds a new Go project for Grafana resources as code with `gcx dev
scaffold`. Use to start a new dashboards-as-code repo or gcx project. Not for
installing or connecting gcx (use setup-gcx).
Scaffold a gcx Project
Scaffold a new Go project for managing Grafana resources as code using `gcx dev scaffold`.
Prerequisites
Verify gcx is installed:
gcx --version
If missing, see the `setup-gcx` skill.
Scaffolding
Interactive Mode (recommended for first-time users)
gcx dev scaffold
Prompts for:
- **Project name** - becomes the directory name (kebab-cased)
- **Go module path** - e.g. `github.com/myorg/my-dashboards`
Non-Interactive Mode
gcx dev scaffold --project my-dashboards --go-module-path github.com/myorg/my-dashboards
What Gets Generated
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
Next Steps After Scaffolding
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`
Common Issues
| 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` |
Read more
name: scaffold-project description: >- Scaffolds a new Go project for Grafana resources as code with `gcx dev scaffold`. Use to start a new dashboards-as-code repo or gcx project. Not for installing or connecting gcx (use setup-gcx).
Scaffold a gcx Project
Scaffold a new Go project for managing Grafana resources as code using `gcx dev scaffold`.
Prerequisites
Verify gcx is installed:
gcx --version
If missing, see the `setup-gcx` skill.
Scaffolding
Interactive Mode (recommended for first-time users)
gcx dev scaffold
Prompts for:
- **Project name** - becomes the directory name (kebab-cased)
- **Go module path** - e.g. `github.com/myorg/my-dashboards`
Non-Interactive Mode
gcx dev scaffold --project my-dashboards --go-module-path github.com/myorg/my-dashboards
What Gets Generated
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
Next Steps After Scaffolding
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`
Common Issues
| 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` |
gcx is Grafana in your terminal and your agentic coding environment. With gcx you don't guess, but check the actual data.
Other skills on gcx.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about scaffold-project.
- Which coding agents can use scaffold-project?
- scaffold-project installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

