[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BNP9MX7A9T6PSEHKKYQ8BC":3,"skill-same:01M7BNP9MX7A9T6PSEHKKYQ8BC":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},"01M7BNP9MX7A9T6PSEHKKYQ8BC","skilltta-task-guidance",null,"Temporary guidance for the video silence\u002Fopening remover task, focusing on robust silence detection, correct interval-merging semantics, and consistent compression reporting.","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\u002Fcontrolled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-video-silence-remover-RI-002\u002Frepaired_skill\u002Fskilltta-task-guidance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skilltta-task-guidance\ndescription: Temporary guidance for the video silence\u002Fopening remover task, focusing on robust silence detection, correct interval-merging semantics, and consistent compression reporting.\n---\n\n# Task Guidance: Video Silence Remover\n\n## Goal\nProduce `compressed_video.mp4` and `compression_report.json` by removing (a) the unnecessary static\u002Fnoisy opening and (b) long silent pauses (> 2s), while preserving teaching content.\n\n## Pipeline\n1. Probe duration with `ffprobe` (seconds, float).\n2. Extract mono 16 kHz WAV: `ffmpeg -i input_video.mp4 -ac 1 -ar 16000 -vn tmp.wav`.\n3. Detect silence with `ffmpeg -af silencedetect=noise=-30dB:d=0.5` and parse `silence_start`\u002F`silence_end` pairs. Lower threshold (e.g. -35 dB) if too little is detected, raise (e.g. -25 dB) if too much.\n4. Detect the opening: look for a leading region (first ~30–60s) that is either silent or has near-constant frames. For audio-only heuristic, treat any silent\u002Flow-energy run that starts at (or very near) t=0 as part of the opening and extend `end` to the first speech onset.\n5. Build the **removal interval list**:\n   - Include opening removal `[0, speech_start]` only if `speech_start > 1.0s`.\n   - Include every silent run with `duration > 2.0s`. Trim 0.15–0.25s padding on each side so cuts don’t clip speech.\n6. Merge\u002Fclean intervals (see Interval Merging below).\n7. Build keep intervals = complement of removal within `[0, duration]`.\n8. Cut and concatenate with ffmpeg (prefer re-encode for frame-accurate cuts):\n   - Use `-ss`\u002F`-to` per segment + concat demuxer, or a single `select`\u002F`aselect` filter with `setpts`\u002F`asetpts`.\n9. Write report JSON with the exact schema requested.\n\n## Interval Merging Convention (critical)\nThe `segment-combiner` convention and `video-processor` checks must agree:\n- Intervals are **half-open `[start, end)`** in seconds, floats.\n- Sort by `start` ascending.\n- Merge two intervals when `next.start - current.end \u003C= GAP_EPS` (use `GAP_EPS = 0.2s`). Do NOT merge only on strict overlap; small gaps between adjacent silences should coalesce so you don't leave sub-second speech islands.\n- After merging, drop any interval with `duration \u003C MIN_REMOVE = 2.0s` (except the opening removal, which is always kept if present).\n- Clamp to `[0, total_duration]`; discard empty\u002Fnegative intervals.\n- Validate: for every consecutive pair `a, b` ensure `a.end \u003C b.start` (strictly), otherwise re-merge.\n\n## Consistency Checks (video-processor side)\nBefore writing output, assert:\n- `sum(keep_durations) + sum(removed_durations) ≈ original_duration` within 0.5s.\n- `compressed_duration ≈ sum(keep_durations)` within 0.5s (measure with ffprobe on the output too).\n- `compression_percentage = removed \u002F original * 100`, rounded to 2 decimals.\n- Each reported segment satisfies `end > start`, `duration == end - start`, and segments are non-overlapping and sorted.\n- Expected compression for a ~10 min teaching video is typically 5–30%. If outside, re-tune `silencedetect` threshold rather than silently shipping.\n\n## Report Schema (exact keys)\n```json\n{\n  \"original_duration_seconds\": 0,\n  \"compressed_duration_seconds\": 0,\n  \"removed_duration_seconds\": 0,\n  \"compression_percentage\": 0,\n  \"segments_removed\": [\n    {\"start\": 0, \"end\": 0, \"duration\": 0}\n  ]\n}\n```\nAll numbers are floats (seconds); `compression_percentage` is a percentage number (e.g. 12.34), not a ratio.\n\n## Patterns Borrowed From Prior Examples\n- **Schema-first JSON writing** (like the dict→JSON example): assemble a plain dict with the required keys and `json.dump` it; don’t post-hoc patch the file.\n- **Filter-then-aggregate** (like the DataFrame filtering examples): first filter raw silence events by `duration > 2s` and opening rule, then aggregate\u002Fmerge, then compute summary stats — never compute stats on unfiltered events.\n- **Guard empty inputs**: if no silence events survive filtering, still emit a valid report with `segments_removed: []` and `compressed_duration == original_duration`, and copy the input video to `compressed_video.mp4`.\n\n## Common Pitfalls to Avoid\n- Using closed intervals `[a, b]` on one side and half-open on the other → double-counted frames and `original ≠ compressed + removed`.\n- Merging only on overlap: leaves 0.3–1.5s speech slivers between back-to-back silences, causing audible stutter.\n- Forgetting to clamp the final interval to `total_duration` (silencedetect sometimes reports `silence_end` beyond EOF).\n- Using stream copy (`-c copy`) for cuts: keyframe snapping desyncs audio\u002Fvideo; prefer re-encode or use `-avoid_negative_ts make_zero` with concat demuxer on re-encoded parts.\n- Reporting `compression_percentage` as a 0–1 ratio instead of 0–100.\n","# Task Guidance: Video Silence Remover\n\n## Goal\nProduce `compressed_video.mp4` and `compression_report.json` by removing (a) the unnecessary static\u002Fnoisy opening and (b) long silent pauses (> 2s), while preserving teaching content.\n\n## Pipeline\n1. Probe duration with `ffprobe` (seconds, float).\n2. Extract mono 16 kHz WAV: `ffmpeg -i input_video.mp4 -ac 1 -ar 16000 -vn tmp.wav`.\n3. Detect silence with `ffmpeg -af silencedetect=noise=-30dB:d=0.5` and parse `silence_start`\u002F`silence_end` pairs. Lower threshold (e.g. -35 dB) if too little is detected, raise (e.g. -25 dB) if too much.\n4. Detect the opening: look for a leading region (first ~30–60s) that is either silent or has near-constant frames. For audio-only heuristic, treat any silent\u002Flow-energy run that starts at (or very near) t=0 as part of the opening and extend `end` to the first speech onset.\n5. Build the **removal interval list**:\n   - Include opening removal `[0, speech_start]` only if `speech_start > 1.0s`.\n   - Include every silent run with `duration > 2.0s`. Trim 0.15–0.25s padding on each side so cuts don’t clip speech.\n6. Merge\u002Fclean intervals (see Interval Merging below).\n7. Build keep intervals = complement of removal within `[0, duration]`.\n8. Cut and concatenate with ffmpeg (prefer re-encode for frame-accurate cuts):\n   - Use `-ss`\u002F`-to` per segment + concat demuxer, or a single `select`\u002F`aselect` filter with `setpts`\u002F`asetpts`.\n9. Write report JSON with the exact schema requested.\n\n## Interval Merging Convention (critical)\nThe `segment-combiner` convention and `video-processor` checks must agree:\n- Intervals are **half-open `[start, end)`** in seconds, floats.\n- Sort by `start` ascending.\n- Merge two intervals when `next.start - current.end \u003C= GAP_EPS` (use `GAP_EPS = 0.2s`). Do NOT merge only on strict overlap; small gaps between adjacent silences should coalesce so you don't leave sub-second speech islands.\n- After merging, drop any interval with `duration \u003C MIN_REMOVE = 2.0s` (except the opening removal, which is always kept if present).\n- Clamp to `[0, total_duration]`; discard empty\u002Fnegative intervals.\n- Validate: for every consecutive pair `a, b` ensure `a.end \u003C b.start` (strictly), otherwise re-merge.\n\n## Consistency Checks (video-processor side)\nBefore writing output, assert:\n- `sum(keep_durations) + sum(removed_durations) ≈ original_duration` within 0.5s.\n- `compressed_duration ≈ sum(keep_durations)` within 0.5s (measure with ffprobe on the output too).\n- `compression_percentage = removed \u002F original * 100`, rounded to 2 decimals.\n- Each reported segment satisfies `end > start`, `duration == end - start`, and segments are non-overlapping and sorted.\n- Expected compression for a ~10 min teaching video is typically 5–30%. If outside, re-tune `silencedetect` threshold rather than silently shipping.\n\n## Report Schema (exact keys)\n```json\n{\n  \"original_duration_seconds\": 0,\n  \"compressed_duration_seconds\": 0,\n  \"removed_duration_seconds\": 0,\n  \"compression_percentage\": 0,\n  \"segments_removed\": [\n    {\"start\": 0, \"end\": 0, \"duration\": 0}\n  ]\n}\n```\nAll numbers are floats (seconds); `compression_percentage` is a percentage number (e.g. 12.34), not a ratio.\n\n## Patterns Borrowed From Prior Examples\n- **Schema-first JSON writing** (like the dict→JSON example): assemble a plain dict with the required keys and `json.dump` it; don’t post-hoc patch the file.\n- **Filter-then-aggregate** (like the DataFrame filtering examples): first filter raw silence events by `duration > 2s` and opening rule, then aggregate\u002Fmerge, then compute summary stats — never compute stats on unfiltered events.\n- **Guard empty inputs**: if no silence events survive filtering, still emit a valid report with `segments_removed: []` and `compressed_duration == original_duration`, and copy the input video to `compressed_video.mp4`.\n\n## Common Pitfalls to Avoid\n- Using closed intervals `[a, b]` on one side and half-open on the other → double-counted frames and `original ≠ compressed + removed`.\n- Merging only on overlap: leaves 0.3–1.5s speech slivers between back-to-back silences, causing audible stutter.\n- Forgetting to clamp the final interval to `total_duration` (silencedetect sometimes reports `silence_end` beyond EOF).\n- Using stream copy (`-c copy`) for cuts: keyframe snapping desyncs audio\u002Fvideo; prefer re-encode or use `-avoid_negative_ts make_zero` with concat demuxer on re-encoded parts.\n- Reporting `compression_percentage` as a 0–1 ratio instead of 0–100.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","controlled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-video-silence-remover-RI-002\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\u002Fcontrolled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-video-silence-remover-RI-002\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",[],[]]