What problem does it solve?
Adding third-party libraries to a Golem Scala project is error-prone because components compile to WebAssembly via Scala.js, so only Scala.js-compatible artifacts work. This Skill guides the correct way to declare dependencies and verify them.
Core Features & Use Cases
- Correct dependency declaration: Adds libraries to
build.sbt using the %%% operator so sbt resolves the _sjs1_ Scala.js cross-published variant instead of the JVM artifact.
- Build verification: Runs
golem build --yes (never sbt compile directly) to confirm the library compiles to WebAssembly.
- Failure diagnosis: Helps identify missing Scala.js artifacts, JVM-only transitive dependencies, and suggests Scala.js-compatible alternatives.
- Use Case: When you want to add an HTTP or utility library to a Golem Scala agent, this Skill ensures you pick a Scala.js-published version and avoid JVM-only APIs like
java.net or reflection.
Quick Start
Add the Scala.js-compatible library I need to my Golem Scala project's build.sbt and verify it with golem build.