[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C22WADT608BH261B4F90P7":3,"skill-same:01M7C22WADT608BH261B4F90P7":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C22WADT608BH261B4F90P7","python-scala-oop",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_run\u002Finputs\u002Fskills\u002Fpython-scala-oop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Python Module to Scala 2.13 API-Complete Translation (OOP and Tokenizers)\n\n## Purpose\nTranslate a Python module that defines multiple classes and functions into Scala 2.13 while preserving the module's public API (required symbol names) and core semantics, with completion gated by symbol checks and a real Scala compilation.\n\n## When to Use\nUse when the task requires a full-file Python-to-Scala translation with an explicit list of required classes\u002Ffunctions (exact names) and a requirement to compile under Scala 2.13. Do not use for partial refactors, style-only rewrites, or when no symbol-level contract is given.\n\n## Procedure\n- Step 1: Read and validate inputs before writing code.\n- Locate and open the full Python source file(s) to be translated.\n- Extract two lists:\n- Source Inventory: every top-level class, function, and constant actually defined in the Python module (names plus signatures).\n- Required Symbols: every class\u002Ffunction\u002Fobject name explicitly required by the task instructions.\n- Decision: If Required Symbols contains names not present in the Python file, stop and request clarification (do not invent new APIs).\n- Step 2: Establish translation mapping from observed constructs (discovery-driven).\n- For each Python definition in the Source Inventory, note only behavior-critical details:\n- Constructor parameters and defaults, required fields, mutability, and runtime checks.\n- Exceptions raised vs silent behavior, None handling, and type conversions.\n- Any classmethod\u002Fstaticmethod usage, module-level helper functions, and global configuration constants.\n- Choose Scala representations based on what is present:\n- dataclass-like immutable record -> case class (only if immutability matches behavior).\n- ABC\u002Fabstract base -> trait\u002Fabstract class with abstract defs.\n- Python properties with validation -> explicit getter\u002Fsetter methods (or keep vars) only if setters exist and behavior requires mutation.\n- Step 3: Implement translation one symbol at a time (minimize drift).\n- Create the Scala file(s) at the task-specified location; if no location is specified, discover the repository conventions (existing src directories, build files) and place code where Scala build tools will compile it.\n- Implement each required symbol from Required Symbols first, then any additional symbols from Source Inventory needed as dependencies.\n- After implementing a symbol, add a small internal comment listing the Python source name and any semantic choices (only where ambiguity exists).\n- Decision: If a Python behavior is ambiguous (e.g., dynamic typing or duck-typed inputs), prefer the least-committal Scala signature that still compiles and matches behavior (e.g., String vs Any) and document the assumption locally; do not introduce new frameworks or abstractions to \"improve\" design.\n- Step 4: Post-write validation gate (must pass before claiming completion).\n- Schema-like symbol check:\n- Mechanically verify the Scala output contains every name in Required Symbols as a top-level definition (class\u002Ftrait\u002Fobject\u002Fdef) and that names match exactly (case-sensitive).\n- If a required symbol is missing or nested incorrectly, fix structure before further edits.\n- Compilation check:\n- Discover the available toolchain: try scalac first; if absent, look for sbt or mill; use what exists.\n- Run a Scala 2.13 compilation (scalac compile or sbt compile) and iterate on errors until clean.\n- Optional parity spot-check (only if runnable in the environment):\n- Run a minimal sanity check that exercises the key entrypoints (for tokenizers: tokenize\u002FtokenizeBatch and basic class construction) without adding new dependencies.\n\n## Constraints \u002F Pitfalls\n- Do not invent extra subsystems, helper frameworks, registries, monads\u002Ffunctors, JSON layers, or new public APIs unless they exist in the Python source file or are explicitly required by the task contract.\n- Do not mark the task complete without (1) a required-symbol checklist showing all required names present and (2) a successful Scala 2.13 compilation in the actual environment; if tools are missing, stop and report what is available and what cannot be verified.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_run\u002Finputs\u002Fskills\u002Fpython-scala-oop",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill python-scala-oop",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill python-scala-oop",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill python-scala-oop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_run\u002Finputs\u002Fskills\u002Fpython-scala-oop\u002FSKILL.md",true,[],[44,51,58,65,70,75],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":66,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":76,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]