python-scala-data-structures-mapping
Guidelines for translating Python dataclasses, enums, and collections to Scala.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
--- name: "python-scala-data-structures-mapping" description: "Guidelines for translating Python dataclasses, enums, and collections to Scala." license: "MIT" --- # 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 object`s 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`.
More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

