/sbt:sbtfrom sbt
Writes, edits and debugs sbt builds: build.sbt, project/*.sbt and project/build.properties, sbt 1 and sbt 2 command-line runs, slash keys such as Test/compile, dependency resolution and % or %% coordinates, eviction and version conflicts, cross-built Scala versions, multi-project builds and failing sbt tasks. Use when an sbt command errors with Expected whitespace character, Not a valid command or No such setting/task, when a test does not run or rerun under sbt, or when a build.sbt needs a dependency or cross-build change.
Ships in sbt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build and debug sbt projects on the version the project pins. Keep the published coordinates, test scope and task names unless the request changes them.
Not for: Scala language code (scala), Play applications (play-framework), Gradle or Maven builds (gradle, maven). Mill and Scala CLI builds are out of scope; mention them only to route.
project/build.properties. sbt.version decides the rules: 1.x or 2.x. If the file is missing, say so and ask before assuming a version.build.sbt, project/*.sbt and project/*.scala (the meta-build). Map the subprojects from lazy val declarations, .aggregate(...) and .dependsOn(...).scalaVersion, crossScalaVersions and libraryDependencySchemes before changing any dependency.sbt "core/testOnly com.example.FooSuite", before editing.inspect <key>.Pick the form by the version. Verified on 2026-10-20 against scala-sbt.org; details and sources in references/sbt2.md.
sbt clean compile test works.;-separated string: sbt "clean ; compile ; test". The bare form fails with Expected whitespace character.Test/compile and core/Test/compile. test:compile is rejected on sbt 2.test is incremental and cached. Use testFull for a full run and testOnly <suite> to force one suite.Compile/update fails with No such setting/task. Use the key that is defined.shutdown after changing environment variables. exit only leaves the client.Test / fork := true, core / Compile / scalacOptions += "-deprecation".build.sbt apply as common settings to every subproject. Scope them when only one project needs them.project/plugins.sbt with addSbtPlugin(...). Before adding a plugin to an sbt 2 build, check that it publishes an sbt 2 artifact.build.sbt or project/ change. On sbt 1 run reload after editing those files.Read references/dependencies.md when adding, upgrading, excluding or resolving a library, or when update fails. Essentials:
%% appends the binary Scala version (_2.13, _3); % does not; %%% covers Scala.js and Native.evicted and dependencyTree, not by reading the edited line. On sbt 1.4+, dependencyTree needs addDependencyTreePlugin in project/plugins.sbt; see references/dependencies.md for sbt 2.Read references/cross-build.md when a build targets more than one Scala version. ++ <version> switches the version for the commands after it, + <task> runs the task once per entry in crossScalaVersions, and sbt 2 selects subprojects with ...@scalaBinaryVersion=3/test.
sbt "clean ; test" on sbt 1, sbt testFull on sbt 2 (its cache would skip green suites).references/troubleshooting.md before changing the build.publish, publishSigned, release or deploy tasks to verify a change. Ask first.clean, compile can finish in 0 s with no compiling lines because the classfiles were restored. Check find target/out -name '*.class' before calling it a bug.clean on sbt 2. Use testFull.SBT_OPTS does nothing until shutdown.IntegrationTest and it:test are removed on sbt 2. Move those tests to a subproject.target/out/jvm/scala-<ver>/<subproject>/. Update CI artifact paths to target/out/**/test-reports/*.xml.references/sbt2.md: sbt 2 command-line reference (quoting, test family, query, caching, client and server, CI).references/dependencies.md: coordinates, eviction, scheme declarations and resolution failures.references/cross-build.md: crossScalaVersions, ++, + and sbt 2 query.references/troubleshooting.md: symptom-to-cause table and escalation rules.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin sbt