[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EV7J9XZE6PWDF6V9VAERPM":3,"skill-same:01M7EV7J9XZE6PWDF6V9VAERPM":56},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EV7J9XZE6PWDF6V9VAERPM","correct-youtube-cards",null,"Work out what every end screen on a YouTube channel should point at, from the numbered series in its playlists, and flag proposed targets whose URL has changed. Use when auditing a series, after re-uploading a video, or whenever a video's URL changes.","tdupu\u002Fagent-skills-public","tdupu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3440403?v=4","01M7EV32X9J0EFE5T4P8TKQTCQ","Taylor Dupuy","01M7EV32XZ1Z4MDBYAFRCJD3BP",0,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Fcorrect-youtube-cards\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: correct-youtube-cards\ndescription: >-\n  Work out what every end screen on a YouTube channel should point at, from the\n  numbered series in its playlists, and flag proposed targets whose URL has\n  changed. Use when auditing a series, after re-uploading a video, or whenever\n  a video's URL changes.\n---\n\n# Make the end cards point somewhere sensible\n\nAn end screen should send a viewer to the next thing to watch: the next video\nin the **same series**, and at the end of a run, the playlist.\n\n**End screens and cards are absent from the YouTube Data API** - it has no\nresource for them (the Annotations API was retired in 2017 with no\nreplacement), so they cannot be read or written programmatically. This writes a\nworksheet; a person applies it in Studio. The script imports no networking and\ntouches no channel.\n\n## Series, not playlist order\n\nThe target is the next member of the same run, found by the text before the\nnumber in the title. Chaining playlist *neighbours* is wrong whenever a\nplaylist holds more than one run - a course plus one-offs, or two sub-series\ninterleaved - and sends \"Course part 1\" to \"Other part 1\".\n\nNumbers are detected from three patterns and **only** these: `- 12.1 -`,\n`part 03`, `pt. 4`. `Lecture 3`, `Episode 7`, `(3\u002F8)` and `#4` are invisible.\n\nTwo shapes are deliberately refused, because both invented runs:\n\n- **Dates.** `Seminar 2026-05-03: Motives` would read as series \"seminar 2026\",\n  episode 5, collapsing a year of talks into one run chained month to month and\n  raising a fault that does not exist. Rejected when the text before the number\n  ends in a year, or when the number itself is year-like.\n- **A series name under three characters** (`AG - 3 - sheaves`). But a title\n  that *leads* with its number is fine: `Part 1 - Introduction` keys on the\n  text after the number.\n\nA video in no detected run is given the **next playlist entry** instead, marked\n`(adjacent)` in the worksheet. That is a guess from adjacency, not a series.\n\n## Faults reported, before you build any cards\n\nFix these first; cards built on a broken order teach a broken order.\n\n- **Duplicate entries** - the same video listed twice. Remove the entry, not\n  the video.\n- **A run out of order** - part 4 before parts 1 and 2. Ordering is judged\n  within a run only, so two correctly-ordered runs interleaved are not a fault.\n- **Unreadable membership rows** - reported with a count. A dropped row removes\n  a video from a chain silently, so reconcile the count against your export.\n\nNot detected: duplicate episode *numbers* and gaps in a run.\n\n## The outputs\n\n1. **Set these end screens** - **one row per video**, which is the table to\n   work through. A video usually sits in several playlists, and a per-playlist\n   view hands you contradictory instructions for the same video. There is one\n   end screen per video, so there is one row. Precedence: a target from the\n   video's own numbered run beats one from adjacency; between two runs, the\n   smaller playlist wins as the more specific.\n2. **Videos whose playlists disagree** - where that precedence had to choose.\n   Check these by hand.\n3. **Proposed targets whose URL changed** - note the wording: the script cannot\n   read existing cards (no API exposes them), so this says a *proposed* target\n   has moved. It is a statement about your current cards only insofar as they\n   already follow the series rule. The old id still resolves if the superseded\n   copy was kept, so nothing errors and the viewer lands on the old version. A\n   private or unlisted original cannot be chosen as an end-screen target at all.\n4. **Sequences that do not make sense** - the faults above.\n5. **Entries outside the known set** - someone else's video, or one deleted.\n\nUnreadable membership rows are counted **in the worksheet**, not only on the\nterminal, because the worksheet outlives the terminal.\n\n## Procedure\n\n1. Export playlist membership with positions (`playlistItems.list`, paging\n   through each playlist) as\n   `[{\"playlist_id\",\"playlist_title\",\"position\",\"video_id\"}]`, and a\n   `{\"\u003Cid>\": \"\u003Ctitle>\"}` map. Check the row count against your export.\n2. `scripts\u002Fplan-cards.py --memberships M.json --titles T.json --out CARDS.md`,\n   adding `--replaced ids.txt` (one id per line) when URLs have changed and\n   `--id-map old-new.psv` (`old|new`) once replacements exist. `--id-map`\n   without `--replaced` is refused, because stale-target detection is gated on\n   the replaced set and would silently report none; an id map that parses to\n   nothing is also refused, rather than leaving every target \"pending\".\n3. Fix the faulted playlists, regenerate, then work through it in Studio.\n\nTests: `python3 tests\u002Ftest_plan_cards.py`.\n\n## Limitations\n\n- Title-based series detection only; see the closed pattern list above.\n- One end screen per video, which is why output 1 is per video rather than per\n  playlist. Mid-video cards need a human.\n- It cannot check whether a target is public or still exists without an API\n  call. Playlists with fewer than two entries produce no table.\n- Titles are truncated in the worksheet, so two videos sharing a long prefix\n  can look alike.\n","# Make the end cards point somewhere sensible\n\nAn end screen should send a viewer to the next thing to watch: the next video\nin the **same series**, and at the end of a run, the playlist.\n\n**End screens and cards are absent from the YouTube Data API** - it has no\nresource for them (the Annotations API was retired in 2017 with no\nreplacement), so they cannot be read or written programmatically. This writes a\nworksheet; a person applies it in Studio. The script imports no networking and\ntouches no channel.\n\n## Series, not playlist order\n\nThe target is the next member of the same run, found by the text before the\nnumber in the title. Chaining playlist *neighbours* is wrong whenever a\nplaylist holds more than one run - a course plus one-offs, or two sub-series\ninterleaved - and sends \"Course part 1\" to \"Other part 1\".\n\nNumbers are detected from three patterns and **only** these: `- 12.1 -`,\n`part 03`, `pt. 4`. `Lecture 3`, `Episode 7`, `(3\u002F8)` and `#4` are invisible.\n\nTwo shapes are deliberately refused, because both invented runs:\n\n- **Dates.** `Seminar 2026-05-03: Motives` would read as series \"seminar 2026\",\n  episode 5, collapsing a year of talks into one run chained month to month and\n  raising a fault that does not exist. Rejected when the text before the number\n  ends in a year, or when the number itself is year-like.\n- **A series name under three characters** (`AG - 3 - sheaves`). But a title\n  that *leads* with its number is fine: `Part 1 - Introduction` keys on the\n  text after the number.\n\nA video in no detected run is given the **next playlist entry** instead, marked\n`(adjacent)` in the worksheet. That is a guess from adjacency, not a series.\n\n## Faults reported, before you build any cards\n\nFix these first; cards built on a broken order teach a broken order.\n\n- **Duplicate entries** - the same video listed twice. Remove the entry, not\n  the video.\n- **A run out of order** - part 4 before parts 1 and 2. Ordering is judged\n  within a run only, so two correctly-ordered runs interleaved are not a fault.\n- **Unreadable membership rows** - reported with a count. A dropped row removes\n  a video from a chain silently, so reconcile the count against your export.\n\nNot detected: duplicate episode *numbers* and gaps in a run.\n\n## The outputs\n\n1. **Set these end screens** - **one row per video**, which is the table to\n   work through. A video usually sits in several playlists, and a per-playlist\n   view hands you contradictory instructions for the same video. There is one\n   end screen per video, so there is one row. Precedence: a target from the\n   video's own numbered run beats one from adjacency; between two runs, the\n   smaller playlist wins as the more specific.\n2. **Videos whose playlists disagree** - where that precedence had to choose.\n   Check these by hand.\n3. **Proposed targets whose URL changed** - note the wording: the script cannot\n   read existing cards (no API exposes them), so this says a *proposed* target\n   has moved. It is a statement about your current cards only insofar as they\n   already follow the series rule. The old id still resolves if the superseded\n   copy was kept, so nothing errors and the viewer lands on the old version. A\n   private or unlisted original cannot be chosen as an end-screen target at all.\n4. **Sequences that do not make sense** - the faults above.\n5. **Entries outside the known set** - someone else's video, or one deleted.\n\nUnreadable membership rows are counted **in the worksheet**, not only on the\nterminal, because the worksheet outlives the terminal.\n\n## Procedure\n\n1. Export playlist membership with positions (`playlistItems.list`, paging\n   through each playlist) as\n   `[{\"playlist_id\",\"playlist_title\",\"position\",\"video_id\"}]`, and a\n   `{\"\u003Cid>\": \"\u003Ctitle>\"}` map. Check the row count against your export.\n2. `scripts\u002Fplan-cards.py --memberships M.json --titles T.json --out CARDS.md`,\n   adding `--replaced ids.txt` (one id per line) when URLs have changed and\n   `--id-map old-new.psv` (`old|new`) once replacements exist. `--id-map`\n   without `--replaced` is refused, because stale-target detection is gated on\n   the replaced set and would silently report none; an id map that parses to\n   nothing is also refused, rather than leaving every target \"pending\".\n3. Fix the faulted playlists, regenerate, then work through it in Studio.\n\nTests: `python3 tests\u002Ftest_plan_cards.py`.\n\n## Limitations\n\n- Title-based series detection only; see the closed pattern list above.\n- One end screen per video, which is why output 1 is per video rather than per\n  playlist. Mid-video cards need a human.\n- It cannot check whether a target is public or still exists without an API\n  call. Playlists with fewer than two entries produce no table.\n- Titles are truncated in the worksheet, so two videos sharing a long prefix\n  can look alike.\n",{"name":5,"description":7},"main","8d13efb5e66306aeae6e3b948bc463e7e2db1b65","skills\u002Fcorrect-youtube-cards","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public","https:\u002F\u002Fgithub.com\u002Ftdupu","https:\u002F\u002Ftdupu.github.io\u002Findex.html","Associate Professor, Department of Mathematics and Statistics, University of Vermont --- last updated Fall 2019","2026-11-13 09:07:19",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tdupu\u002Fagent-skills-public --skill correct-youtube-cards",{"tool":38,"command":39},"bunx","bunx skills add tdupu\u002Fagent-skills-public --skill correct-youtube-cards",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tdupu\u002Fagent-skills-public --skill correct-youtube-cards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Fcorrect-youtube-cards\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"scripts\u002Fplan-cards.py","SCRIPT","脚本",14337,"https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Fcorrect-youtube-cards\u002Fscripts\u002Fplan-cards.py",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"tests\u002Ftest_plan_cards.py",7913,"https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Fcorrect-youtube-cards\u002Ftests\u002Ftest_plan_cards.py",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EW4PT586KKE7VRCAD80Z9K","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7EW4HV5V74AF3PTV8N4T0PS","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7EW4DNKGP5CR1RAJP2J9PHA","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7EW4BA2QP88VBFVXDVJM7XQ","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EW47F2JG5FBESDJNP3PKMV","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7EW44N8556Y556NX9HJT4KP","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]