golang-development:scaffold

A command for starting new Go projects with a predefined structure, Go modules, tests, and development automation. Go is a programming language commonly used for services, command-line tools, and libraries.

In plain words
What is it for?
Use it to scaffold an HTTP service, command-line application, library, or microservice, with optional database or gRPC support.
Why use it?
It saves time creating the same folders, configuration, and build setup by hand.

Command

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.

agentmods
npx agentmods add commands/geoffjay/claude-plugins/scaffold
Clone the repo
git clone --depth 1 https://github.com/geoffjay/claude-plugins
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00029 $0.02528
Opus 5 $0.00015 $0.01264
Sonnet 5 $0.00006 $0.00506
Haiku 4.5 $0.00003 $0.00253

Measured 2d ago against content hash 2134b7200af8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

golang-development:scaffold scanned grade C with 1 finding 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 2d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf bin/
plugins/golang-development/commands/scaffold.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Golang Development Scaffold Command

Create a new Go project with a production-ready structure, modern tooling, and best practices built-in.

Usage

/golang-development:scaffold <project-name> [options]

Arguments

  • $1 - Project name (required, will be used for module name)
  • $2 - Project type: service, cli, library, or microservice (optional, defaults to service)
  • $3 - Additional options as JSON (optional)

Examples

# Create a basic HTTP service
/golang-development:scaffold my-api service

# Create a CLI application
/golang-development:scaffold my-tool cli

# Create a library
/golang-development:scaffold my-lib library

# Create a microservice with full features
/golang-development:scaffold user-service microservice '{"with_grpc": true, "with_db": true}'

Project Structures

Service (HTTP API)

my-api/
├── cmd/
│   └── server/
│       └── main.go
├── internal/
│   ├── handler/
│   │   └── health.go
│   ├── middleware/
│   │   └── logging.go
│   └── service/
│       └── user.go
├── pkg/
│   └── response/
│       └── response.go
├── api/
│   └── openapi.yaml
├── scripts/
│   └── build.sh
├── deployments/
│   ├── Dockerfile
│   └── k8s/
├── go.mod
├── go.sum
├── .gitignore
├── .golangci.yml
├── Makefile
└── README.md

CLI Application

my-tool/
├── cmd/
│   └── my-tool/
│       └── main.go
├── internal/
│   ├── command/
│   │   ├── root.go
│   │   └── serve.go
│   └── config/
│       └── config.go
├── go.mod
├── go.sum
├── .gitignore
├── .golangci.yml
├── Makefile
└── README.md

Library

my-lib/
├── example_test.go
├── lib.go
├── lib_test.go
├── go.mod
├── go.sum
├── .gitignore
├── .golangci.yml
├── LICENSE
└── README.md

Microservice (Full Features)

user-service/
├── cmd/
│   └── server/
│       └── main.go
├── internal/
│   ├── domain/
│   │   └── user.go
│   ├── handler/
│   │   ├── http/
│   │   └── grpc/
│   ├── repository/
│   │   └── postgres/
│   ├── service/
│   │   └── user_service.go
│   └── infrastructure/
│       ├── database/
│       ├── cache/
│       └── messaging/
├── api/
│   ├── http/
│   │   └── openapi.yaml
│   └── grpc/
│       └── user.proto
├── pkg/
│   ├── logger/
│   ├── metrics/
│   └── tracing/
├── migrations/
│   └── 001_create_users.sql
├── deployments/
│   ├── Dockerfile
│   ├── docker-compose.yml
│   └── k8s/
├── scripts/
├── go.mod
├── go.sum
├── .gitignore
├── .golangci.yml
├── Makefile
└── README.md

Read the full file on GitHub · 457 lines

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. 2d ago First seen · 457 lines · 29 tokens per session scan C 2134b7200af8

Subscribe to this mod's changes

golang-development:scaffold is a command published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 10mo ago), licensed MIT. It adds 29 tokens to every session and 2,528 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.