scaffold-project

scaffold-project is a skill for Claude Code from grafana/gcx. It costs 51 tokens per session (519 once invoked), scanned A, original, Apache-2.0.

A starter-project generator for managing Grafana resources as code in Go. It creates the basic project files, an example dashboard, and a workflow for deploying changes.

In plain words
What is it for?
Use it to create a new project, set its Go module path, and get a repository structure ready for adding and deploying Grafana resources.
Why use it?
It removes the repetitive setup work involved in starting a new dashboards-as-code repository.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gcx plugin — 24 skills, 1 agent shipped together

Good fit Use it to create a new project, set its Go module path, and get a repository structure ready for adding and deploying Grafana resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grafana/gcx/scaffold-project
About the project

gcx is a command-line tool that lets people and AI coding agents manage and inspect Grafana Cloud, Enterprise, and open-source instances. It provides access to dashboards, alerts, SLOs, metrics, logs, and traces, with workflows for alert investigation, dashboard management, GitOps, and observability setup. Its catalogue entries provide agent instructions and extensions for using gcx.

grafana/gcx · 817 stars · on GitHub · grafana.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add grafana/gcx --skill scaffold-project
Clone the repo
git clone --depth 1 https://github.com/grafana/gcx

Made for: Claude Code.

Or install gcx, the plugin that ships this one along with the rest of its 24 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scaffold-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/grafana/gcx/scaffold-project/github.svg)](https://agentmods.dev/skills/grafana/gcx/scaffold-project)
Your own site
<a href="https://agentmods.dev/skills/grafana/gcx/scaffold-project"><img src="https://agentmods.dev/badge/skills/grafana/gcx/scaffold-project/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scaffold-project

Your own site · 80×15
<a href="https://agentmods.dev/skills/grafana/gcx/scaffold-project"><img src="https://agentmods.dev/badge/skills/grafana/gcx/scaffold-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00519
Opus 5.5 $0.00020 $0.00208
Sonnet 5.5 $0.00010 $0.00104
Haiku 4.5 $0.00005 $0.00052

Measured 14d ago against content hash f5864af756a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scaffold-project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/scaffold-project/SKILL.md · 71 lines

What it actually says

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · -3 lines · -39 tokens per session f5864af756a1
  2. 2mo ago First seen · 74 lines · 90 tokens per session scan A 975654f10ec6

Subscribe to this mod's changes

scaffold-project is a skill published in the GitHub repository grafana/gcx (817 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 519 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

scaffold-project compared with skills from other repositories

scaffold-project next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffold-projectgrafana/gcxSkill817todayApache-2.0A51Claude Code
imagegenopenai/codexSkill133ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex