Lang Go

use this when the change is Go but it is unclear which Go skill to load — routes to golang-safety, golang-testing, or golang-security. do not use as a fourth Go body. do not use for other languages.

alexderz Updated

File contents

Go (router)

This id routes. Do not remint Go advice. No scripts/. At most one language skill per turn, and the process skills that may load with it: language-router Iron law, Load-with list.

Iron law

Never write a parallel Go guide.

Load

Which Go skill loads: the Go row in language-router Map.

Then stop. Apply that skill.

Combined verify (after the chosen skill)

gofmt -l .
go test ./...
go test -race ./...

Add staticcheck / errcheck when tester already wired them. Read the output.

Combined PR checklist

  • Errors wrapped with %w; compared with errors.Is / As, not ==.
  • context.Context is first param and is plumbed, not stored on structs.
  • No goroutine without a documented lifetime (return, ctx cancel, or WaitGroup).
  • No string-built SQL or os/exec from concatenated input.
  • Tables in _test.go for the new behavior.

Never

  • A new lang-go body that copies samber or Effective Go into this repo.
  • npx / marketplace install of samber/cc-skills-golang.

alexderz/agentic-toolbox commit 5321778df1

Frequently asked questions

npx get-skill add alexderz/lang-go