loom-scala

loom-scala is a skill for Claude Code, Codex from cosmix/loom. It costs 15 tokens per session (5,683 once invoked), scanned A, original, MIT.

Scala language guidance for Scala 3 on the Java platform, including sbt builds, effect systems, typed errors, and MUnit or ScalaTest testing. sbt is Scala's main build and dependency tool.

In plain words
What is it for?
Use it to build, format, analyse, test, and rerun selected Scala tests in projects using sbt.
Why use it?
It helps avoid problems with implicit context, accidentally early side effects, blocking work on the wrong thread pool, incomplete pattern matches, and test commands that run nothing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build, format, analyse, test, and rerun selected Scala tests in projects using sbt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/loom-scala
View source ↗ cosmix/loom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmix/loom --skill loom-scala
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-scala

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-scala/github.svg)](https://agentmods.dev/skills/cosmix/loom/loom-scala)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-scala"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-scala/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-scala

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-scala"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-scala.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.05683
Opus 5.5 $0.00006 $0.02273
Sonnet 5.5 $0.00003 $0.01137
Haiku 4.5 $0.00002 $0.00568

Measured 11d ago against content hash 737a5da3284f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom-scala scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

def fetch(id: Long): IO[String] =
skills/loom-scala/SKILL.md · 375 lines

How it starts

The opening of the file, as written. The whole thing — 375 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scala Language Expertise

Overview

Idiomatic, production-grade Scala 3 on the JVM: sbt builds, the Scala 3 syntax, ADTs and pattern matching, givens and extension methods, typed errors, the cats-effect and ZIO effect systems, and MUnit/ScalaTest testing. Assumes the reader writes Scala already. The content is the part that bites: givens that an import silently misses, IO.pure running a side effect once and early, blocking calls on the compute pool, non-exhaustive matches that only warn, and an sbt testOnly that exits 0 after running nothing.

Tooling

sbt is the default build. Keep one sbt shell open (or sbt --client) for iterative work: every batch invocation boots a JVM and loads the build before running anything.

Task Command
Full gate sbt scalafmtCheckAll scalafmtSbtCheck "scalafixAll --check" test
Compile main and tests sbt Test/compile
All tests (the stage gate's) sbt test
One suite sbt 'testOnly com.acme.FooSuite'
One ScalaTest test by substring sbt 'testOnly com.acme.FooSpec -- -z "rejects symlinks"'
Failed and changed tests only sbt testQuick (~testQuick reruns on save)
Format sbt scalafmtAll scalafmtSbt
Dependency tree sbt dependencyTree (after addDependencyTreePlugin in project/plugins.sbt)
// build.sbt
ThisBuild / scalaVersion := "3.3.4"          // the 3.3.x line is the LTS
ThisBuild / organization := "com.acme"
ThisBuild / semanticdbEnabled := true        // scalafix semantic rules need it

lazy val core = project
  .settings(
    libraryDependencies ++= Seq(
      "org.typelevel" %% "cats-effect" % "3.5.4",
      "org.scalameta" %% "munit" % "1.0.0" % Test,
      "org.typelevel" %% "munit-cats-effect" % "2.0.0" % Test,
    ),
    Test / fork := true,                     // tests in a separate JVM: clean system properties, no classloader leaks
  )

lazy val root = (project in file("."))
  .aggregate(core)                           // commands run at the root reach core

Read the full file on GitHub · 375 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed 737a5da3284f
  2. 2mo ago First seen · 375 lines · 15 tokens per session scan A b07e07242aea

Subscribe to this mod's changes

loom-scala is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 5,683 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

loom-scala compared with skills from other repositories

loom-scala next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-scalacosmix/loomSkill66yesterdayMITA15Claude Code, Codex
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
authoring-java-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A152Claude Code
configuring-airflow-language-sdksastronomer/agentsSkill4646d agoApache-2.0A155Claude Code
authoring-dagsastronomer/agentsSkill4646d agoApache-2.0A93Claude Code
authoring-go-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A165Claude Code