@srobroek/pi-lang-go0.13.0
Go skills: build, lint, go test -race, tidy and govulncheck checks, testing and fuzzing, module and package layout, and pprof profiling.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
lang-go
Go skills: the build, lint, test, tidy and vulnerability checks to run through the shell
tool and in CI, how to report a step that could not run, testing and fuzzing idioms,
module and package layout, and the profiler and benchmark tooling.
Formatting is OpenCode's built-in formatter ("formatter": true); see
docs/formatters.md.
Replaces the Go half of the former languages plugin, which ported the omp-plugins go
plugin (its go_quality tool is not ported).
Install
Install the Pi package from npm:
pi install npm:@srobroek/pi-lang-go
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/lang-go/opencode'
Claude Code install the same skills from this repository's marketplace:
claude plugin install lang-go@harness-plugins
Skills
Only lang-go is listed to the model in OpenCode: it is a router whose body maps each
situation to the skills below, which set opencode/autoinvoke: false and load by id. One listing
entry instead of one per skill keeps the per-request skills listing short. Claude Code ignores that metadata, so there every skill is listed and triggers directly.
The profiling skill is also reached through the quality plugin's quality-profiling skill.
The plugin registers these skills from skills/, unless a skill with the same id
already exists:
lang-go: the router.lang-go-libraries: compare standard-library defaults and conditional alternatives before writing web, data, messaging, AWS, AI, telemetry, CLI, testing or security code.lang-go-quality:go build,golangci-lint fmt --difforgofmt -l,golangci-lint runorgo vet,go test -race,go mod tidy -diff,govulncheck, in that order, and CI.lang-go-testing: table tests and subtests, go-cmp, golden files, fuzzing, httptest,testing/synctest;references/practice.mdhas tool choices, bad tests with fixes, and defaults by use case.lang-go-packaging: one module withcmd/andinternal/,go.work,tooldirectives, build tags for debug code, depguard import rules.lang-go-profiling: pprof,go test -bench,go tool trace, benchstat. The method is thequalityplugin'squality-profilingskill.