AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Golang Best Practices

skill-belos-street-skill-kit-golang-best-practices · by belos-street

MUST be used for Go tasks. Covers Go 1.21+, standard library, Go modules, concurrency, performance optimization, testing, and WebAssembly (GOOS=js, GOARCH=wasm). Load for any .go files work.

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-belos-street-skill-kit-golang-best-practices

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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 No
  • 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-belos-street-skill-kit-golang-best-practices)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Golang Best Practices? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Go best practices, common gotchas, and performance optimization. Includes WebAssembly development.

Project & Package

  • Standard Go project layout → See [standard-go-project-layout](references/standard-go-project-layout.md)
  • Go modules and dependency management → See [go-mod-dependency-management](references/go-mod-dependency-management.md)
  • Go naming conventions → See [go-naming-conventions](references/go-naming-conventions.md)

Error Handling

  • Go-style error handling patterns → See [error-handling-patterns](references/error-handling-patterns.md)
  • Sentinel errors and error wrapping → See [error-sentinel-wrapping](references/error-sentinel-wrapping.md)
  • Recover and panic best practices → See [error-recover-panic](references/error-recover-panic.md)

Types & Memory

  • Value types vs pointers → See [value-type-vs-pointer](references/value-type-vs-pointer.md)
  • Understanding nil in Go → See [go-nil-handling](references/go-nil-handling.md)
  • Memory management and GC → See [memory-management-gc](references/memory-management-gc.md)
  • Escape analysis → See [escape-analysis](references/escape-analysis.md)

Concurrency

  • Goroutine lifecycle management → See [goroutine-lifecycle](references/goroutine-lifecycle.md)
  • Channel patterns → See [channel-patterns](references/channel-patterns.md)
  • Sync primitives (Mutex, RWMutex, Atomic) → See [sync-primitives](references/sync-primitives.md)
  • Common concurrency pitfalls → See [concurrency-pitfalls](references/concurrency-pitfalls.md)

Interfaces

  • Interface design principles → See [interface-design](references/interface-design.md)
  • Dependency injection → See [dependency-injection](references/dependency-injection.md)
  • Interface and nil → See [interface-nil](references/interface-nil.md)

Performance

  • String and []byte optimization → See [string-byte-optimization](references/string-byte-optimization.md)
  • Slice tips and tricks → See [slice-optimization](references/slice-optimization.md)
  • Map optimization → See [map-optimization](references/map-optimization.md)
  • Profiling with pprof → See [pprof-usage](references/pprof-usage.md)

Testing

  • Table-driven tests → See [table-driven-tests](references/table-driven-tests.md)
  • Mocking techniques → See [go-mocking](references/go-mocking.md)
  • Benchmarking → See [benchmarking](references/benchmarking.md)

Tooling

  • Linting and formatting → See [linting-formatting](references/linting-formatting.md)
  • Documentation with godoc → See [godoc-best-practices](references/godoc-best-practices.md)
  • Build tags and conditional compilation → See [build-tags](references/build-tags.md)

WebAssembly

  • WASM basics and compilation → See [wasm-basics](references/wasm-basics.md)
  • JS interop with wasm_exec → See [wasm-js-interop](references/wasm-js-interop.md)
  • DOM manipulation → See [wasm-dom-manipulation](references/wasm-dom-manipulation.md)
  • Memory management in WASM → See [wasm-memory-management](references/wasm-memory-management.md)
  • Callbacks and async → See [wasm-callbacks-async](references/wasm-callbacks-async.md)
  • WASM performance considerations → See [wasm-performance](references/wasm-performance.md)
  • Debugging WASM → See [wasm-debugging](references/wasm-debugging.md)
  • Practical WASM use cases → See [wasm-use-cases](references/wasm-use-cases.md)

Common Gotchas

  • Loop variable closure → See [loop-variable-closure](references/loop-variable-closure.md)
  • Slice append behavior → See [slice-append-behavior](references/slice-append-behavior.md)
  • time.After memory leak → See [time-after-leak](references/time-after-leak.md)
  • HTTP client timeouts → See [http-client-timeouts](references/http-client-timeouts.md)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.