Install
Install with PiG
pig install npm:@srobroek/pi-lang-goInstall with Pi
pi install npm:@srobroek/pi-lang-goPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"skills": [
"./skills"
]
}README
Written by the package's publisher, shown as published in version 0.10.1 (README.md). PiG does not review it.
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.