[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C3HC6M7QCZ4B6KRSJ5M698":3,"skill-same:01M7C3HC6M7QCZ4B6KRSJ5M698":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},"01M7C3HC6M7QCZ4B6KRSJ5M698","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\u002Fflink-query\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 implementing a Flink (Java) streaming\u002Fbatch job on a skeleton project that ingests gzipped CSV event data (e.g., cluster-trace-style task and job events) and must emit per-key aggregates derived from event-time session windows. The target contract typically requires:\n- Reading two related gzipped CSV inputs (task events + job events) whose paths, schemas, and units (e.g., microseconds) must be discovered from provided documentation files in the workspace before coding.\n- Grouping task activity by a key (e.g., jobId), sessionizing by an inactivity gap defined on event time, counting a specific event type only (e.g., SUBMIT), and reducing to one output per key gated on a lifecycle signal (e.g., job finished) from the second stream.\n- Writing plain-text tuple lines to a local output file path passed as a parameter, without altering the provided class name, package, `pom.xml`, or `AppBase` contract.\n\nBefore writing code, gather:\n1. Column indices and enum codes from the schema docs (`format.pdf`, `ClusterData2011_2.md`) — do not guess event-type integers.\n2. Time unit (microseconds here) and how to convert to Flink's expected millisecond timestamps.\n3. The `AppBase` class signature to know what datatype classes and methods must exist under `clusterdata.datatypes`.\n4. Whether inputs are bounded files (batch\u002Fstreaming source choice) and how gz decoding is handled.\n\n## Possible Failure Modes\n- Hardcoding event-type codes (SUBMIT, FINISH, etc.) incorrectly instead of reading them from the schema doc.\n- Treating timestamps as milliseconds when the dataset is microseconds → session gaps become 1000× wrong.\n- Using processing time or ingestion time instead of event-time watermarks, so session windows never fire deterministically on bounded input.\n- Counting all task events instead of only SUBMIT events; or deduplicating resubmissions when the spec says re-submits after fail\u002Fevict must be counted separately.\n- Emitting output before the job's finish event is observed, or emitting for jobs that never finish.\n- Wrong output format: writing CSV, JSON, `Tuple2.toString()` default (`(a,b)` vs `a,b`), extra whitespace, or headers. The grader expects exactly `(jobId,count)` one per line.\n- Renaming the main class, changing the package path, or editing `pom.xml`, breaking the build\u002Frun harness.\n- Missing `clusterdata.datatypes` POJO classes (or missing no-arg constructor \u002F public fields) causing Flink serialization to fall back to Kryo or fail.\n- Not closing\u002Fflushing the sink, or using a parallel file sink that produces a directory of part files when a single file path is expected.\n- Watermark strategy with insufficient out-of-orderness causing sessions to close prematurely or never; or forgetting to assign timestamps at all.\n- Joining\u002Fcoordinating the two streams incorrectly (e.g., using a regular join with windows) when a keyed connect + state (or broadcast of finished jobIds) is more appropriate.\n\n## Possible procedures\n1. Read the schema docs first. Record: field order for task_events and job_events, the integer code for SUBMIT and for the terminal job event(s) meaning \"finished,\" and confirm the time-unit is microseconds.\n2. Implement `TaskEvent` and `JobEvent` POJOs in `clusterdata.datatypes` with public no-arg constructors and public fields (or getters\u002Fsetters) for the fields you use; keep them minimal.\n3. Build two sources from the gzipped CSV paths. Prefer a text file source (Flink auto-decompresses `.gz`) → map lines to POJOs, filtering malformed\u002Fmissing rows.\n4. Assign event-time timestamps by converting microseconds → milliseconds (`ts \u002F 1000`). Use a bounded-out-of-orderness watermark strategy; for bounded files, a monotonic or small bounded strategy is fine.\n5. On the task stream: filter to SUBMIT events only, key by jobId, apply an event-time session window with a 10-minute gap, and aggregate a count per window. Do not dedupe; each SUBMIT contributes one.\n6. Per job, reduce sessions to the max count. Options:\n   - Key by jobId after windowing and use a `KeyedProcessFunction` that keeps the running max in state.\n   - Or aggregate all session counts and take max via a second keyed reduce.\n7. Gate emission on job completion: from the job event stream, filter to the terminal\u002Ffinished events, key by jobId, and `connect` with the per-job max stream. In a `CoProcessFunction`\u002F`KeyedCoProcessFunction`, store the current max in state; when the finish event arrives (or vice versa), emit `(jobId, max)` exactly once and clear state.\n8. Sink: format output as the literal string `(jobId,count)` per record and write to the `output` path. Use a sink that writes a single file (e.g., `writeAsText` with parallelism 1 on the sink, or a `FileSink` configured to a single file). Ensure `env.execute()` runs and flushes.\n9. Match `AppBase` conventions for parsing `--task_input`, `--job_input`, `--output` parameters exactly as the skeleton expects.\n10. Recovery checks: if the output is empty, verify watermarks advance (bounded source should emit MAX_WATERMARK on close); if counts look off by 1000×, re-check microsecond conversion; if some jobs missing, verify the finished-event filter code matches the doc.\n\n## Verification Checklist\n- [ ] `LongestSessionPerJob` class name, package, and `pom.xml` are unchanged; `mvn package` (or the build the harness uses) succeeds and produces the jar name declared in `pom.xml`.\n- [ ] `clusterdata.datatypes` contains the task\u002Fjob event POJOs referenced by `AppBase` with public no-arg constructors.\n- [ ] Event-time is derived from the CSV timestamp field, converted from microseconds to milliseconds, with a watermark strategy that allows bounded source completion.\n- [ ] Only SUBMIT task events are counted; resubmissions after fail\u002Fevict are each counted (no dedup by taskId).\n- [ ] Session gap is exactly 10 minutes of event-time inactivity.\n- [ ] One output line per finished job, in the exact literal form `(jobId,count)` — no header, no quotes, no spaces, no trailing commas.\n- [ ] Output is written to the `output` parameter path as a single file readable line-by-line; parallelism-1 sink or equivalent.\n- [ ] Jobs that never finish in the input do not appear in output; jobs that finish appear exactly once.\n- [ ] No content, ids, numeric codes, file names, or field orders were copied from unrelated retrieved examples; all schema-specific values come from the workspace docs.\n- [ ] Untouched files (`pom.xml`, `AppBase`, other provided sources) are byte-identical.\n- [ ] Recovery: on empty or malformed output, re-check (a) event-type code mapping, (b) microseconds→millis conversion, (c) watermark advancement on bounded input, (d) finish-event join emitting on both arrival orders.\n","# SKILL.md\n\n## When to use\nUse this skill when implementing a Flink (Java) streaming\u002Fbatch job on a skeleton project that ingests gzipped CSV event data (e.g., cluster-trace-style task and job events) and must emit per-key aggregates derived from event-time session windows. The target contract typically requires:\n- Reading two related gzipped CSV inputs (task events + job events) whose paths, schemas, and units (e.g., microseconds) must be discovered from provided documentation files in the workspace before coding.\n- Grouping task activity by a key (e.g., jobId), sessionizing by an inactivity gap defined on event time, counting a specific event type only (e.g., SUBMIT), and reducing to one output per key gated on a lifecycle signal (e.g., job finished) from the second stream.\n- Writing plain-text tuple lines to a local output file path passed as a parameter, without altering the provided class name, package, `pom.xml`, or `AppBase` contract.\n\nBefore writing code, gather:\n1. Column indices and enum codes from the schema docs (`format.pdf`, `ClusterData2011_2.md`) — do not guess event-type integers.\n2. Time unit (microseconds here) and how to convert to Flink's expected millisecond timestamps.\n3. The `AppBase` class signature to know what datatype classes and methods must exist under `clusterdata.datatypes`.\n4. Whether inputs are bounded files (batch\u002Fstreaming source choice) and how gz decoding is handled.\n\n## Possible Failure Modes\n- Hardcoding event-type codes (SUBMIT, FINISH, etc.) incorrectly instead of reading them from the schema doc.\n- Treating timestamps as milliseconds when the dataset is microseconds → session gaps become 1000× wrong.\n- Using processing time or ingestion time instead of event-time watermarks, so session windows never fire deterministically on bounded input.\n- Counting all task events instead of only SUBMIT events; or deduplicating resubmissions when the spec says re-submits after fail\u002Fevict must be counted separately.\n- Emitting output before the job's finish event is observed, or emitting for jobs that never finish.\n- Wrong output format: writing CSV, JSON, `Tuple2.toString()` default (`(a,b)` vs `a,b`), extra whitespace, or headers. The grader expects exactly `(jobId,count)` one per line.\n- Renaming the main class, changing the package path, or editing `pom.xml`, breaking the build\u002Frun harness.\n- Missing `clusterdata.datatypes` POJO classes (or missing no-arg constructor \u002F public fields) causing Flink serialization to fall back to Kryo or fail.\n- Not closing\u002Fflushing the sink, or using a parallel file sink that produces a directory of part files when a single file path is expected.\n- Watermark strategy with insufficient out-of-orderness causing sessions to close prematurely or never; or forgetting to assign timestamps at all.\n- Joining\u002Fcoordinating the two streams incorrectly (e.g., using a regular join with windows) when a keyed connect + state (or broadcast of finished jobIds) is more appropriate.\n\n## Possible procedures\n1. Read the schema docs first. Record: field order for task_events and job_events, the integer code for SUBMIT and for the terminal job event(s) meaning \"finished,\" and confirm the time-unit is microseconds.\n2. Implement `TaskEvent` and `JobEvent` POJOs in `clusterdata.datatypes` with public no-arg constructors and public fields (or getters\u002Fsetters) for the fields you use; keep them minimal.\n3. Build two sources from the gzipped CSV paths. Prefer a text file source (Flink auto-decompresses `.gz`) → map lines to POJOs, filtering malformed\u002Fmissing rows.\n4. Assign event-time timestamps by converting microseconds → milliseconds (`ts \u002F 1000`). Use a bounded-out-of-orderness watermark strategy; for bounded files, a monotonic or small bounded strategy is fine.\n5. On the task stream: filter to SUBMIT events only, key by jobId, apply an event-time session window with a 10-minute gap, and aggregate a count per window. Do not dedupe; each SUBMIT contributes one.\n6. Per job, reduce sessions to the max count. Options:\n   - Key by jobId after windowing and use a `KeyedProcessFunction` that keeps the running max in state.\n   - Or aggregate all session counts and take max via a second keyed reduce.\n7. Gate emission on job completion: from the job event stream, filter to the terminal\u002Ffinished events, key by jobId, and `connect` with the per-job max stream. In a `CoProcessFunction`\u002F`KeyedCoProcessFunction`, store the current max in state; when the finish event arrives (or vice versa), emit `(jobId, max)` exactly once and clear state.\n8. Sink: format output as the literal string `(jobId,count)` per record and write to the `output` path. Use a sink that writes a single file (e.g., `writeAsText` with parallelism 1 on the sink, or a `FileSink` configured to a single file). Ensure `env.execute()` runs and flushes.\n9. Match `AppBase` conventions for parsing `--task_input`, `--job_input`, `--output` parameters exactly as the skeleton expects.\n10. Recovery checks: if the output is empty, verify watermarks advance (bounded source should emit MAX_WATERMARK on close); if counts look off by 1000×, re-check microsecond conversion; if some jobs missing, verify the finished-event filter code matches the doc.\n\n## Verification Checklist\n- [ ] `LongestSessionPerJob` class name, package, and `pom.xml` are unchanged; `mvn package` (or the build the harness uses) succeeds and produces the jar name declared in `pom.xml`.\n- [ ] `clusterdata.datatypes` contains the task\u002Fjob event POJOs referenced by `AppBase` with public no-arg constructors.\n- [ ] Event-time is derived from the CSV timestamp field, converted from microseconds to milliseconds, with a watermark strategy that allows bounded source completion.\n- [ ] Only SUBMIT task events are counted; resubmissions after fail\u002Fevict are each counted (no dedup by taskId).\n- [ ] Session gap is exactly 10 minutes of event-time inactivity.\n- [ ] One output line per finished job, in the exact literal form `(jobId,count)` — no header, no quotes, no spaces, no trailing commas.\n- [ ] Output is written to the `output` parameter path as a single file readable line-by-line; parallelism-1 sink or equivalent.\n- [ ] Jobs that never finish in the input do not appear in output; jobs that finish appear exactly once.\n- [ ] No content, ids, numeric codes, file names, or field orders were copied from unrelated retrieved examples; all schema-specific values come from the workspace docs.\n- [ ] Untouched files (`pom.xml`, `AppBase`, other provided sources) are byte-identical.\n- [ ] Recovery: on empty or malformed output, re-check (a) event-type code mapping, (b) microseconds→millis conversion, (c) watermark advancement on bounded input, (d) finish-event join emitting on both arrival orders.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002Fskilltta-synthesis-opus47-tatumass-failed15-20260923\u002Ftasks\u002Fflink-query\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\u002Fflink-query\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",[],[]]