Golem add npm package

From golemcloud/golem · View interactive version

Golem add npm package is an AI agent skill from the GitHub repository golemcloud/golem. Add a new npm package dependency to a TypeScript Golem project. Use when the user asks to add a library, package, or dependency.

How to use this skill

Skill file

Add an NPM Package Dependency

Important constraints

runtime. It cannot create host processes or run a general shell. node:cluster, node:http2, and

node:worker_threads remain unsupported or stubbed.

Supported runtime APIs

Check the wasm-rquickjs README for the up-to-date list.

Steps

  1. Install the package

From the project root (where package.json is):

```shell

npm install <package-name>

```

For dev-only dependencies (build tools, type definitions):

```shell

npm install --save-dev <package-name>

```

  1. Build to verify

```shell

golem build --yes

```

Do NOT run npx rollup or npx tsc directly — always use golem build.

  1. If the build or runtime fails

Already available packages

These are already in the project's package.json — do NOT add them again:

The agent contract is described with a Standard Schema library. zod is used by the default template; valibot, arktype, and effect schemas are also supported — add whichever one your agents use if it is not already present.

HTTP requests

Use the built-in fetch API — it is available globally.

AI / LLM features

Use any third party AI/LLM library from npmjs.com, but it has to only depend on the _supported_ runtime APIs.

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.