Go skills by samber

cc-skills-golang

Over forty Go skills: style, errors, concurrency, testing, security, performance and popular libraries

SkillEditors’ pickMedium risk

samber/cc-skills-golang

Install

npx skills add https://github.com/samber/cc-skills-golang --all

For one skill replace --all with --skill golang-performance.

This is third-party code. Review the repository files before installing.

What it does

The set comes from the author of samber/lo and samber/do, distilled from his project commits and reworked by hand. General skills cover style and naming, error handling, safety, concurrency and context, databases, testing, benchmarks with pprof and benchstat, observability, modernizing for newer Go versions and safe refactoring. Library skills cover gRPC, GraphQL, Swagger, cobra, viper, testify, wire, dig, fx and the samber libraries. Skills cross-reference each other, so the author recommends installing the general set as a whole.

Who it is for. For Go developers who want idiomatic agent-written code in production projects.

Good fit when

  • The agent writes Go code that must follow consistent conventions
  • You need to find bottlenecks via benchmarks and profiling
  • You need a security review or modernization of old Go code

Not a fit when

  • The project is not in Go
  • You need language-agnostic skills for git, CI and PR reviews: the author keeps those in cc-skills

Example request

Write a benchmark for the parser, capture a pprof profile and compare results before and after optimizing

Limitations

The full set uses a lot of context when several skills trigger. Some skills expect go, golangci-lint or benchstat installed. Some guidance reflects the author's preferences and may differ from team rules, although several skills are overridable.

How to disable. Uninstall the plugin via /plugin in Claude Code, the extension via gemini extensions uninstall, or delete the cc-skills-golang folder from the skills directory.

Security check

  • Skills allow the agent to run go, golangci-lint and git in the project
  • Some skills fetch documentation from the web

README in short

The README stresses that the skills began as distilled commits but were reviewed and rewritten by a human. It gives install paths via skills CLI, a Claude Code plugin, a Gemini CLI extension and copying for Cursor, Copilot, OpenCode, Codex and Antigravity. Skills are grouped into code quality, architecture, QA and performance, project start and libraries, each with its token weight. An evaluation summary compares runs with and without skills. MIT licensed.

SKILL.md

---
name: golang-benchmark
description: "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."
user-invocable: true
license: MIT
compatibility: Designed for Claude Code, Codex or similar harness, and for projects using Golang.
metadata:
  author: samber
  version: "1.3.2"
  openclaw:
    homepage: https://github.com/samber/cc-skills-golang
    requires:
      bins:
        - go
        - benchstat
    install:
      - kind: go
        package: golang.org/x/perf/cmd/benchstat@latest
        bins: [benchstat]
allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch Bash(benchstat:*) Bash(benchdiff:*) Bash(cob:*) Bash(gobenchdata:*) Bash(curl:*) mcp__context7__resolve-library-id mcp__context7__query-docs WebSearch AskUserQuestion EnterWorktree ExitWorktree
paths:
  - "**/*.go"
---

**Persona:** You are a Go performance measurement engineer. You never draw conclusions from a single benchmark run — statistical rigor and controlled conditions are prerequisites before any optimization decision.

**Dependencies:**

- benchstat: `go install golang.org/x/perf/cmd/benchstat@latest`

# Go Benchmarking & Performance Measurement

Performance improvement does not exist without measures — if you can measure it, you can improve it.

FAQ

Can I install only some skills?

Yes, with --skill, but skills reference each other and a partial set gives an incomplete view of the rules.

Is there evidence they help?

The repository has EVALUATIONS.md with results of runs with and without the skills.

Editors’ pick

The official FastAPI skill, bundled with the package, teaching agents to write code for the installed version

SkillLow risk102.3K
Editors’ pick

Official skills and agents from the .NET team: performance, MSBuild, NuGet, upgrades, testing, ASP.NET Core, Blazor and MAUI

PluginMedium risk5.4K

Firebase MCP Server

Firebase CLI and MCP Server

Editors’ pick

Official Firebase MCP server from the Firebase CLI: projects, Firestore, Auth, Crashlytics, Remote Config and function logs

MCP serverHigh risk4.5K
Editors’ pick

Laravel's official MCP server, guidelines and skills: the agent sees the DB schema, logs and package versions and searches ecosystem docs

MCP serverMedium risk3.6K