Skip to main content

โ† All sources

cc-skills-golang skills

๐Ÿง‘โ€๐ŸŽจ A collection of Golang agentic skills that works 46 skills. skills-hub.ai mirrors 46 skills from cc-skills-golang daily, every skill links back to its upstream GitHub source. Install with one command across Claude Code, Cursor, Codex, Windsurf, and any MCP-compatible tool.

Upstream: github.com/samber/cc-skills-golang

Installing a cc-skills-golang skill

Pick a skill below, then run the install command for your AI coding tool. The skills-hub CLI writes the SKILL.md to the right directory and tracks the install in .skills.json so your team gets reproducible installs.

# Install a cc-skills-golang skill
npx @skills-hub-ai/cli install <skill-slug>

# Browse all cc-skills-golang skills via API
curl https://skills-hub.ai/api/v1/skills?source=cc-skills-golang

# Browse all sources
open https://skills-hub.ai/sources

Top cc-skills-golang skills

See all โ†’

The most-installed skills from cc-skills-golang, ranked by adoption.

  1. 01golang-database

    3 installs

    Comprehensive guide for Go database access โ€” parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context propagation, and migration tooling. Use when writing, reviewing, or debugging Golang code that interacts with PostgreSQL, MariaDB, MySQL, or SQLite; for database testing; or for questions about database/sql, sqlx, or pgx. Does NOT generate database schemas or migration SQL.

    Buildfrom cc-skills-golang
  2. 02golang-code-style

    2 installs

    Golang code style conventions โ€” line length and breaking, variable declarations, control flow clarity, when comments help vs hurt. Use when writing or reviewing Go code, asking about style or clarity, or establishing project coding standards. Not for naming conventions (โ†’ See `samber/cc-skills-golang@golang-naming` skill), linter configuration (โ†’ See `samber/cc-skills-golang@golang-lint` skill), or doc comments (โ†’ See `samber/cc-skills-golang@golang-documentation` skill).

    Buildfrom cc-skills-golang
  3. 03golang-benchmark

    2 installs

    Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with Prometheus runtime metrics. Also use when the developer needs deep analysis on a specific performance indicator - this skill provides the measurement methodology, while `samber/cc-skills-golang@golang-performance` provides the optimization patterns.

    Buildfrom cc-skills-golang
  4. 04golang-samber-mo

    2 installs

    Monadic types for Golang using samber/mo โ€” Option, Result, Either, Future, IO, Task, and State types for type-safe nullable values, error handling, and functional composition with pipeline sub-packages. Apply when using or adopting samber/mo, when the codebase imports `github.com/samber/mo`, or when considering functional programming patterns as a safety design for Golang. Not for nil-safety and zero-value design without this library (โ†’ See `samber/cc-skills-golang@golang-safety` skill), nor for native error wrapping with fmt.Errorf, errors.Is and errors.As (โ†’ See `samber/cc-skills-golang@golang-error-handling` skill).

    Buildfrom cc-skills-golang
  5. 05golang-documentation

    2 installs

    Comprehensive documentation guide for Golang projects, covering godoc comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests, API docs, and llms.txt. Use when writing or reviewing doc comments, documentation, adding code examples, setting up doc sites, or discussing documentation best practices. Triggers for both libraries and applications/CLIs.

    Buildfrom cc-skills-golang
  6. 06golang-testing

    2 installs

    Production-ready Golang tests โ€” table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky/slow tests. For testify-specific APIs see `samber/cc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber/cc-skills-golang@golang-benchmark`.

    Buildfrom cc-skills-golang
  7. 07golang-naming

    1 installs

    Go (Golang) naming conventions โ€” covers packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters/setters, functional options, acronyms, test functions, and subtest names. Use this skill when writing new Go code, reviewing or refactoring, choosing between naming alternatives (New vs NewTypeName, isConnected vs connected, ErrNotFound vs NotFoundError, StatusReady vs StatusUnknown at iota 0), debating Go package names (utils/helpers anti-patterns), or asking about Go naming best practices. Also trigger when the user mentions MixedCaps vs snake_case, ALL_CAPS constants, Get-prefix on getters, or error string casing. Do NOT use for general Go implementation questions that don't involve naming decisions.

    Buildfrom cc-skills-golang
  8. 08golang-lint

    1 installs

    Linting best practices and golangci-lint configuration for Golang projects โ€” running linters, configuring .golangci.yml, suppressing warnings with nolint directives, interpreting lint output, and selecting linters. Use when configuring golangci-lint, asking about lint warnings or nolint suppressions, setting up code quality tooling, or choosing linters. Also use when the user mentions golangci-lint, go vet, staticcheck, or revive. Not for wiring a lint step into a GitHub Actions pipeline (โ†’ See `samber/cc-skills-golang@golang-continuous-integration` skill).

    Buildfrom cc-skills-golang
  9. 09golang-grpc

    1 installs

    Provides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gRPC servers/clients, writing proto files, setting up interceptors, handling gRPC errors with status codes, configuring TLS/mTLS, testing with bufconn, or working with streaming RPCs.

    Buildfrom cc-skills-golang
  10. 10golang-popular-libraries

    Golang library and framework selection โ€” vetted production-ready options by category (web, database, testing, logging, messaging), new and experimental stdlib packages, standard-library-first tradeoffs, and maturity signals (maintenance, license, importer counts). Apply when the user asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when a new dependency is being added to the project. Not for a specific library's API once chosen (โ†’ See that library's dedicated skill, e.g. `samber/cc-skills-golang@golang-samber-lo`), nor for go.mod mechanics, upgrades, or vulnerability audits (โ†’ See `samber/cc-skills-golang@golang-dependency-management` skill).

    Buildfrom cc-skills-golang
  11. 11golang-spf13-viper

    Golang configuration library using spf13/viper โ€” layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload, viper.New() for test isolation, and remote KV integration. Apply when using or adopting spf13/viper, or when the codebase imports `github.com/spf13/viper`. For CLI command structure alongside viper, see the `samber/cc-skills-golang@golang-spf13-cobra` skill. For general CLI architecture, see `samber/cc-skills-golang@golang-cli`.

    Buildfrom cc-skills-golang
  12. 12golang-troubleshooting

    Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, races, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (โ†’ See `samber/cc-skills-golang@golang-benchmark` skill), applying optimization patterns (โ†’ See `samber/cc-skills-golang@golang-performance` skill), or designing new code (โ†’ See `samber/cc-skills-golang@golang-safety` skill for defensive coding, `samber/cc-skills-golang@golang-concurrency` skill for concurrency design).

    Buildfrom cc-skills-golang
  13. 13golang-stretchr-testify

    Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify.

    Buildfrom cc-skills-golang
  14. 14golang-how-to

    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 the project's agent-config file (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, or Copilot instructions) to force-trigger skills in a project (/golang-how-to configure).

    Buildfrom cc-skills-golang
  15. 15golang-data-structures

    Golang data structures โ€” slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buckets, maps package), arrays, container/list/heap/ring, strings.Builder vs bytes.Buffer, generic collections, pointers (unsafe.Pointer, weak.Pointer), and copy semantics. Use when choosing or optimizing Go data structures, implementing generic containers, using container/ packages, unsafe or weak pointers, or questioning slice/map internals. Not for applying optimization patterns once profiling has identified a bottleneck (โ†’ See `samber/cc-skills-golang@golang-performance` skill).

    Buildfrom cc-skills-golang
  16. 16golang-samber-oops

    Structured error handling in Golang with samber/oops โ€” error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports github.com/samber/oops.

    Buildfrom cc-skills-golang
  17. 17golang-observability

    Golang everyday observability โ€” the always-on signals in production. Covers structured logging with slog, Prometheus metrics, OpenTelemetry distributed tracing, continuous profiling with pprof/Pyroscope, server-side RUM event tracking, alerting, and Grafana dashboards. Apply when instrumenting Go services for production monitoring, setting up metrics or alerting, adding OpenTelemetry tracing, correlating logs with traces, migrating legacy loggers (zap/logrus/zerolog) to slog, adding observability to new features, or implementing GDPR/CCPA-compliant tracking with Customer Data Platforms (CDP). Not for temporary deep-dive performance investigation (โ†’ See `samber/cc-skills-golang@golang-benchmark` and `samber/cc-skills-golang@golang-performance` skills).

    Buildfrom cc-skills-golang
  18. 18golang-safety

    Defensive Golang coding against accidental bugs โ€” nil panics, typed-nil interfaces, `append` backing-array aliasing, silent int64-to-int32 truncation, float `==` comparison, `defer` inside loops, defensive copies of slices and maps, and usable zero values. Use when a Go program panics on a nil map write or nil pointer dereference, when reviewing code for nil-safety, numeric conversion overflow, or resource lifecycle, or when designing a type whose zero value must be safe. Not for designing concurrent access with goroutines, channels, or sync primitives (โ†’ See `samber/cc-skills-golang@golang-concurrency` skill), not for exploitable vulnerabilities such as injection, weak crypto, or leaked secrets (โ†’ See `samber/cc-skills-golang@golang-security` skill), and not for debugging an already-failing program (โ†’ See `samber/cc-skills-golang@golang-troubleshooting` skill).

    Buildfrom cc-skills-golang
  19. 19golang-cli

    Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool โ€” especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave/cli. For cobra-specific APIs โ†’ See `samber/cc-skills-golang@golang-spf13-cobra` skill; for viper configuration layering โ†’ See `samber/cc-skills-golang@golang-spf13-viper` skill.

    Buildfrom cc-skills-golang
  20. 20golang-pkg-go-dev

    Golang package and module lookup via `godig`, a pkg.go.dev API client (CLI + MCP server). Use for any Go/Golang library's documentation, API signatures, symbols, usage examples, which versions exist, licenses, whether a dependency has CVEs, or who imports a package โ€” prefer this over Context7 for any Go package or module. Read-only, no auth. Not for upgrading dependencies (โ†’ See `samber/cc-skills-golang@golang-dependency-management` skill), choosing a library (โ†’ See `samber/cc-skills-golang@golang-popular-libraries` skill), or local symbols and an already-used dependency's resolved source, call sites, and generic instantiations (โ†’ See `samber/cc-skills-golang@golang-gopls` skill).

    Buildfrom cc-skills-golang
  21. 21golang-design-patterns

    Idiomatic Golang design patterns โ€” functional options, constructor APIs, `init()` and global-state avoidance, enums, panic vs error decisions, resource management and lifecycle, graceful shutdown, timeouts and retries, streaming and iterators, and architecture styles (clean, hexagonal, DDD, flat). Apply when choosing between architectural patterns, implementing functional options, designing constructor APIs, setting up graceful shutdown, applying resilience patterns, or asking which idiomatic Go pattern fits a specific problem. Not for wiring a DI container or comparing DI libraries (โ†’ See `samber/cc-skills-golang@golang-dependency-injection` skill), nor for error wrapping, `errors.Is`/`As`, or logging mechanics (โ†’ See `samber/cc-skills-golang@golang-error-handling` skill).

    Buildfrom cc-skills-golang
  22. 22golang-spf13-cobra

    Golang CLI command tree library using spf13/cobra โ€” cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page and markdown doc generation, and testing with SetArgs/SetOut/SetErr. Apply when using or adopting spf13/cobra, or when the codebase imports `github.com/spf13/cobra`. For configuration layering alongside cobra, see the `samber/cc-skills-golang@golang-spf13-viper` skill. For general CLI architecture (project layout, exit codes, signal handling, I/O patterns), see `samber/cc-skills-golang@golang-cli`.

    Buildfrom cc-skills-golang
  23. 23golang-refactoring

    Golang refactoring โ€” safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, `gofmt -r`, `gopatch`), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code smell blocks a feature, or the user asks to refactor Go code โ€” also for renaming at scale, extracting functions or interfaces, moving code between packages, or planning a multi-step refactor. Target styles owned elsewhere โ†’ See `samber/cc-skills-golang@golang-naming` (renames), `samber/cc-skills-golang@golang-project-layout` (splits), `samber/cc-skills-golang@golang-modernize` (idioms), `samber/cc-skills-golang@golang-code-style` (control flow), `samber/cc-skills-golang@golang-design-patterns` (patterns/DI).

    Buildfrom cc-skills-golang
  24. 24golang-uber-fx

    Golang application framework using uber-go/fx โ€” fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports `go.uber.org/fx`, or when wiring services with fx.New. For raw DI without lifecycle, see `samber/cc-skills-golang@golang-uber-dig` skill.

    Buildfrom cc-skills-golang

