golang-how-to

Orchestrates loading of relevant Go skills for coding, review, debugging, and setup tasks.

1|Updated May 25, 2020
One-click install
npx skills add https://github.com/titaneric/dotfiles --skill golang-how-to-titaneric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-how-to
Source: https://github.com/titaneric/dotfiles/tree/main/dot_agents/skills/golang-how-to
Command: npx skills add https://github.com/titaneric/dotfiles --skill golang-how-to-titaneric

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gopls, and includes references (resource) components.

What problem does it solve? Go developers using AI coding agents often don't know which of the 42 available Go skills apply to a given task, and overlapping skills (performance vs benchmark vs troubleshooting, lo vs mo vs ro, the DI libraries) create ambiguity. This Skill acts as an orchestrator that reads the task context and loads the right combination of skills from samber/cc-skills-golang at once. ## Core Features & Use Cases - Skill orchestration: Maps task intents (gRPC service, panic debugging, security audit, refactoring) to a primary skill plus all applicable secondary skills, loaded together. - Disambiguation: Provides boundary tables for 13 competing skill clusters so the correct skill is chosen when two seem to overlap. - Tool routing: Clarifies when to use godig vs gopls vs Context7 vs govulncheck for dependency and vulnerability questions. - Configure mode: Adds a ## Required Go skills block to a project's CLAUDE.md or AGENTS.md so chosen skills always load. - Use Case: When asked to build a gRPC service, the agent automatically loads golang-grpc, golang-testing, and golang-error-handling together instead of guessing a single skill. ## Quick Start Ask the agent to help with any Go task such as debugging a panic or setting up a new project, and it will load the matching Go skills automatically.

Frequently Asked Questions about golang-how-to

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right Go skill for a coding task?

This orchestrator maps your task intent to a primary skill plus secondary skills loaded together. For example, building a gRPC service loads golang-grpc, golang-testing, and golang-error-handling simultaneously.

godig vs gopls vs govulncheck for Go dependency checks?

godig queries pkg.go.dev for published package facts like versions and CVEs. gopls reasons about your locally resolved build including replace directives. govulncheck performs whole-tree reachability audits for CI gates.

How do I force Go skills to always load in a project?

Invoke the configure mode, which adds a '## Required Go skills' block to the project's CLAUDE.md or AGENTS.md. It detects the config file, confirms the skill set with you, and writes the block idempotently.

Does this skill require gopls to be installed?

Yes, gopls is a dependency for semantic code navigation features like go-to-definition, references, and diagnostics. Install it with go install golang.org/x/tools/gopls@latest.

When should I use golang-performance vs golang-benchmark vs golang-troubleshooting?

golang-benchmark owns measurement with pprof and benchstat, golang-performance owns applying optimization patterns, and golang-troubleshooting owns root-cause debugging. The disambiguation reference provides full boundary tables and routing examples.