Install
$ agentstack add skill-caraya-agent-skills-go-performance ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Go Performance
Use When
- Profiling Go applications for CPU, memory, goroutine, or allocation issues.
- Analyzing lock contention and goroutine efficiency.
- Benchmarking and optimizing hot paths.
Profiling Tools
- Benchmarking
go test -bench=. -benchmemto run benchmarks and show memory allocations.go test -bench=. -cpuprofile=cpu.profto profile benchmark execution.go tool pprof cpu.profto analyze the profile interactively.
- Runtime profiling (pprof)
- Add
import _ "net/http/pprof"to enable profiling endpoint. - Access profiles at
http://localhost:6060/debug/pprof/. - CPU profile:
go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30. - Heap:
go tool pprof http://localhost:6060/debug/pprof/heap. - Goroutines:
curl http://localhost:6060/debug/pprof/goroutine.
- Memory and allocation analysis
go test -bench=. -memprofile=mem.profthengo tool pprof mem.prof.- Look for alloc bytes vs. bytes in use; high alloc suggests GC pressure.
Checklist
- CPU and hot paths
- Profile to identify bottleneck functions (top of call graph).
- Check for unnecessary allocations or repeated computations in hot paths.
- Verify algorithm complexity is appropriate (avoid O(n²) operations).
- Memory and allocation
- High allocation count in benchmarks suggests unnecessary allocations.
- Use sync.Pool for frequently allocated/freed objects.
- Preallocate slices and maps when size is known.
- Goroutine efficiency
- Check goroutine count at rest vs. under load; look for leaks.
- Use
-raceflag to detect concurrent access to shared memory. - Verify goroutine cleanup on application shutdown.
- Lock contention
- Profile with mutex contention tracking: use
pprofand look forsync.Mutex.Lockin call graph. - If high contention, consider finer-grained locking or lock-free data structures.
- Use
RWMutexif read-heavy;sync.Mapfor concurrent map access.
- Channel and concurrency patterns
- Avoid goroutine-per-request at scale; use worker pools.
- Ensure channels are properly closed; leaking goroutines waits on closed channels.
Output Requirements
For each finding provide:
- Measurement (benchmark results, baseline latency/memory).
- Profiling evidence (goroutine count, CPU profile, allocation trace).
- Root cause (algorithm, allocation, lock, goroutine leak).
- Optimization strategy and expected improvement (e.g., "Reduce allocations by X%").
- Effort and risk assessment.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caraya
- Source: caraya/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.