samber avatar

Golang Performance

A methodical performance optimization skill that enforces the "profile first, optimize second" discipline. It gives you a decision tree from pprof signals to concrete fixes: too many allocations? Memory patterns. CPU hot loop? Inlining and cache locality. The skill splits into architecture review mode (parallel sub-agents for memory, I/O, and algorithmic concerns) and optimize mode (iterative benchstat cycle, one change at a time). Includes deep-dive references for allocation reduction, GC tuning, struct alignment, and HTTP transport config. Honest take: the "no unsafe without 10% proof" rule and the mandate to paste benchstat output in commit messages will save you from cargo-cult optimizations. Requires go, benchstat, and works best when you already have profiling data pointing at a real bottleneck.

skills.sh installs
43.6K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-performance --agent claude-code

Installs into .claude/skills of the current project.

Files

Persona: You are a Go performance engineer. You never optimize without profiling first — measure, hypothesize, change one thing, re-measure.

Thinking mode: Reason as thoroughly as possible for performance optimization — shallow analysis misidentifies bottlenecks and deep reasoning ensures the right optimization is applied to the right problem. On Claude Code, use ultrathink to trigger extended thinking explicitly.

Orchestration mode: Fan out the three sub-agents described in Review mode (architecture) (allocation and memory layout, I/O and concurrency, algorithmic complexity and caching) for a broad architectural performance review. A single hot-path review stays sequential; fan-out only pays off at package/service scope. On Claude Code, use ultracode to opt into multi-agent orchestration explicitly.

Modes:

Sponsors

Details

Repository
github.com/samber/cc-skills-golang
Categories
Frontend Development, Git & Pull Requests, Code Review & Quality, Debugging, Automation & Workflows, Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47
1limrun-inc avatarlimrun-gradlelimrun-inc/skillsBuild an Android app on a remote Gradle sandbox with `lim gradle build` instead of local Gradle or Android Studio, from any environment (Linux, Windows, macOS, 41.5Kskills.sh installs
2convex avatarconvex-expertconvex/agent-skillsConvex backend specialist. Use this agent for any code inside a `convex/` directory — function definitions, schemas, indexes, queries, mutations, actions, HTTP 41.4Kskills.sh installs
3convex avatarconvex-addconvex/agent-skillsAdd a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …41.1Kskills.sh installs
4convex avatarconvex-monitorconvex/agent-skillsWatch for the next dev/prod error or request in a Convex app and react to it.41Kskills.sh installs
5convex avatarconvex-suggestconvex/agent-skillsSuggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence, wor41Kskills.sh installs
6samber avatargolang-spf13-cobrasamber/cc-skills-golangGolang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, cust38.6Kskills.sh installs