About this source

skills-hub.ai mirrors skills from 300+ official GitHub repositories every day. Each imported skill is parsed from a SKILL.md file in the source repo, gets a security scan and quality score on import, and links back to its upstream source of truth.

Last sync: Nov 22, 2026, 5:48 PM (success).

cc-skills-golang skills, frequently asked

What are cc-skills-golang skills?

cc-skills-golang skills are AI coding skills published by cc-skills-golang (๐Ÿง‘โ€๐ŸŽจ A collection of Golang agentic skills that works 46 skills.) and mirrored daily on skills-hub.ai. They are SKILL.md files that follow the open Agent Skills standard, so they work in Claude Code, Cursor, Codex CLI, Windsurf, Copilot, and any MCP-compatible tool.

How many cc-skills-golang skills are available?

skills-hub.ai indexes 46 skills from cc-skills-golang, synced daily from the upstream GitHub repository (https://github.com/samber/cc-skills-golang).

How do I install a cc-skills-golang skill?

Run `npx @skills-hub-ai/cli install <skill-slug>` in your project. The CLI writes the SKILL.md to the right directory for your AI tool and adds it to your `.skills.json` lockfile so your team gets the same skills at the same versions.

Are these official cc-skills-golang skills?

Yes. Every skill from this source is mirrored from cc-skills-golang's own GitHub repository (https://github.com/samber/cc-skills-golang). Each skill page links back to the upstream source of truth, so you can verify the original.