Skip to content
Development
Skill

/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).

From plugin
gcx
81024 skills1 agent

Claude Code

$ npx -y skills add grafana/gcx --skill scaffold-project --agent claude-code

SKILL.md

scaffold-project.SKILL.md
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` |

Read more
@grafana
Ships withgcx

gcx is Grafana in your terminal and your agentic coding environment. With gcx you don't guess, but check the actual data.

81024 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
810
Star history of grafana/gcx on GitHub, a chart by star-history.com

Other skills on gcx.

agento11y-instrument

agento11y-instrument

Instruments a developer's own LLM app or repairs missing generations and empty Performance charts in Grafana Agent Observability.…

@grafana@grafanaInstall Skill
agento11y-prod-setup

agento11y-prod-setup

Sets up production evaluation for a deployed AI agent in Agent Observability: online eval rules and guards (redact PII, block…

@grafana@grafanaInstall Skill
agento11y-test-starter

agento11y-test-starter

Builds a starter offline test suite for an AI agent before it ships: test cases from its code, scoring advice, and a runner stub.…

@grafana@grafanaInstall Skill
agento11y

agento11y

Inspects and manages Grafana Agent Observability resources via gcx: conversations, generations, experiments, evaluators, rules,…

@grafana@grafanaInstall Skill
create-dashboard

create-dashboard

Designs and creates Grafana dashboards with gcx, with `gcx dashboards snapshot` as a visual feedback loop. Use to build a new…

@grafana@grafanaInstall Skill
debug-with-grafana

debug-with-grafana

Investigates application problems and incidents with Grafana metrics, logs, and traces via gcx: errors, latency, regressions,…

@grafana@grafanaInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

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.