Golem add go module

From golemcloud/golem · View interactive version

Golem add go module is an AI agent skill from the GitHub repository golemcloud/golem. 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.

How to use this skill

Skill file

Add a Go Module Dependency

Important constraints

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

Already available (do NOT re-add)

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

| Skill | When to Load |

|-------|--------------|

| golem-make-http-request-go | Call an external service over HTTP |

| golem-add-agent-go | Use a new dependency inside an agent |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.