[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C3QY5YJQWNQ0VCJXYEVVZ0":3,"skill-same:01M7C3QY5YJQWNQ0VCJXYEVVZ0":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C3QY5YJQWNQ0VCJXYEVVZ0","skilltta-task-guidance",null,"Task-specific operational guidance synthesized at test time from retrieved training examples.","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\u002Fskilltta-synthesis-opus47-tatumass-failed15-20260923\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_skill\u002Fskilltta-task-guidance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skilltta-task-guidance\ndescription: Task-specific operational guidance synthesized at test time from retrieved training examples.\n---\n\n# SKILL.md\n\n## When to use\nUse this skill when the target task asks you to translate a Python module into idiomatic Scala (here, Scala 2.13) preserving a specified public API — a list of classes\u002Fobjects, functions, and methods that must exist by name. The binding contract requires that:\n- Every named entity from the Python source is present in the Scala output at the specified path.\n- The Scala code compiles under the required Scala version.\n- Behavior matches the Python source semantically (not textually).\n- The output follows Scala idioms and naming conventions rather than being a line-for-line port.\n\nBefore acting, gather:\n- The full contents of the Python source file (read it end-to-end; do not guess based on class names).\n- Every top-level and nested symbol name required by the prompt, and note which are classes vs. functions vs. methods.\n- The Python semantics for error handling, optionality, mutability, and any regex\u002Fdate\u002Fnumber parsing.\n- The exact output file path and Scala version constraint.\n\n## Possible Failure Modes\n- Missing a required symbol from the mandated list (e.g., forgetting a helper like `toToken`, `withMetadata`, or a builder), or defining it with the wrong arity\u002Fcase so callers can't find it.\n- Word-for-word translation: using `null`, mutable `var`s, uppercase `SCREAMING_SNAKE` constants, Python-style `class` hierarchies with mutable fields, or Java-style getters instead of idiomatic Scala.\n- Wrong naming conventions: methods should be `camelCase`, types `PascalCase`, packages lowercase; enum-like values as `case object`s inside a `sealed trait`.\n- Using exceptions where `Option`, `Either`, or `Try` is more idiomatic — or the reverse: silently swallowing errors the Python code raises.\n- Ignoring Scala 2.13 specifics: using Scala 3 syntax (`enum`, `given`, indentation-based blocks, `extension`), or using deprecated 2.12 collection APIs.\n- Reinventing utilities that exist in the standard library (`scala.util.Try`, `scala.util.matching.Regex`, `java.time.*`, `String.split`, `mkString`, `groupBy`, `foldLeft`).\n- Breaking builder\u002Ffluent APIs by returning `Unit` instead of `this` (or a new immutable copy).\n- Losing type information via `Any` when a `sealed trait` ADT is the right model (e.g., a `TokenType` should be a sealed ADT).\n- Not producing a self-contained, compilable file: missing imports, dangling references, or package declarations inconsistent with the required path.\n- Copying identifier names, structure, or specifics from unrelated retrieved examples that have nothing to do with the actual Python source.\n\n## Possible procedures\n1. Read the Python source completely and enumerate:\n   - Required classes\u002Fobjects\u002Ftraits and their public methods.\n   - Constructor parameters and default values.\n   - Any module-level constants, enums, and regex patterns.\n   - Exception types raised and where `None`\u002Foptional values flow.\n2. Map Python constructs to idiomatic Scala:\n   - Python enum \u002F string-typed kinds → `sealed trait` + `case object`s (often in a companion `object`).\n   - Dataclass-like containers → `final case class` with immutable `val` fields; provide `copy`-based updates (e.g., `withMetadata` returns a new instance).\n   - Abstract base class with subclasses → `sealed abstract class` or `trait` with concrete subclasses; use `abstract def` for polymorphic methods.\n   - Builder pattern → immutable builder that returns a new builder from each setter, plus a terminal `build`.\n   - `Optional`\u002F`None` → `Option[T]`; raising exceptions on invalid input → `Either[Error, T]` or `Try[T]`, unless the contract clearly wants exceptions.\n   - Regex → `scala.util.matching.Regex`; date\u002Ftime → `java.time` (LocalDate\u002FInstant\u002FDateTimeFormatter).\n   - Batch\u002Floop tokenization → prefer collection combinators (`map`, `flatMap`, `collect`) over mutable buffers; if performance matters, `Vector`\u002F`ArrayBuffer` locally is fine.\n3. Preserve the exact required symbol names. If Python uses `snake_case` for methods, still expose those names if the contract lists them literally; otherwise convert to `camelCase`. When in doubt, keep the names from the required list verbatim so grading can find them.\n4. Structure the file:\n   - Single package\u002Fobject or a top-level `object` wrapping helpers is fine; ensure top-level `def`s that the contract names (like `tokenize`, `tokenizeBatch`) are reachable (e.g., via an `object` with the module name or as methods on a stated class).\n   - Companion objects for `apply`, factory methods, and constants.\n5. Compilation check mentally: for every call site, verify types line up; avoid implicit conversions that don't exist in 2.13; don't use `enum` (Scala 3 only).\n6. Handle errors naturally: validate inputs at construction (e.g., `require(...)`), return `Option`\u002F`Either` for parse-like operations, and reserve exceptions for truly exceptional cases.\n7. If any Python behavior is ambiguous (e.g., unicode handling, empty input), choose the closest Scala-idiomatic behavior and document it briefly in a Scaladoc comment.\n\n## Verification Checklist\n- [ ] Output file is written to the exact path specified in the prompt.\n- [ ] Every symbol named in the prompt exists in the Scala source with a matching role (class\u002Fobject\u002Ftrait vs. function\u002Fmethod) and reachable from a top-level scope.\n- [ ] File declares\u002Fuses only Scala 2.13-compatible syntax (no `enum`, no `given\u002Fusing`, no Scala 3 braceless syntax where it would fail).\n- [ ] All imports are present; the file would compile standalone (`scalac Tokenizer.scala` mentally passes).\n- [ ] Types are precise: no gratuitous `Any`; ADTs used for enum-like values; `Option`\u002F`Either`\u002F`Try` used for absence\u002Ffailure instead of `null`.\n- [ ] Naming follows Scala conventions (`PascalCase` types, `camelCase` methods\u002Fvals) while still exposing every name the prompt requires.\n- [ ] No mutable global state; case classes are immutable; builder methods return new instances.\n- [ ] Standard library used for regex, time, and collections rather than hand-rolled equivalents.\n- [ ] Behavior matches the Python source on representative inputs (empty input, whitespace, numeric edge cases, temporal parse failures).\n- [ ] No identifiers, comments, or logic copied from unrelated retrieved examples; content is derived only from the actual Python source.\n- [ ] Unrelated files under `\u002Froot\u002F` are not modified or deleted.\n- [ ] Recovery: if the Python source references something unclear, re-read it before guessing; if a required name is genuinely absent from Python, still create a sensible Scala counterpart so the required list is satisfied.\n","# SKILL.md\n\n## When to use\nUse this skill when the target task asks you to translate a Python module into idiomatic Scala (here, Scala 2.13) preserving a specified public API — a list of classes\u002Fobjects, functions, and methods that must exist by name. The binding contract requires that:\n- Every named entity from the Python source is present in the Scala output at the specified path.\n- The Scala code compiles under the required Scala version.\n- Behavior matches the Python source semantically (not textually).\n- The output follows Scala idioms and naming conventions rather than being a line-for-line port.\n\nBefore acting, gather:\n- The full contents of the Python source file (read it end-to-end; do not guess based on class names).\n- Every top-level and nested symbol name required by the prompt, and note which are classes vs. functions vs. methods.\n- The Python semantics for error handling, optionality, mutability, and any regex\u002Fdate\u002Fnumber parsing.\n- The exact output file path and Scala version constraint.\n\n## Possible Failure Modes\n- Missing a required symbol from the mandated list (e.g., forgetting a helper like `toToken`, `withMetadata`, or a builder), or defining it with the wrong arity\u002Fcase so callers can't find it.\n- Word-for-word translation: using `null`, mutable `var`s, uppercase `SCREAMING_SNAKE` constants, Python-style `class` hierarchies with mutable fields, or Java-style getters instead of idiomatic Scala.\n- Wrong naming conventions: methods should be `camelCase`, types `PascalCase`, packages lowercase; enum-like values as `case object`s inside a `sealed trait`.\n- Using exceptions where `Option`, `Either`, or `Try` is more idiomatic — or the reverse: silently swallowing errors the Python code raises.\n- Ignoring Scala 2.13 specifics: using Scala 3 syntax (`enum`, `given`, indentation-based blocks, `extension`), or using deprecated 2.12 collection APIs.\n- Reinventing utilities that exist in the standard library (`scala.util.Try`, `scala.util.matching.Regex`, `java.time.*`, `String.split`, `mkString`, `groupBy`, `foldLeft`).\n- Breaking builder\u002Ffluent APIs by returning `Unit` instead of `this` (or a new immutable copy).\n- Losing type information via `Any` when a `sealed trait` ADT is the right model (e.g., a `TokenType` should be a sealed ADT).\n- Not producing a self-contained, compilable file: missing imports, dangling references, or package declarations inconsistent with the required path.\n- Copying identifier names, structure, or specifics from unrelated retrieved examples that have nothing to do with the actual Python source.\n\n## Possible procedures\n1. Read the Python source completely and enumerate:\n   - Required classes\u002Fobjects\u002Ftraits and their public methods.\n   - Constructor parameters and default values.\n   - Any module-level constants, enums, and regex patterns.\n   - Exception types raised and where `None`\u002Foptional values flow.\n2. Map Python constructs to idiomatic Scala:\n   - Python enum \u002F string-typed kinds → `sealed trait` + `case object`s (often in a companion `object`).\n   - Dataclass-like containers → `final case class` with immutable `val` fields; provide `copy`-based updates (e.g., `withMetadata` returns a new instance).\n   - Abstract base class with subclasses → `sealed abstract class` or `trait` with concrete subclasses; use `abstract def` for polymorphic methods.\n   - Builder pattern → immutable builder that returns a new builder from each setter, plus a terminal `build`.\n   - `Optional`\u002F`None` → `Option[T]`; raising exceptions on invalid input → `Either[Error, T]` or `Try[T]`, unless the contract clearly wants exceptions.\n   - Regex → `scala.util.matching.Regex`; date\u002Ftime → `java.time` (LocalDate\u002FInstant\u002FDateTimeFormatter).\n   - Batch\u002Floop tokenization → prefer collection combinators (`map`, `flatMap`, `collect`) over mutable buffers; if performance matters, `Vector`\u002F`ArrayBuffer` locally is fine.\n3. Preserve the exact required symbol names. If Python uses `snake_case` for methods, still expose those names if the contract lists them literally; otherwise convert to `camelCase`. When in doubt, keep the names from the required list verbatim so grading can find them.\n4. Structure the file:\n   - Single package\u002Fobject or a top-level `object` wrapping helpers is fine; ensure top-level `def`s that the contract names (like `tokenize`, `tokenizeBatch`) are reachable (e.g., via an `object` with the module name or as methods on a stated class).\n   - Companion objects for `apply`, factory methods, and constants.\n5. Compilation check mentally: for every call site, verify types line up; avoid implicit conversions that don't exist in 2.13; don't use `enum` (Scala 3 only).\n6. Handle errors naturally: validate inputs at construction (e.g., `require(...)`), return `Option`\u002F`Either` for parse-like operations, and reserve exceptions for truly exceptional cases.\n7. If any Python behavior is ambiguous (e.g., unicode handling, empty input), choose the closest Scala-idiomatic behavior and document it briefly in a Scaladoc comment.\n\n## Verification Checklist\n- [ ] Output file is written to the exact path specified in the prompt.\n- [ ] Every symbol named in the prompt exists in the Scala source with a matching role (class\u002Fobject\u002Ftrait vs. function\u002Fmethod) and reachable from a top-level scope.\n- [ ] File declares\u002Fuses only Scala 2.13-compatible syntax (no `enum`, no `given\u002Fusing`, no Scala 3 braceless syntax where it would fail).\n- [ ] All imports are present; the file would compile standalone (`scalac Tokenizer.scala` mentally passes).\n- [ ] Types are precise: no gratuitous `Any`; ADTs used for enum-like values; `Option`\u002F`Either`\u002F`Try` used for absence\u002Ffailure instead of `null`.\n- [ ] Naming follows Scala conventions (`PascalCase` types, `camelCase` methods\u002Fvals) while still exposing every name the prompt requires.\n- [ ] No mutable global state; case classes are immutable; builder methods return new instances.\n- [ ] Standard library used for regex, time, and collections rather than hand-rolled equivalents.\n- [ ] Behavior matches the Python source on representative inputs (empty input, whitespace, numeric edge cases, temporal parse failures).\n- [ ] No identifiers, comments, or logic copied from unrelated retrieved examples; content is derived only from the actual Python source.\n- [ ] Unrelated files under `\u002Froot\u002F` are not modified or deleted.\n- [ ] Recovery: if the Python source references something unclear, re-read it before guessing; if a required name is genuinely absent from Python, still create a sensible Scala counterpart so the required list is satisfied.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002Fskilltta-synthesis-opus47-tatumass-failed15-20260923\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_skill\u002Fskilltta-task-guidance",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002Fskilltta-synthesis-opus47-tatumass-failed15-20260923\u002Ftasks\u002Fpython-scala-translation\u002Frepaired_skill\u002Fskilltta-task-guidance\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"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":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"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":68,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"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":73,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"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":78,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"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",[],[]]