Skip to content
Skill

Go performance review

Guides an agent through profiling and optimizing Go code with benchmarks and pprof

Go performance review is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
90
Last commit
License
MIT
Listing updated

Similar skills

About Go performance review

This skill helps an agent find and fix performance problems in Go code. It is built around a measure-first loop: name a target, benchmark the isolated path, profile to find the cause, change one thing, and confirm the gain with benchstat before keeping it. The guidance covers allocation reduction, hot-path choices, map sizing, benchmark setup with b.Loop, CPU, heap, goroutine and trace profiling, GOGC and GOMEMLIMIT tuning, PGO, and HTTP client and body handling.

The skill also carries a table of common anti-patterns with suggested fixes, such as preallocating slices, reusing HTTP clients, streaming bodies instead of reading them whole, and compiling regexps once. It repeatedly warns against optimizing code that a benchmark has not shown to be a bottleneck, and asks for a gain of more than 10% before a change is accepted. Detailed material on benchmarking, profiling, memory and I/O, runtime tuning and logging sits in separate reference files that the agent reads on demand.

The skill expects a Go project with the Go toolchain available, and it may run go, gofmt and benchstat commands. Concurrency correctness and general style are handled by other skills in the same repository.

When your agent uses it

Detect performance anti-patterns and apply optimization techniques in Go. Covers allocations, benchmarks and benchstat, pprof and traces, GC and GOMEMLIMIT tuning, PGO, and HTTP client reuse. Use when checking performance, finding slow code, reducing allocations, profiling, or reviewing hot paths. Trigger examples: "check performance", "find slow code", "reduce allocations", "benchmark this", "profile", "optimize Go code". Not for: concurrency correctness (go-concurrency-review), general style (go-coding-standards).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (28 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

What it does

Measure-first optimization cycle
A step-by-step loop that sets a target, benchmarks, profiles, changes one thing and re-measures.
Allocation reduction patterns
Guidance on preallocating slices and maps, using strings.Builder, and spotting hidden heap escapes.
Benchmark authoring
Benchmark shape using b.Loop and ReportAllocs, with repeated runs compared via benchstat.
Profiling guide
Maps symptoms such as high CPU or lock contention to the right pprof, block, mutex or trace profile.
Runtime tuning
Advice on GOMEMLIMIT in containers, GOMAXPROCS, and committing a default.pgo profile for PGO.
HTTP client and I/O review
Covers shared clients with timeouts, connection pool sizing, body draining and streaming decodes.

Good for

  • Find why a Go service's CPU usage is high and suggest fixes
  • Reduce allocations in a parsing function and prove it with a benchmark
  • Compare two benchmark runs and check whether the change is significant
  • Review HTTP client code for connection reuse and missing timeouts
  • Set GOMEMLIMIT for a Go service running in a container

Go performance review FAQ

What does the skill need to run?

The Go toolchain. benchstat is optional and used for comparing benchmark runs.

Does Go performance review change code automatically?

It is allowed to read, edit and write files and run go, gofmt and benchstat commands, and it works one change at a time with measurements.

When should Go performance review be used instead of a general style check?

Concurrency correctness is handled by a separate concurrency review skill and general style by a coding standards skill.

Does Go performance review apply optimizations to all code?

No. It states that most Go code is not performance-critical and only applies optimizations when a benchmark shows a bottleneck with a gain above 10% and readable results.

Does Go performance review run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Go performance review?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Go performance review?

The closest alternatives to Go performance review are M10 performance, Performance reasoning, Optimize, Go test quality and Performance audit edho ferdian.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from eduardo-sl/go-agent-skills

  1. Guides Go agents in designing HTTP REST APIs, handlers, middleware and shutdown

    • Open source
    • 90 GitHub stars
    • Developer tools
  2. Reviews Go project structure, dependency direction and module boundaries

    • Open source
    • 90 GitHub stars
    • Developer tools
  3. Guides an AI agent to build Go command-line tools with clean flags, streams and exit codes

    • Open source
    • 90 GitHub stars
    • Developer tools
  4. Guides Go code toward constructor injection, explicit wiring and no global state

    • Open source
    • 90 GitHub stars
    • Developer tools
  5. Guides Go code toward idiomatic design patterns like functional options and factories

    • Open source
    • 90 GitHub stars
    • Developer tools
  6. Guides building Go GraphQL servers with gqlgen, covering N+1 batching and query limits

    • Open source
    • 90 GitHub stars
    • Developer tools