npx skills add sickn33/agentic-awesome-skills --skill scala --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Scala: Idiomatic Efficiency Reference ## When to Use - Use this skill when the task matches this description: Language-specific super-code guidelines for scala. ## Table of Contents 1. [Collections & Functional Transforms](#collections) 2. [Pattern Matching](#patterns) 3. [Case Classes & ADTs](#case-classes) 4. [Option & Error Handling](#option) 5. [Implicits & Given/Using](#implicits) 6. [Concurrency](#concurrency) 7. [Anti-patterns specific to Scala](#antipatterns) --- ## 1. Collections & Functional Transforms {#collections} ```scala // ❌ Imperative accumulation val result = new ArrayBuffer[String]() for (item <- items) { if (item.isActive) result += item.name.toUpperCase } // ✅ val result = items.filter(_.isActive).map(_.name.toUpperCase) ``` ```scala // ❌ Manual grouping val grouped = mutable.Map[String, List[Item]]() for (item <- items) { grouped(item.category) = grouped.getOrElse(item.category, Nil) :+ item } // ✅ val grouped = items.groupBy(_.category) ``` ```scala // ❌ Manual fold when sum/product works var total = 0 for (o <- orders) total += o.amount // ✅ val total = orders.map(_.amount).sum ``` ```scala // ❌ Using head on potentially empty collection val first = items.
- When to Use
- Table of Contents
- 1. Collections & Functional Transforms {#collections}
- 2. Pattern Matching {#patterns}
- 3. Case Classes & ADTs {#case-classes}
- 4. Option & Error Handling {#option}
- 5. Implicits & Given/Using {#implicits}
- 6. Concurrency {#concurrency}
- 7. Anti-patterns specific to Scala {#antipatterns}
- Limitations
What does the scala skill do?
Language-specific super-code guidelines for scala.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill scala --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.