agentsclimarketplace

Python scala data structures

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-gemini-3-flash-preview/python-scala-translation/python-scala-data-structures

Guidelines for translating Python dataclasses, enums, and collections to Scala.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill python-scala-data-structures

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.8 KB, 174 tokens by cl100k_base, as published. Nobody here has run it

Python to Scala Data Structures

Dataclasses to Case Classes

  • Python @dataclass(frozen=True) -> Scala case class.
  • Python field(default_factory=dict) -> Scala default argument metadata: Map[String, Any] = Map.empty.

Enums

  • Python Enum -> Scala sealed trait with case objects or Enumeration.
  • For string values, a sealed trait with a value property is idiomatic.

Collections

  • Python list -> Scala List or Vector.
  • Python dict -> Scala Map.
  • Python tuple -> Scala Tuple or Vector (if variable length).
  • Python Sequence -> Scala Seq.
  • Python Iterable -> Scala Iterable.
  • Python Iterator -> Scala Iterator.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.