Profile cpu
Use when the user wants to profile Go CPU performance, run benchmarks, or analyze CPU hotspots. Trigger on phrases "profile", "cpu performance", "pprof cpu", "benchmark", "cpu profiling". Runs go test -bench and opens pprof web UI.From its SKILL.md
npx -y skills add athapong/go-checker --skill profile-cpuAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, as published. Nobody here has run it
Profile CPU performance in a Go repository using go test and pprof.
- Run the go-tool-installer agent to verify the environment.
- Determine package scope: use argument if provided, otherwise
./.... - Run the CPU profile script with default bench pattern
.:bash "$(ls ~/.claude/plugins/cache/athapong-go-checker/go-checker/*/scripts/profile-cpu.sh 2>/dev/null | head -1)" [package] [bench-pattern] - Check output:
- If output contains
NO_PROFILE_GENERATED: no benchmarks exist. Ask the user:"No benchmarks found in [package]. To profile, I need either: (a) A bench pattern — which benchmark function to run? (e.g. BenchmarkMyFunc) (b) A compiled binary path — provide the path to run with pprof directly" Then wait for user input and re-run with their specified flags.
- If
cpu.profwas generated: pprof web UI opens at http://localhost:8080. Tell the user to open that URL and press Ctrl+C in the terminal when done.
- If output contains
- Tell the user raw benchmark output was saved to
./go-checker-reports/profile-cpu-<timestamp>.txt.