golang-how-to

Agent skill from samber/cc-skills-golang.

samber ↓ 30k
Claude Code
View source ↗

What it does

  • Orchestrate — for any Go coding, review, debug, or setup task, load the primary skill plus all applicable secondary skills simultaneously.
  • Disambiguate — when two skills seem to overlap, show the boundary table. See disambiguation.md.
  • Configure — add a ## Required Go skills block to the project's CLAUDE.md or AGENTS.md. Follow project-config.md.
  • samber/\: golang-samber-lo (finite transforms) · golang-samber-ro (reactive streams) · golang-samber-mo (monadic types)
  • Errors: golang-error-handling (idioms) · golang-samber-oops (structured errors) · golang-safety (prevent panics)
  • Style: golang-code-style · golang-naming · golang-lint · golang-documentation
  • CLI: golang-cli (architecture) · golang-spf13-cobra (command tree) · golang-spf13-viper (config layering)

Requirements & configuration

  • Dependencies: gopls — go install golang.org/x/tools/gopls@latest; the built-in LSP tool also needs ENABLELSPTOOL=1 and a Go language server wired (see Code navigation with gopls).

Configuration: ENABLE_LSP_TOOLCLAUDEAGENTS

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang-how-to FAQ

What does the golang-how-to skill do?

Golang skills orchestrator — always active on any Golang coding, review, debug, or setup task. Reads the task context and loads the most relevant skills from samber/cc-skills-golang, often multiple at once: writing a gRPC service loads golang-grpc + golang-testing + golang-error-handling; debugging a panic loads golang-troubleshooting + golang-safety; auditing security loads golang-security + golang-lint + golang-safety. Also: disambiguates competing clusters when two skills seem to overlap (performance vs benchmark vs troubleshooting, samber/lo vs mo vs ro, DI cluster, safety vs security), and configures CLAUDE.md or AGENTS.md to force-trigger skills in a project (/golang-how-to configure). Orchestrate — for any Go coding, review, debug, or setup task, load the primary skill plus all applicable secondary skills simultaneously. Disambiguate — when two skills seem to overlap, show the boundary table. See disambiguation.md.

What does golang-how-to require?

Dependencies: gopls — go install golang.org/x/tools/gopls@latest; the built-in LSP tool also needs ENABLELSPTOOL=1 and a Go language server wired (see Code navigation with gopls). Configuration keys: ENABLE_LSP_TOOL, CLAUDE, AGENTS.

How do I install golang-how-to?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-how-to --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-how-to?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-how-to on getagentictools
[![golang-how-to on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-how-to.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-how-to?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-how-to

The second line is the CLI lookup for this page — handy in READMEs and docs.