scaffold

A project starter for creating a new Go web service from the gold-apisrv template.

In plain words
What is it for?
Use it to begin a new API service with chosen names, port, PostgreSQL database, admin CRUD API, and optional file storage.
Why use it?
It avoids setting up the repository, folder structure, build files, configuration, and continuous-integration checks by hand.

Skill for Claude CodeCodex

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 skills/vmkteam/claude-plugins/scaffold
Any agent
npx skills add vmkteam/claude-plugins --skill scaffold
Clone the repo
git clone --depth 1 https://github.com/vmkteam/claude-plugins

Made for: Claude Code, Codex.

Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,872 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00048 $0.01872
Opus 5 $0.00024 $0.00936
Sonnet 5 $0.00010 $0.00374
Haiku 4.5 $0.00005 $0.00187

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

Security

Grade C, and why

scaffold scanned grade C with 2 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 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 .git

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:{port}/status
plugins/developer/skills/scaffold/SKILL.md · 193 lines

How it starts

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

Scaffold — создание нового Go-сервиса

Создание нового проекта из шаблона vmkteam/gold-apisrv (https://github.com/vmkteam/gold-apisrv).

Триггер

  • "создай новый сервис"
  • "bootstrap проект"
  • "новый API сервер"

Входные данные

Спроси у пользователя:

  1. Имя проекта (module name, например reviewsrv, ordersrv)
  2. Имя бизнес-слоя (может отличаться от проекта, например проект ordersrv → бизнес-слой orders). По умолчанию = имя проекта без суффикса srv
  3. Путь куда клонировать (по умолчанию ~/{workspace}/{name}/)
  4. Порт (по умолчанию 8075)
  5. База данных (имя и PostgreSQL-схема, по умолчанию имя = проект, схема = public)
  6. Нужен ли VT (admin CRUD API, по умолчанию да)
  7. Нужен ли VFS (файловое хранилище, по умолчанию нет)

Алгоритм

Шаг 1. Клонировать и инициализировать

git clone https://github.com/vmkteam/gold-apisrv.git {path}/{name}
cd {path}/{name}
rm -rf .git
git init

Шаг 2. make init

В шаблоне есть make init который выполняет начальную настройку, включая генерацию Makefile.mk из Makefile.mk.dist. Запустить:

make init

Makefile.mk — локальный конфиг проекта (переменные, пути), подключается из основного Makefile. Находится в .gitignore.

Шаг 3. Переименовать модуль и проект

# go.mod
sed -i '' 's/module apisrv/module {name}/' go.mod

# Все импорты в .go файлах
find . -name '*.go' -not -path './vendor/*' -exec sed -i '' 's|"apisrv/|"{name}/|g' {} +

Файлы для правки:

Файл Что менять
cmd/apisrv/main.go const appName = "apisrv""{name}"
Makefile NAME := apisrvNAME := {name}
Makefile PGDATABASE ?= apisrvPGDATABASE ?= {name}
Makefile TEST_PGDATABASE ?= test-apisrvTEST_PGDATABASE ?= test-{name}
deployments/Dockerfile CI_PROJECT_NAME=apisrvCI_PROJECT_NAME={name}
cfg/local.toml.dist Database = "apisrv"Database = "{name}"

Шаг 4. Переименовать директории и файлы

Read the full file on GitHub · 193 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 · 193 lines · 48 tokens per session scan C 0af8ca1b0de5

Subscribe to this mod's changes

scaffold is a skill published in the GitHub repository vmkteam/claude-plugins (7 stars, last pushed 4mo ago), licensed MIT. It adds 48 tokens to every session and 1,872 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

layered-architecture-types

Enforce primitive-at-edges / strong-types-in-Business layering and the toBus/fromBusResponse/toDB converter pattern. Use when writing, editing, or auditing Go files under app/, business/domain/, or .../stores/db.

ardanlabs/service · 56 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

golang-observability

Golang everyday observability — the always-on signals in production. Covers structured logging with slog, Prometheus metrics, OpenTelemetry distributed tracing, continuous profiling with pprof/Pyroscope, server-side RUM event tracking, alerting, and Grafana dashboards. Apply when instrumenting Go services for…

samber/cc-skills-golang · 166 tokens

golang-data-structures

Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buckets, maps package), arrays, container/list/heap/ring, strings.Builder vs bytes.Buffer, generic collections, pointers (unsafe.Pointer, weak.Pointer), and copy semantics. Use when choosing or optimizing…

samber/cc-skills-golang · 126 tokens

golang-dependency-management

Dependency management for Golang projects — go.mod and go.sum, go get install and upgrade flows, Minimal Version Selection, conflict resolution with replace/exclude/retract, govulncheck scanning of the module tree, outdated dependency and binary size auditing, vendoring, tool directives, and go.work workspaces. Use…

samber/cc-skills-golang · 182 tokens

golang-spf13-viper

Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload…

samber/cc-skills-golang · 174 tokens