/developer-standards:go-project-standardfrom developer-standards
Use when the user asks to create or review a Go module's layout (cmd/internal), go.mod, or golangci-lint config.
Ships in developer-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Lean Go module coach. Not a project-layout generator, and not a Make, CI, or Docker author.
Not here: Make target names (makefile-standard), GitHub Actions (ci-standard), Dockerfile and image build (dockerfile-standard), Compose topology (compose-standard). Full golang-standards/project-layout trees, hard coverage gates, and inventing binaries the repo does not need are out of scope.
Inventory: go.mod and Go version, existing packages and main entrypoints, current linter config, tests, tools.go against tool. Read Make and CI only to know where the handoffs are; do not redefine them here.
No main is a library. Cobra, urfave/cli, or kong is a cli. Any other binary is a service. Confirm with the human when it is ambiguous. Details: references/profiles.md.
Read references/rules.yaml, the source of truth for rule IDs. Full rules: references/go-project-standard.md.
| Artifact | Greenfield start |
|---|---|
| Lint | assets/.golangci.yml.template → .golangci.yml |
| library layout | assets/layout.library.md.template |
| service layout | assets/layout.service.md.template |
| cli layout | assets/layout.cli.md.template |
Replace every Adapt… marker. Migrate brownfield through references/migration-guide.md.
Logic packages get a _test.go. Go 1.24 and up prefer the tool directive over tools.go. The rest is in Hard rules below.
pkg/ "for later".A config file the standard requires is not "unrequested config". A v2 .golangci.yml ships even when the default linters currently pass.
python3 scripts/validate_go_project.py /path/to/module
python3 scripts/validate_go_project.py /path/to/module --profile service
Errors = fix. Warnings = human review. A structural check is not go test or golangci green.
Profile, detected or overridden; layout changes such as cmd/, internal/, or a removed empty pkg/; golangci posture; test posture; validation result; and handoffs, meaning what you found that belongs to makefile-standard, ci-standard, dockerfile-standard, or compose-standard, named but not fixed here.
go.mod at the module root.version: "2").linters.default: all.pkg/.cmd/<name>/main.go, required when a root main sits beside other packages.# go-project-standard: except <rule-id> — <reason>
Every ignored MUST needs an exception line with a non-empty reason.
assets/layout.cli.md.template (opens in a new tab)assets/layout.library.md.template (opens in a new tab)assets/layout.service.md.template (opens in a new tab)references/go-project-standard.md (opens in a new tab)references/migration-guide.md (opens in a new tab)references/profiles.md (opens in a new tab)references/rules.yaml (opens in a new tab)scripts/validate_go_project.py (opens in a new tab)tests/fixtures/invalid/coverage-gate/Makefile (opens in a new tab)tests/fixtures/invalid/coverage-gate/go.mod (opens in a new tab)tests/fixtures/invalid/coverage-gate/lib.go (opens in a new tab)tests/fixtures/invalid/default-all/go.mod (opens in a new tab)tests/fixtures/invalid/empty-pkg/go.mod (opens in a new tab)tests/fixtures/invalid/empty-pkg/lib.go (opens in a new tab)tests/fixtures/invalid/golangci-missing/go.mod (opens in a new tab)tests/fixtures/invalid/golangci-missing/hello.go (opens in a new tab)tests/fixtures/invalid/golangci-v1/go.mod (opens in a new tab)tests/fixtures/invalid/no-go-mod/main.go (opens in a new tab)tests/fixtures/invalid/no-tests-logic/a.go (opens in a new tab)tests/fixtures/invalid/no-tests-logic/b.go (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub painhardcore/developer-standards --plugin developer-standards5 skills in this plugin
/ci-standardUse when the user asks to create, edit, or review a GitHub Actions workflow or CI under .github/workflows/./compose-standardUse when the user asks to write, edit, or review a local Docker Compose file (compose.yaml / docker-compose.yml) or a local service stack./dockerfile-standardUse when the user asks to write, edit, review, migrate, or optimize a Dockerfile, .dockerignore, or container image build./makefile-standardUse when the user asks to create or edit a Makefile, add or rename a make target, or review Make target names.