golemcloud/golem/golem-add-go-module

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Add a Go module dependency to a Go Golem project. Use when the user asks to add a library, package, module, or dependency in Go.

Install

npx vskill@latest install golemcloud/golem/golem-add-go-module

SKILL.md

Add a Go Module Dependency

Important constraints

  • The component compiles to a WebAssembly component (WASI) via componentize-go — only code that works on that target will build.
  • Modules that use OS threads, raw sockets (net.Dial), most database drivers, cgo, or platform-specific syscalls will not work.
  • Pure-Go modules, and modules that do I/O through the standard library the SDK adapts (e.g. HTTP via net/http), generally work.
  • If unsure whether a module builds for WASM, add it and run golem build to find out.

Steps

  1. Add the dependency in the component's module directory (where its go.mod lives):

``shell go get github.com/example/mod@latest ``

Then import and use it in your code. go get records it in go.mod.

  1. Build to verify

``shell golem build --yes ``

golem build runs go mod tidy for you before compiling. Do NOT rely on a bare go build for the component — it can't link the WASI component; always use golem build.

  1. If the build fails
  • Look for wasip1/wasm-unsupported errors, references to net, syscall, or C dependencies — those modules are incompatible with the WASM target.
  • Check whether the module offers a pure-Go or wasm build mode/build tag.
  • Look for an alternative module that supports WASM.

Already available (do NOT re-add)

  • github.com/golemcloud/golem/sdks/go/golem — the Golem Go SDK (agents, durability, RPC, retry, config/secrets, keyvalue/blobstore/rdbms/websocket, logging). Its subpackages (.../golem/retry, .../golem/keyvalue, etc.) are part of the same module.
  • github.com/bytecodealliance/componentize-go — pinned as a `tool` dependency in go.mod so go tool componentize-go runs the pinned version. Leave the tool directive in place; don't remove it.

HTTP and networking

Use the standard net/http package — the SDK routes it through the durable WASI HTTP transport (see golem-make-http-request-go). Raw sockets (net.Dial, crypto/tls over a custom conn) are not available on the WASM target.

Related Skills
SkillWhen to Load
golem-make-http-request-goCall an external service over HTTP
golem-add-agent-goUse a new dependency inside an agent

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,514
Repository forks
210
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/golemcloud/golem/golem-add-go-module/badge)](https://verified-skill.com/skills/golemcloud/golem/golem-add-go-module)

Something wrong with this skill or its page? Tell us.