agentsclimarketplace

Go lint setup

Skill Cadasto/go-coding-plugin/skills/go-lint-setup

AI plugin for coding standards for Go

Install
npx -y skills add Cadasto/go-coding-plugin --skill go-lint-setup

Assembled 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:

  1. 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 (no version key and/or an enable-all/top-level linters: list), warn that v1 will not parse under golangci-lint v2 and offer to migrate.
  2. Write the config below to .golangci.yml (or the path given in $ARGUMENTS).
  3. Report how to run it: golangci-lint run, and golangci-lint run --fix for the auto-fixable findings (modernize + the formatters). Suggest pinning the golangci-lint version 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.