whatisgithub

What is chao-go-perf?

smallnest/chao-go-perf — explained in plain English

Analysis updated 2026-05-18

36Audience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A Claude Code skill packaging expert Go performance tuning advice covering profiling, memory, compiler, and concurrency optimization.

Mindmap

mindmap
  root((chao-go-perf))
    What it does
      Go performance skill
      Claude Code plugin
    Tech stack
      Go
      pprof
      Compiler flags
    Use cases
      CPU profiling
      Memory tuning
      Concurrency review
    Audience
      Go developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Diagnose CPU and memory bottlenecks in a Go program using pprof.

USE CASE 2

Get guidance on reducing GC pressure and memory allocations in Go code.

USE CASE 3

Learn how to choose the right locking strategy for concurrent Go code.

What is it built with?

GopprofClaude Code

How does it compare?

smallnest/chao-go-perf28998306/magicalcanvasaaaa-zhen/siri-glsl
Stars363636
LanguageTypeScriptHTML
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedevelopergeneraldesigner

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Chao Go Perf is a skill file made for AI coding agents, specifically ones that work inside Claude Code. It packages together the kind of advice a Go performance expert would give, drawn from Dave Cheney's high performance Go workshop, the go-perfbook by dgryski, Effective Go, and the Go 101 Optimizations guide. The skill covers diagnosing bottlenecks: reading CPU profiles and flame graphs, finding memory allocation hot spots through escape analysis, watching garbage collector pressure with GODEBUG and GOMEMLIMIT settings, detecting lock contention with mutex profiles, and checking how well code scales across goroutines with the race detector and trace tool. It also covers memory optimization techniques such as escape analysis flags, pre allocating slices and maps, using strings.Builder instead of repeated string concatenation, reusing objects with sync.Pool, and rearranging struct fields to reduce padding. On the compiler side it explains bounds check elimination, inlining decisions, and how to visualize what the compiler is doing with GOSSAFUNC. Other sections cover CPU cache behavior, including false sharing and data layout choices between array of structs and structure of arrays, plus branch prediction friendly code. For concurrency, it walks through choosing between Mutex, RWMutex, atomic operations, and sync.Map, along with sharded locks and channel versus mutex tradeoffs. To use it, a person clones the repository into their Claude Code skills folder or installs it with a package command, then either lets it trigger automatically during a conversation about Go performance topics or calls it directly. It is meant for developers already writing Go who want expert level guidance on making their programs faster, not for beginners learning the language for the first time. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Install the chao-go-perf skill and use it to analyze CPU hotspots in my Go service.
Prompt 2
Use chao-go-perf to help me reduce memory allocations in this Go function.
Prompt 3
Ask chao-go-perf how to fix false sharing in my Go struct layout.
Prompt 4
Have chao-go-perf review my Go benchmark and suggest sync.Pool usage.

Frequently asked questions

What is chao-go-perf?

A Claude Code skill packaging expert Go performance tuning advice covering profiling, memory, compiler, and concurrency optimization.

What license does chao-go-perf use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is chao-go-perf to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is chao-go-perf for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.