[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C22TV2HHB02VPQ2FVVHY3J":3,"skill-same:01M7C22TV2HHB02VPQ2FVVHY3J":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},"01M7C22TV2HHB02VPQ2FVVHY3J","python-scala-libraries",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-libraries\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Scala Module Translation With Verifier-Visible API Parity\n\n## Purpose\nProvide a repeatable workflow for translating a Python module into Scala while preserving the module's public API surface (names, scopes, and callable entrypoints) in a verifier-sensitive environment. The procedure emphasizes environment discovery, symbol inventory, scope\u002Fsignature checkpoints, and post-write validation beyond compilation.\n\n## When to Use\nUse this when a task requires converting an existing Python module into Scala and the evaluator\u002Fverifier likely reflects or calls specific classes\u002Ffunctions by exact name (including top-level functions) and expects behavior parity, not just successful compilation.\n\n## Procedure\n- Step 1: Discover environment and constraints before coding\n- Locate the Scala build entrypoint by inspection (examples: build.sbt, project\u002F, build.sc, scala-cli directives, README).\n- Determine Scala version and allowed dependencies from the build files; if unclear, run the build tool help\u002Fversion command that is available in the environment.\n- Decision point: If a third-party library is not already declared, do not introduce it; plan an implementation using only Scala\u002FJava standard library features.\n- Step 2: Extract and freeze the required public API contract\n- Read the Python source and the task instructions to build a required-symbol list:\n- Types: classes, dataclasses, enums, constants.\n- Callables: module-level functions, class methods, factory\u002Fbuilders.\n- Required names and casing must be captured exactly.\n- Record intended Scala placement for each symbol (package, object\u002Fcompanion object, class\u002Ftrait).\n- Decision point: If the task mentions specific symbols explicitly, treat that list as non-negotiable even if the Python code seems to allow simplification.\n- Step 3: Create a Scala skeleton that matches the API surface exactly\n- Create package\u002Fobject structure first, then stub every required symbol with correct visibility and an implementation placeholder.\n- Ensure module-level Python functions become Scala methods in a stable, discoverable location consistent with the repository conventions (commonly an object that mirrors the module name), and keep names unchanged unless the task explicitly permits renaming.\n- Add constructor parameters, method signatures, and return types to match expected usage; when Python typing is ambiguous, prefer the most permissive safe type (e.g., Option, Either, sealed trait hierarchies) but do not change required entrypoints.\n- Step 4: Implement behavior incrementally with checkpoints\n- Implement one logical component at a time (token types, data containers, tokenizers\u002Fdispatch, builders, helpers).\n- After each component:\n- Compile using the discovered build tool.\n- Run any available unit tests or minimal runnable examples if present.\n- Decision point: If behavior depends on Python dynamic dispatch, encode it explicitly in Scala (e.g., sealed trait + pattern match, or strategy objects) while keeping the external API unchanged.\n- Step 5: Verifier-alignment checks before finalizing (execution anchor)\n- Run a symbol inventory over the produced Scala files:\n- Search for each required class\u002Ftrait\u002Fobject\u002Fdef name and confirm it exists in the intended scope (top-level object vs class vs companion).\n- Confirm there are no accidental renames (camelCase vs snake_case) for verifier-called entrypoints unless explicitly required by the contract.\n- If any symbol is missing or in the wrong scope, fix structure first (do not patch by adding aliases unless you can guarantee they preserve behavior and do not conflict).\n- Only then run the official verifier\u002Ftest harness.\n\n## Constraints \u002F Pitfalls\n- Do not add or recommend third-party Scala libraries unless the repository build files already declare them; otherwise default to Scala\u002FJava standard library implementations to avoid environment mismatch.\n- Do not change, omit, or \"improve\" the public API surface: required symbols (names, casing, and whether they are module-level vs class members) must remain exactly as specified; compilation success is insufficient without the post-write symbol\u002Fscope checklist.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_run\u002Finputs\u002Fskills\u002Fpython-scala-libraries",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-libraries",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill python-scala-libraries",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill python-scala-libraries","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_run\u002Finputs\u002Fskills\u002Fpython-scala-libraries\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",[],[]]