Add a Scala Library Dependency
SkillDev toolsAdds a new library dependency to a Scala Golem project.
Use Add a Scala Library Dependency in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Add a Scala Library Dependency and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Add a Scala Library Dependency skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Add a new library dependency to a Scala Golem project. Use when the user asks to add a library, package, or dependency.
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/scala/golem-add-scala-dependency/SKILL.md and read by Ahel’s review.
Important constraints
- Golem Scala components compile to WebAssembly via Scala.js. Only Scala.js-compatible libraries will work.
- The artifact must be a Scala.js artifact — use the
%%%operator (triple percent) inbuild.sbtso sbt resolves the_sjs1_cross-published variant. - Libraries that depend on JVM-specific APIs (reflection,
java.io.File,java.net.Socket, threads, etc.) will not work. - Pure Scala libraries and libraries published for Scala.js generally work.
- If unsure whether a library supports Scala.js, add it and run
golem buildto find out.
Steps
-
Add the dependency to
build.sbtIn the component's
build.sbt, add the library underlibraryDependencies:libraryDependencies += "com.example" %%% "library-name" % "1.0.0"Use
%%%(not%%) to get the Scala.js variant of the library. -
Build to verify
golem build --yesDo NOT run
sbt compiledirectly — always usegolem build. -
If the build fails
- Check if the library publishes a Scala.js artifact. Look for
_sjs1_in the Maven/Sonatype listing. - Check for JVM-only dependencies in the transitive dependency tree.
- Look for an alternative library that supports Scala.js.
- Check if the library publishes a Scala.js artifact. Look for
Already available libraries
These are already in the project's build.sbt — do NOT add them again:
golem-scala-sdk— Golem agent framework, durability, transactionsscala-js-dom— DOM API bindings (if present)
HTTP and networking
Use the Golem SDK's HTTP client utilities. Standard JVM networking (java.net) is not available in Scala.js/WASM.
Signals
- GitHub stars
- 2k
- Forks
- 210
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
golem-add-scala-dependency- Source
- github.com/golemcloud/golem