[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H43X98WJDTHP91RT8R5KR1":3,"skill-same:01M6H43X98WJDTHP91RT8R5KR1":137},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H43X98WJDTHP91RT8R5KR1","rip-cd",null,"Rip an audio CD in the optical drive into Apple Music and the NAS: identify it on MusicBrainz, ask the usual questions, securely rip and verify it against AccurateRip, then make tagged MP3 320s (to Apple Music) and WAVs (lossless backup) from the one verified rip. Use when the user has a CD in the drive (\"rip this CD\", \"import the disc\", \"I've put disc 2 in\"), even if they don't say \"rip\", and to carry on with a disc already ripped (\"disc 1 looks right in Apple Music, put it on the NAS\"). Not for downloaded purchases (process-album) or for fixing an album already in Apple Music (audit-release).","eyelock\u002Fassistants","eyelock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1277325?v=4","01M6H423MGYJ0P316VZ2MMH75N","David Collie","01M6H423RR18QA9N8S2F3J8S8X",1,"MIT","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"rip cd","cd","use","when","for","questions","with","import","apple","mp3","say","release","process","write","read","ask","Bash","verify","Audio","backup","audit","2026-11-10 10:12:30",false,"---\nname: rip-cd\ndescription: >-\n  Rip an audio CD in the optical drive into Apple Music and the NAS: identify\n  it on MusicBrainz, ask the usual questions, securely rip and verify it\n  against AccurateRip, then make tagged MP3 320s (to Apple Music) and WAVs\n  (lossless backup) from the one verified rip. Use when the user has a CD in\n  the drive (\"rip this CD\", \"import the disc\", \"I've put disc 2 in\"), even\n  if they don't say \"rip\", and to carry on with a disc already ripped (\"disc\n  1 looks right in Apple Music, put it on the NAS\"). Not for downloaded\n  purchases (process-album) or for fixing an album already in Apple Music\n  (audit-release).\nallowed-tools: Bash Read Write Skill\n---\n\n## Why not Apple Music's own import\n\nApple Music's CD import names tracks from its own lookup, which for many\ndiscs repeats the release name on every title (\"Intro (live at Foro Sol\n(Mexico City) 21\u002F23\u002F25.09.23)\"), files each disc of a set as its own album\n(\"M\" and \"M [Disc 2]\"), guesses artwork that is often for a different album,\nand never checks the rip or keeps a lossless copy. This skill does all of it\nitself. **If Apple Music starts importing the disc on its own, tell the user\nto cancel that import first**; to stop it for good, Music > Settings >\nGeneral > \"When a CD is inserted\" > \"Show CD\".\n\n## Setup\n\n```bash\nbash ..\u002Fsetup\u002Fscripts\u002Fcheck-config.sh\n```\n\nNeeds `library_import`, `library_storage` and `archive_workdir`. Uses\n`cd_read_offset` (the drive's read offset in samples) and `work_dir` (where\ntemporary work goes) when set. If a\nrequired key is `missing`, stop and run the `setup` skill.\n\nThen check the tools:\n\n```bash\nbash scripts\u002Fcheck-deps.sh\n```\n\nIf `ok` is false, **stop**. Tell the user which tools are missing and the\n`install_command`, and offer to run it. Run it only when they say yes; never\nrip with a tool missing.\n\n## Running the scripts\n\nScripts are in `scripts\u002F` in this skill's base directory. Run each one as a\nsingle command by its **absolute path**, with no redirect, pipe or `&&`, and\nsave JSON with the script's own `--out FILE`:\n\n```bash\nbash \u002Fabs\u002Fpath\u002Fto\u002Fskills\u002Frip-cd\u002Fscripts\u002Fread-disc.sh --out \"$WORK\u002Fdisc.json\"\n```\n\nThe plugin's safety hook auto-approves exactly that shape; anything else\n(`> file.json`, `| jq`, a relative `scripts\u002F...` path) asks the user every\ntime. Below, `scripts\u002Fx.sh` is shorthand for that absolute path.\n\nWork in one temporary folder per release, `$WORK`, from\n`scripts\u002Fwork-dir.sh \"\u003Cname>\"` (its `work_dir`): `cd-rip` while the release\nis unknown, `cd-rip-\u003CArtist> - \u003CAlbum>` once a set's first disc is chosen\n(keep using whichever folder the set started in). It lives under the\nsystem's temp folder, never in Downloads or the user's home: nothing in it\nis the only copy of anything once a disc is archived, because the release\nrecord and cover go to the NAS with the WAVs.\n\n## Scripts\n\n- **`work-dir.sh \u003Cname>`**: the temporary work folder for a release.\n- **`check-deps.sh`**: are cd-paranoia, ffmpeg (with LAME), python3, curl and jq installed.\n- **`read-disc.sh`**: the disc's table of contents, its MusicBrainz disc ID and AccurateRip IDs (computed locally), and any names macOS shows for it, with repeated suffixes found.\n- **`lookup-release.sh \u003Cdisc.json>`**: every MusicBrainz release that disc belongs to.\n- **`make-release-record.sh --release-id ID --genre G [...]`**: the release record (`release.json`) all later steps read.\n- **`fetch-cover.sh \u003Crelease_id> \u003Ccover.jpg>`**: the front cover from the Cover Art Archive, padded square.\n- **`rip-disc.sh \u003Cdir> --offset N`**: secure rip to `01.wav`, `02.wav`, ...\n- **`verify-accuraterip.sh \u003Cdir> \u003Cdisc.json>`**: checksums against AccurateRip.\n- **`encode-release.sh \u003Cdir> \u003Crelease.json> \u003Cdisc> \u003Cout> --cover cover.jpg`**: `mp3\u002F` (320 kbps, tagged, cover embedded) and `wav\u002F` (the rip, untouched, renamed, plus release.json and cover.jpg).\n- **`update-record.sh \u003Crelease.json> --disc N [--accuraterip S] [--discid ID] [--title N=T]`**: record a disc's verdict, ID or a corrected title, in the record and its copies in the work folder.\n- **`eject-disc.sh`**: eject the disc.\n\nEvery script takes `--help`.\n\n## Workflow\n\n### Step 1: Identify the disc\n\n```bash\nbash scripts\u002Fread-disc.sh --out \"$WORK\u002Fdisc.json\"\nbash scripts\u002Flookup-release.sh \"$WORK\u002Fdisc.json\" --out \"$WORK\u002Flookup.json\"\n```\n\nExit 2 from read-disc means no disc: ask the user to insert one.\n\nAs soon as the lookup returns, **tell the user what the disc is**: artist,\nalbum, which disc of how many, and track count (\"This is Night Drive -\nAfterglow Live, disc 1, 3 tracks\"). When several releases carry the disc,\nsay so in the same breath and that the barcode on the back of the case tells\nthem apart (Step 3, question 1). Every message that asks a question repeats\nthe disc's name, so the user never has to scroll back to know which disc\nthe question is about.\n\n**Is this a later disc of a release already started?** Look for a\n`release.json` whose discs list this disc ID in `known_discids` or\n`mb_discid`: in `$ARCHIVE_WORKDIR\u002Fto_nas\u002Fwav\u002F*\u002F*\u002Frelease.json` (Glob) and in\nthe work folders beside `$WORK`. If one matches, say so (\"this is disc 2 of\nM, which you ripped on 19 Oct\"), **reuse that record's answers** (no\nquestions in Step 3) and record the disc's ID:\n`scripts\u002Fupdate-record.sh \"$RECORD\" --disc N --discid \"$DISCID\"`. When the\nmatch is on the NAS only, copy that record into `$WORK` with the Read and\nWrite tools first. Every disc of a release must carry\nidentical Album, Album Artist and disc total, or Apple Music splits the\nrelease into several albums.\n\n### Step 2: Start the rip\n\nThe rip needs no answers, so start it now and ask the questions while it\nruns (15-25 minutes for a full CD). Run it in the background\n(`run_in_background`), and tell the user it is running:\n\n```bash\nbash scripts\u002Frip-disc.sh \"$WORK\u002Frip-disc$N\" --offset \"$CD_READ_OFFSET\" --out \"$WORK\u002Frip-disc$N.json\"\n```\n\n`$N` is which disc of the release this is; until the release is chosen, use\nthe candidate's `audio_disc`. \"405: Option not supported by drive\" in its\noutput is the drive declining an optional speed command and is harmless.\n\nIf `cd_read_offset` is not configured, say the AccurateRip check will\nprobably fail until it is, and rip with 0: the rip is still secure. The\noffset for a drive model is in AccurateRip's drive list; once a rip verifies\nwith it, add it to config.json as `cd_read_offset`.\n\n### Step 3: Ask the questions, one at a time\n\nWait for each answer before asking the next. Show concrete values, never a\ntemplate. **Answers the user already gave count**: an edition named in their\nmessage (\"the 2-CD edition\", \"the box set\", a barcode), a genre, a title\nchoice. Take those and ask only what is still open; never ask for the\nbarcode when they have said which edition. Ask a question only when there\nis a real choice to make; otherwise state the value and move on.\n\n1. **Which release** (only when `lookup.json` has several candidates and\n   the user has not already said which): first name the disc, artist and\n   album (\"This is Night Drive - Afterglow Live\"), then show each edition\n   (what it holds, e.g. \"DVD + 2 CDs\"), country, date and barcode, since\n   the barcode on the case settles it. Box sets list Blu-rays and DVDs too; the\n   disc tags count audio CDs only (`audio_disc` of `audio_disc_total`).\n2. **Album title**: MusicBrainz's, stated, not asked. Ask only when there\n   is a real alternative: the user's library names related albums\n   differently (check with `..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh\n   --artist \"\u003Cartist>\"`), e.g. its title case against MusicBrainz's lower\n   case.\n3. **Track titles**: only when there is a real choice. Show the differing\n   titles side by side:\n   - MusicBrainz leaves versions out of titles (\"In Your Room\" for the\n     Zephyr Mix) and uses its own capitalization. When macOS showed names\n     for the disc (`mac_titles`), offer those with the release-wide suffix\n     stripped as the alternative. Strip a suffix that describes the whole\n     release (\"(live at ...)\"); keep one that tells tracks apart (\"(Memento\n     Mori Sessions)\" on four bonus tracks).\n   - Typographic punctuation: MusicBrainz writes \"True Faith‐94\" with a\n     Unicode hyphen (U+2010), which a search for \"-94\" does not find. Check\n     the titles **of the disc being ripped now** for ‐ – — ’ “ ” ″ and, if\n     any has one, name those titles and offer plain punctuation, even when\n     the user said to keep MusicBrainz's titles: they look the same. Titles\n     on discs not ripped yet wait for their own disc (then change them with\n     `update-record.sh --title`); do not hold this disc up for them.\n4. **Genre**: never pick it. Offer numbered options: the genres the user's\n   library uses for this artist, most used first (from music-tracks.sh),\n   then the rest of the library's genres\n   (`..\u002Fmanage-metadata\u002Fscripts\u002Fextract-apple-music-genres.sh`), or their own.\n5. **Album Artist**: only ask when the tracks have more than one artist\n   (see `..\u002Fprocess-album\u002Freferences\u002Falbum-types.md`). Otherwise it is the\n   artist. Always set it, even for a single artist: an empty Album Artist\n   is one of the ways a later disc ends up as a separate album.\n\nWhen MusicBrainz has no match (`\"match\": \"none\"`), build the titles from\n`mac_titles.stripped` (or ask the user for them), and write the record by\nhand in the same shape, with `mb_release_id: null`.\n\nThen write the record and fetch the cover:\n\n```bash\nbash scripts\u002Fmake-release-record.sh --release-id \"$ID\" --genre \"$GENRE\" \\\n  [--album \"$ALBUM\"] [--album-artist \"$AA\"] [--plain-punctuation] \\\n  [--titles-from titles.json] --discid \"$N=$DISCID\" --out \"$WORK\u002Frelease.json\"\nbash scripts\u002Ffetch-cover.sh \"$ID\" \"$WORK\u002Fcover.jpg\"\n```\n\nA `titles.json` for `--titles-from` is written with the Write tool. MusicBrainz\nallows one request a second; the scripts retry its \"503\" themselves.\n\nShow the user the cover (Read the image). The Archive's primary front is\nsometimes a photo of a shrink-wrapped box; if it looks wrong, say so. Never\nlet Apple Music pick artwork.\n\n### Step 4: Verify the rip\n\nWhen the rip finishes (exit 3 means a track could not be read cleanly: stop\nand suggest cleaning the disc):\n\n```bash\nbash scripts\u002Fverify-accuraterip.sh \"$WORK\u002Frip-disc$N\" \"$WORK\u002Fdisc.json\" --out \"$WORK\u002Fverify-disc$N.json\"\n```\n\n- `verified`: every track matched; say how many other rips agreed.\n- `not_in_database`: nobody has submitted this pressing; the rip is still\n  secure, just not cross-checked. Carry on.\n- `partial`: name the tracks that did not match. Those may be damaged\n  (re-rip them with `--tracks`) or simply rare. Ask before carrying on.\n- `mismatch`: no track matched, nearly always a wrong `cd_read_offset`.\n  Stop and say so.\n\nRecord the verdict, so the NAS copy says the rip was checked:\n\n```bash\nbash scripts\u002Fupdate-record.sh \"$WORK\u002Frelease.json\" --disc \"$N\" --accuraterip verified\n```\n\n### Step 5: Encode\n\n```bash\nbash scripts\u002Fencode-release.sh \"$WORK\u002Frip-disc$N\" \"$WORK\u002Frelease.json\" \"$N\" \"$WORK\u002Fdisc$N\" \\\n  --cover \"$WORK\u002Fcover.jpg\"\n```\n\nBoth formats come from the one verified rip: the WAVs are its audio\nuntouched, the MP3s are encoded from it.\n\n### Step 6: Import the MP3s\n\n**First, is the release already in Apple Music?** (A re-rip to replace a bad\nimport, or an earlier attempt.) Check with\n`..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh --artist \"$ARTIST\"` and look for\nthis album under any of its names (\"M\", \"M [Disc 2]\"). If it is there and\nno snapshot exists yet, save one **before importing**, so the old tracks\ncan be told apart from the new ones later:\n`..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh --artist \"$ARTIST\" --album \"\u003Cname>\" [--album ...] --out \"$WORK\u002Fold-tracks.json\"`,\nand tell the user it was saved. Removing them later is `audit-release`'s\njob (see \"Replacing an old import\" below).\n\n→ `Skill(\"media-management:import-to-apple-music\", args=\"$WORK\u002Fdisc$N\u002Fmp3\")`\n\nIts script takes `--wait 120`: use it, so the audit below sees the new\ntracks. Apple Music may take a few seconds per disc. Then ask the user to check Apple Music: one album, the right cover, the right\ndisc number. **Do not continue until they confirm.** That message always\nsummarizes, in this order: which disc of which release (\"disc 2 of 2 of\nNight Drive - Afterglow Live\", and for a later disc that its answers came\nfrom the record saved with disc 1), the AccurateRip verdict (\"3 of 3 tracks\nverified\"), what went into Apple Music, and what comes next. Then confirm it with the\naudit (read-only):\n\n```bash\nbash ..\u002Faudit-release\u002Fscripts\u002Faudit-release.sh --artist \"$ARTIST\" --album \"$ALBUM\" \\\n  --release \"$WORK\u002Frelease.json\" --out \"$WORK\u002Faudit.json\"\n```\n\nEvery check about Apple Music and the files must pass (`one_album`,\n`album_artist`, `disc_tags`, `clean_titles`, `release_id`, `artwork`,\n`mp3_320`). `complete` fails until every disc of a set is imported, and the\nNAS checks until this disc is archived; both are expected. Anything else\nfailing: use the `audit-release` skill to repair it before archiving.\n\n**If the user corrects a title now**, change it in the record\n(`update-record.sh --title N=...`), then plan and apply it in Apple Music with\n`..\u002Faudit-release\u002Fscripts\u002Frepair-release.sh`, and re-run Step 5 with\n`--wav-only` so the WAV names match.\n\n### Step 7: Archive to the NAS\n\n→ `Skill(\"media-management:archive-media\", args=\"mp3 \\\"$AA_FOLDER\\\" \\\"$ALBUM_FOLDER\\\"\")`\n→ `Skill(\"media-management:archive-media\", args=\"wav \\\"$AA_FOLDER\\\" \\\"$ALBUM_FOLDER\\\" \\\"$WORK\u002Fdisc$N\u002Fwav\\\"\")`\n\nUse the folder names Apple Music actually used (the audit's\n`paths.library_folders`): it writes \":\", \"\u002F\" and other characters as \"_\".\nThe MP3 archive re-copies the whole album from Apple Music, which is fine:\nearlier discs are overwritten with the same files. The WAV archive adds this\ndisc to the folder, with `release.json` and `cover.jpg`; its `verified`\nchecks this disc's files, so earlier discs already there do not count\nagainst it.\n\n### Replacing an old import\n\nWhen the rip replaces an earlier import of the same release (the user asked\nto \"replace\" a bad import), removing the old tracks is **not this skill's\njob**: hand over to the `audit-release` skill (its Step 6), which shows the\nexact tracks first and removes nothing without a yes to that list. Never\nrun its `remove-tracks.sh --confirm` from here.\n\n### Step 8: Next disc, and cleanup\n\nIf the release has more discs, ask the user to insert the next one and go\nback to Step 1, which will recognise it. Otherwise, or when the user stops:\n\n- Once the audit passes, say how big `$WORK` is (several GB for a box set:\n  every rip and encode) and offer to delete it. Delete only with a yes. An\n  unfinished set loses nothing either way: its record is on the NAS.\n- Offer to eject: `scripts\u002Feject-disc.sh`.\n","## Why not Apple Music's own import\n\nApple Music's CD import names tracks from its own lookup, which for many\ndiscs repeats the release name on every title (\"Intro (live at Foro Sol\n(Mexico City) 21\u002F23\u002F25.09.23)\"), files each disc of a set as its own album\n(\"M\" and \"M [Disc 2]\"), guesses artwork that is often for a different album,\nand never checks the rip or keeps a lossless copy. This skill does all of it\nitself. **If Apple Music starts importing the disc on its own, tell the user\nto cancel that import first**; to stop it for good, Music > Settings >\nGeneral > \"When a CD is inserted\" > \"Show CD\".\n\n## Setup\n\n```bash\nbash ..\u002Fsetup\u002Fscripts\u002Fcheck-config.sh\n```\n\nNeeds `library_import`, `library_storage` and `archive_workdir`. Uses\n`cd_read_offset` (the drive's read offset in samples) and `work_dir` (where\ntemporary work goes) when set. If a\nrequired key is `missing`, stop and run the `setup` skill.\n\nThen check the tools:\n\n```bash\nbash scripts\u002Fcheck-deps.sh\n```\n\nIf `ok` is false, **stop**. Tell the user which tools are missing and the\n`install_command`, and offer to run it. Run it only when they say yes; never\nrip with a tool missing.\n\n## Running the scripts\n\nScripts are in `scripts\u002F` in this skill's base directory. Run each one as a\nsingle command by its **absolute path**, with no redirect, pipe or `&&`, and\nsave JSON with the script's own `--out FILE`:\n\n```bash\nbash \u002Fabs\u002Fpath\u002Fto\u002Fskills\u002Frip-cd\u002Fscripts\u002Fread-disc.sh --out \"$WORK\u002Fdisc.json\"\n```\n\nThe plugin's safety hook auto-approves exactly that shape; anything else\n(`> file.json`, `| jq`, a relative `scripts\u002F...` path) asks the user every\ntime. Below, `scripts\u002Fx.sh` is shorthand for that absolute path.\n\nWork in one temporary folder per release, `$WORK`, from\n`scripts\u002Fwork-dir.sh \"\u003Cname>\"` (its `work_dir`): `cd-rip` while the release\nis unknown, `cd-rip-\u003CArtist> - \u003CAlbum>` once a set's first disc is chosen\n(keep using whichever folder the set started in). It lives under the\nsystem's temp folder, never in Downloads or the user's home: nothing in it\nis the only copy of anything once a disc is archived, because the release\nrecord and cover go to the NAS with the WAVs.\n\n## Scripts\n\n- **`work-dir.sh \u003Cname>`**: the temporary work folder for a release.\n- **`check-deps.sh`**: are cd-paranoia, ffmpeg (with LAME), python3, curl and jq installed.\n- **`read-disc.sh`**: the disc's table of contents, its MusicBrainz disc ID and AccurateRip IDs (computed locally), and any names macOS shows for it, with repeated suffixes found.\n- **`lookup-release.sh \u003Cdisc.json>`**: every MusicBrainz release that disc belongs to.\n- **`make-release-record.sh --release-id ID --genre G [...]`**: the release record (`release.json`) all later steps read.\n- **`fetch-cover.sh \u003Crelease_id> \u003Ccover.jpg>`**: the front cover from the Cover Art Archive, padded square.\n- **`rip-disc.sh \u003Cdir> --offset N`**: secure rip to `01.wav`, `02.wav`, ...\n- **`verify-accuraterip.sh \u003Cdir> \u003Cdisc.json>`**: checksums against AccurateRip.\n- **`encode-release.sh \u003Cdir> \u003Crelease.json> \u003Cdisc> \u003Cout> --cover cover.jpg`**: `mp3\u002F` (320 kbps, tagged, cover embedded) and `wav\u002F` (the rip, untouched, renamed, plus release.json and cover.jpg).\n- **`update-record.sh \u003Crelease.json> --disc N [--accuraterip S] [--discid ID] [--title N=T]`**: record a disc's verdict, ID or a corrected title, in the record and its copies in the work folder.\n- **`eject-disc.sh`**: eject the disc.\n\nEvery script takes `--help`.\n\n## Workflow\n\n### Step 1: Identify the disc\n\n```bash\nbash scripts\u002Fread-disc.sh --out \"$WORK\u002Fdisc.json\"\nbash scripts\u002Flookup-release.sh \"$WORK\u002Fdisc.json\" --out \"$WORK\u002Flookup.json\"\n```\n\nExit 2 from read-disc means no disc: ask the user to insert one.\n\nAs soon as the lookup returns, **tell the user what the disc is**: artist,\nalbum, which disc of how many, and track count (\"This is Night Drive -\nAfterglow Live, disc 1, 3 tracks\"). When several releases carry the disc,\nsay so in the same breath and that the barcode on the back of the case tells\nthem apart (Step 3, question 1). Every message that asks a question repeats\nthe disc's name, so the user never has to scroll back to know which disc\nthe question is about.\n\n**Is this a later disc of a release already started?** Look for a\n`release.json` whose discs list this disc ID in `known_discids` or\n`mb_discid`: in `$ARCHIVE_WORKDIR\u002Fto_nas\u002Fwav\u002F*\u002F*\u002Frelease.json` (Glob) and in\nthe work folders beside `$WORK`. If one matches, say so (\"this is disc 2 of\nM, which you ripped on 19 Oct\"), **reuse that record's answers** (no\nquestions in Step 3) and record the disc's ID:\n`scripts\u002Fupdate-record.sh \"$RECORD\" --disc N --discid \"$DISCID\"`. When the\nmatch is on the NAS only, copy that record into `$WORK` with the Read and\nWrite tools first. Every disc of a release must carry\nidentical Album, Album Artist and disc total, or Apple Music splits the\nrelease into several albums.\n\n### Step 2: Start the rip\n\nThe rip needs no answers, so start it now and ask the questions while it\nruns (15-25 minutes for a full CD). Run it in the background\n(`run_in_background`), and tell the user it is running:\n\n```bash\nbash scripts\u002Frip-disc.sh \"$WORK\u002Frip-disc$N\" --offset \"$CD_READ_OFFSET\" --out \"$WORK\u002Frip-disc$N.json\"\n```\n\n`$N` is which disc of the release this is; until the release is chosen, use\nthe candidate's `audio_disc`. \"405: Option not supported by drive\" in its\noutput is the drive declining an optional speed command and is harmless.\n\nIf `cd_read_offset` is not configured, say the AccurateRip check will\nprobably fail until it is, and rip with 0: the rip is still secure. The\noffset for a drive model is in AccurateRip's drive list; once a rip verifies\nwith it, add it to config.json as `cd_read_offset`.\n\n### Step 3: Ask the questions, one at a time\n\nWait for each answer before asking the next. Show concrete values, never a\ntemplate. **Answers the user already gave count**: an edition named in their\nmessage (\"the 2-CD edition\", \"the box set\", a barcode), a genre, a title\nchoice. Take those and ask only what is still open; never ask for the\nbarcode when they have said which edition. Ask a question only when there\nis a real choice to make; otherwise state the value and move on.\n\n1. **Which release** (only when `lookup.json` has several candidates and\n   the user has not already said which): first name the disc, artist and\n   album (\"This is Night Drive - Afterglow Live\"), then show each edition\n   (what it holds, e.g. \"DVD + 2 CDs\"), country, date and barcode, since\n   the barcode on the case settles it. Box sets list Blu-rays and DVDs too; the\n   disc tags count audio CDs only (`audio_disc` of `audio_disc_total`).\n2. **Album title**: MusicBrainz's, stated, not asked. Ask only when there\n   is a real alternative: the user's library names related albums\n   differently (check with `..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh\n   --artist \"\u003Cartist>\"`), e.g. its title case against MusicBrainz's lower\n   case.\n3. **Track titles**: only when there is a real choice. Show the differing\n   titles side by side:\n   - MusicBrainz leaves versions out of titles (\"In Your Room\" for the\n     Zephyr Mix) and uses its own capitalization. When macOS showed names\n     for the disc (`mac_titles`), offer those with the release-wide suffix\n     stripped as the alternative. Strip a suffix that describes the whole\n     release (\"(live at ...)\"); keep one that tells tracks apart (\"(Memento\n     Mori Sessions)\" on four bonus tracks).\n   - Typographic punctuation: MusicBrainz writes \"True Faith‐94\" with a\n     Unicode hyphen (U+2010), which a search for \"-94\" does not find. Check\n     the titles **of the disc being ripped now** for ‐ – — ’ “ ” ″ and, if\n     any has one, name those titles and offer plain punctuation, even when\n     the user said to keep MusicBrainz's titles: they look the same. Titles\n     on discs not ripped yet wait for their own disc (then change them with\n     `update-record.sh --title`); do not hold this disc up for them.\n4. **Genre**: never pick it. Offer numbered options: the genres the user's\n   library uses for this artist, most used first (from music-tracks.sh),\n   then the rest of the library's genres\n   (`..\u002Fmanage-metadata\u002Fscripts\u002Fextract-apple-music-genres.sh`), or their own.\n5. **Album Artist**: only ask when the tracks have more than one artist\n   (see `..\u002Fprocess-album\u002Freferences\u002Falbum-types.md`). Otherwise it is the\n   artist. Always set it, even for a single artist: an empty Album Artist\n   is one of the ways a later disc ends up as a separate album.\n\nWhen MusicBrainz has no match (`\"match\": \"none\"`), build the titles from\n`mac_titles.stripped` (or ask the user for them), and write the record by\nhand in the same shape, with `mb_release_id: null`.\n\nThen write the record and fetch the cover:\n\n```bash\nbash scripts\u002Fmake-release-record.sh --release-id \"$ID\" --genre \"$GENRE\" \\\n  [--album \"$ALBUM\"] [--album-artist \"$AA\"] [--plain-punctuation] \\\n  [--titles-from titles.json] --discid \"$N=$DISCID\" --out \"$WORK\u002Frelease.json\"\nbash scripts\u002Ffetch-cover.sh \"$ID\" \"$WORK\u002Fcover.jpg\"\n```\n\nA `titles.json` for `--titles-from` is written with the Write tool. MusicBrainz\nallows one request a second; the scripts retry its \"503\" themselves.\n\nShow the user the cover (Read the image). The Archive's primary front is\nsometimes a photo of a shrink-wrapped box; if it looks wrong, say so. Never\nlet Apple Music pick artwork.\n\n### Step 4: Verify the rip\n\nWhen the rip finishes (exit 3 means a track could not be read cleanly: stop\nand suggest cleaning the disc):\n\n```bash\nbash scripts\u002Fverify-accuraterip.sh \"$WORK\u002Frip-disc$N\" \"$WORK\u002Fdisc.json\" --out \"$WORK\u002Fverify-disc$N.json\"\n```\n\n- `verified`: every track matched; say how many other rips agreed.\n- `not_in_database`: nobody has submitted this pressing; the rip is still\n  secure, just not cross-checked. Carry on.\n- `partial`: name the tracks that did not match. Those may be damaged\n  (re-rip them with `--tracks`) or simply rare. Ask before carrying on.\n- `mismatch`: no track matched, nearly always a wrong `cd_read_offset`.\n  Stop and say so.\n\nRecord the verdict, so the NAS copy says the rip was checked:\n\n```bash\nbash scripts\u002Fupdate-record.sh \"$WORK\u002Frelease.json\" --disc \"$N\" --accuraterip verified\n```\n\n### Step 5: Encode\n\n```bash\nbash scripts\u002Fencode-release.sh \"$WORK\u002Frip-disc$N\" \"$WORK\u002Frelease.json\" \"$N\" \"$WORK\u002Fdisc$N\" \\\n  --cover \"$WORK\u002Fcover.jpg\"\n```\n\nBoth formats come from the one verified rip: the WAVs are its audio\nuntouched, the MP3s are encoded from it.\n\n### Step 6: Import the MP3s\n\n**First, is the release already in Apple Music?** (A re-rip to replace a bad\nimport, or an earlier attempt.) Check with\n`..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh --artist \"$ARTIST\"` and look for\nthis album under any of its names (\"M\", \"M [Disc 2]\"). If it is there and\nno snapshot exists yet, save one **before importing**, so the old tracks\ncan be told apart from the new ones later:\n`..\u002Faudit-release\u002Fscripts\u002Fmusic-tracks.sh --artist \"$ARTIST\" --album \"\u003Cname>\" [--album ...] --out \"$WORK\u002Fold-tracks.json\"`,\nand tell the user it was saved. Removing them later is `audit-release`'s\njob (see \"Replacing an old import\" below).\n\n→ `Skill(\"media-management:import-to-apple-music\", args=\"$WORK\u002Fdisc$N\u002Fmp3\")`\n\nIts script takes `--wait 120`: use it, so the audit below sees the new\ntracks. Apple Music may take a few seconds per disc. Then ask the user to check Apple Music: one album, the right cover, the right\ndisc number. **Do not continue until they confirm.** That message always\nsummarizes, in this order: which disc of which release (\"disc 2 of 2 of\nNight Drive - Afterglow Live\", and for a later disc that its answers came\nfrom the record saved with disc 1), the AccurateRip verdict (\"3 of 3 tracks\nverified\"), what went into Apple Music, and what comes next. Then confirm it with the\naudit (read-only):\n\n```bash\nbash ..\u002Faudit-release\u002Fscripts\u002Faudit-release.sh --artist \"$ARTIST\" --album \"$ALBUM\" \\\n  --release \"$WORK\u002Frelease.json\" --out \"$WORK\u002Faudit.json\"\n```\n\nEvery check about Apple Music and the files must pass (`one_album`,\n`album_artist`, `disc_tags`, `clean_titles`, `release_id`, `artwork`,\n`mp3_320`). `complete` fails until every disc of a set is imported, and the\nNAS checks until this disc is archived; both are expected. Anything else\nfailing: use the `audit-release` skill to repair it before archiving.\n\n**If the user corrects a title now**, change it in the record\n(`update-record.sh --title N=...`), then plan and apply it in Apple Music with\n`..\u002Faudit-release\u002Fscripts\u002Frepair-release.sh`, and re-run Step 5 with\n`--wav-only` so the WAV names match.\n\n### Step 7: Archive to the NAS\n\n→ `Skill(\"media-management:archive-media\", args=\"mp3 \\\"$AA_FOLDER\\\" \\\"$ALBUM_FOLDER\\\"\")`\n→ `Skill(\"media-management:archive-media\", args=\"wav \\\"$AA_FOLDER\\\" \\\"$ALBUM_FOLDER\\\" \\\"$WORK\u002Fdisc$N\u002Fwav\\\"\")`\n\nUse the folder names Apple Music actually used (the audit's\n`paths.library_folders`): it writes \":\", \"\u002F\" and other characters as \"_\".\nThe MP3 archive re-copies the whole album from Apple Music, which is fine:\nearlier discs are overwritten with the same files. The WAV archive adds this\ndisc to the folder, with `release.json` and `cover.jpg`; its `verified`\nchecks this disc's files, so earlier discs already there do not count\nagainst it.\n\n### Replacing an old import\n\nWhen the rip replaces an earlier import of the same release (the user asked\nto \"replace\" a bad import), removing the old tracks is **not this skill's\njob**: hand over to the `audit-release` skill (its Step 6), which shows the\nexact tracks first and removes nothing without a yes to that list. Never\nrun its `remove-tracks.sh --confirm` from here.\n\n### Step 8: Next disc, and cleanup\n\nIf the release has more discs, ask the user to insert the next one and go\nback to Step 1, which will recognise it. Otherwise, or when the user stops:\n\n- Once the audit passes, say how big `$WORK` is (several GB for a box set:\n  every rip and encode) and offer to delete it. Delete only with a yes. An\n  unfinished set loses nothing either way: its record is on the NAS.\n- Offer to eject: `scripts\u002Feject-disc.sh`.\n",{"name":5,"description":7,"allowed-tools":45},"Bash Read Write Skill","develop","5f79513fe27520bf03af784e8df568a04931c48d","plugins\u002Fmedia-management\u002Fskills\u002Frip-cd",0,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants","https:\u002F\u002Feyelock.github.io\u002Fassistants\u002F","https:\u002F\u002Fgithub.com\u002Feyelock","http:\u002F\u002Fwww.eyelock.net\u002Fblog","2026-11-15 02:19:21",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add eyelock\u002Fassistants --skill rip-cd",{"tool":61,"command":62},"bunx","bunx skills add eyelock\u002Fassistants --skill rip-cd",{"tool":64,"command":65},"pnpm","pnpm dlx skills add eyelock\u002Fassistants --skill rip-cd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002FSKILL.md",true,[69,75,79,85,89,93,97,101,105,109,113,117,121,125,129,133],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Feval_queries.json","REFERENCE","参考文档",1514,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fevals\u002Feval_queries.json",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fevals.json",16834,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fevals\u002Fevals.json",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fcheck-deps.sh","SCRIPT","脚本",3457,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fcheck-deps.sh",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Feject-disc.sh",804,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Feject-disc.sh",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fencode-release.sh",7067,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fencode-release.sh",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Ffetch-cover.sh",4082,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Ffetch-cover.sh",{"path":98,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Flib\u002Faccuraterip.py",3005,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Flib\u002Faccuraterip.py",{"path":102,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":103,"sourceHtmlUrl":104},"scripts\u002Flib\u002Fdisc.py",4993,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Flib\u002Fdisc.py",{"path":106,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Flib\u002Fout.sh",1106,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Flib\u002Fout.sh",{"path":110,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Flookup-release.sh",6931,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Flookup-release.sh",{"path":114,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fmake-release-record.sh",7070,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fmake-release-record.sh",{"path":118,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fread-disc.sh",5168,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fread-disc.sh",{"path":122,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Frip-disc.sh",4075,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Frip-disc.sh",{"path":126,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fupdate-record.sh",4313,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fupdate-record.sh",{"path":130,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fverify-accuraterip.sh",4225,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fverify-accuraterip.sh",{"path":134,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":135,"sourceHtmlUrl":136},"scripts\u002Fwork-dir.sh",1983,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fmedia-management\u002Fskills\u002Frip-cd\u002Fscripts\u002Fwork-dir.sh",[138,144,168,184,196,209],{"skillNo":139,"name":140,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":40},"01M6H46CHAJFE20J3Q118P9PW9","doctor","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fwheelhouse\u002Fskills\u002Fdoctor\u002FSKILL.md",[],[140],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":40},"01M6H45X8QJZTQAPN56WZ8V111","add-seat","Add a named seat to a Wheelhouse - a crew member, a standing role (such as a dispatcher) or a worker - as a ynh harness with its charter, standing orders and only the tools its job needs, named from the Wheelhouse's roster. Use when asked to add, create or set up a seat, role, worker or agent in a Wheelhouse (a release manager, a PR watcher, a dispatcher, a designer, more workers), or to give a role a name, or to start on a Wheelhouse's team (its starter team), one role at a time. Also use to trial, make official or drop a seat.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fwheelhouse\u002Fskills\u002Fadd-seat\u002FSKILL.md",[],[151,152,153,154,155,21,156,157,158,25,159,160,161,22,162,163,164,165,166,167],"add","add seat","harness","SET","roster","release manager","workers","team","create","watcher","starter","more","worker","up","only","pr","as",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":40},"01M6H4BWCVR2YJVP8RW878NYDP","voice","How voices work - what a voice skill contains, how to write a new one, and how several voices compose into one reply. Use whenever drafting a reply in a named voice, or when asked to create or change a voice.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice\u002FSKILL.md",[],[170,159,175,176,177,178,21,179,180,32,181,182,22,183],"how to","work","change","voice skill","compose","how","reply","new","drafting",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":40},"01M6H4BRVA87C6T495HCFNDQ7Z","voice-warm","A friendly voice that acknowledges the person and their effort. Compose with direct for friendly but brief.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-warm\u002FSKILL.md",[],[191,170,192,25,193,179,194,23,195],"voice warm","person","brief","direct","but",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":40},"01M6H4BNFQ64X65YZDM9QMD61B","voice-formal","A careful, complete voice for people outside the team - customers, partners, senior stakeholders.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-formal\u002FSKILL.md",[],[203,170,158,204,205,206,207,208,23],"voice formal","complete","senior","careful","partners","people",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":40},"01M6H4BHXE6KSNBY92TBFZY7QD","voice-direct","A plain, brief voice that leads with the answer. The default when no voice is named.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-direct\u002FSKILL.md",[],[216,194,170,25,193,217,218,219,22,220],"voice direct","leads","answer","default","plain"]