Run1 scala domain modeling
Translating Python dynamic structures into type-safe Scala ADTs and case classes.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run1_scala-domain-modelingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.7 KB, 125 tokens by cl100k_base, as published. Nobody here has run it
Domain Modeling Strategy
- Enums vs Sealed Traits: Use
sealed traitforTokenTypeto ensure exhaustive pattern matching. - Immutability: Use
case classforTokento represent immutable data containers. - Naming Conventions: Convert Python's
snake_casemethods/variables tocamelCaseto adhere to Scala idiomatic standards (e.g.,tokenize_batchbecomestokenizeBatch). - Data Structures: Use Scala's
Option[T]for handling potentially missing metadata or values instead ofNoneornullchecks.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.