Go lint setup
AI plugin for coding standards for Go
npx -y skills add Cadasto/go-coding-plugin --skill go-lint-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Scaffold the reference golangci-lint v2 config into a Go repo. This skill should be used when the user runs `/go-lint-setup` or asks to "set up", "scaffold", "add", or "bootstrap" golangci-lint or a `.golangci.yml` for a Go project — it writes the plugin's reference v2 config (modernize + stack linters) and will not overwrite an existing config unprompted. For understanding what the linters do or migrating a v1 config, use `go-linting`. Not for non-Go projects.
SKILL.md
1.9 KB, as published. Nobody here has run it
go-lint-setup — scaffold golangci-lint v2
Scaffold the plugin's reference golangci-lint v2 config into the current repo so its linting
matches the go-coding standards. Single interaction.
Steps:
- Check for an existing config —
.golangci.yml,.golangci.yaml,.golangci.toml,.golangci.json. If one exists, do not overwrite it: show how it differs from the reference and ask before changing anything. If it's a v1 config (noversionkey and/or anenable-all/top-levellinters:list), warn that v1 will not parse under golangci-lint v2 and offer to migrate. - Write the config below to
.golangci.yml(or the path given in$ARGUMENTS). - Report how to run it:
golangci-lint run, andgolangci-lint run --fixfor the auto-fixable findings (modernize+ the formatters). Suggest pinning thegolangci-lintversion in CI so the rule set is reproducible.
Config to write (mirrors references/golangci.v2.yml — keep the two in sync):
version: "2"
linters:
default: standard
enable:
- modernize
- errorlint
- bodyclose
- rowserrcheck
- sqlclosecheck
- noctx
- contextcheck
- containedctx
- perfsprint
- revive
formatters:
enable:
- gofumpt
- goimports
For what each linter does and why, see the go-linting skill.