[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F13DYRKFQ4YWZAAST3RVTM":3,"skill-same:01M7F13DYRKFQ4YWZAAST3RVTM":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F13DYRKFQ4YWZAAST3RVTM","scrub-metadata",null,"Strip EXIF \u002F IPTC \u002F XMP metadata from images using exiftool. Use when the user wants to remove identifying metadata (GPS, camera, timestamps, thumbnails) from a single image, a folder, or a recursive tree before sharing or publishing. Supports preview, backup-first, whitelist of fields to keep (e.g. Orientation), and recursive operation. Logs each run to notes\u002F.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fscrub-metadata\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: scrub-metadata\ndescription: Strip EXIF \u002F IPTC \u002F XMP metadata from images using exiftool. Use when the user wants to remove identifying metadata (GPS, camera, timestamps, thumbnails) from a single image, a folder, or a recursive tree before sharing or publishing. Supports preview, backup-first, whitelist of fields to keep (e.g. Orientation), and recursive operation. Logs each run to notes\u002F.\nallowed-tools: Bash(exiftool *), Bash(command *), Bash(mkdir *), Bash(cp *), Bash(test *), Bash(dirname *), Bash(mktemp *), Bash(find *), Bash(wc *), Bash(date *), Read, Write\n---\n\n# Scrub Image Metadata\n\nRemove EXIF \u002F IPTC \u002F XMP metadata from images in place (or to a copy), with preview and logging. Wraps `exiftool` — do not hand-roll metadata parsing.\n\n## When to use\n\n- Before publishing photos to a public blog, social media, or client deliverable.\n- Bulk-cleaning an archive that may contain GPS or serial-number metadata.\n- Preparing reference images for distribution where only orientation should be preserved.\n\n## Procedure\n\n### 1. Establish scope\n\nAsk the user (and confirm before touching files):\n\n- **Target path** — single file, folder, or recursive tree. Default: current working directory.\n- **Recursive?** If the target is a folder, ask whether to descend into sub-folders. Default **no** (flat, current folder only) unless the user says \"recursive\" or supplies a root.\n- **Backup first?** Default **yes** — `exiftool` keeps `_original` sidecars automatically, but offer an explicit `backup\u002F` copy for the nervous case.\n- **Whitelist** — fields to preserve. Common sensible default: keep `Orientation` so the image renders right-way-up. Ask if the user wants to preserve anything else (ColorSpace, ICC profile, copyright).\n- **Dry run vs apply** — always preview first.\n\n### 2. Check tooling\n\n```bash\ncommand -v exiftool >\u002Fdev\u002Fnull || {\n  echo \"exiftool not installed — see the image-ops-install-deps skill\" >&2\n  exit 1\n}\n```\n\n### 3. Preview what will be stripped\n\nSet the depth limit once, from the answer to \"recursive?\" in step 1:\n\n```bash\nmaxdepth=\"-maxdepth 1\"   # non-recursive\nmaxdepth=\"\"              # recursive — omit the flag entirely\n```\n\nThen run a read-only pass and show the user a summary:\n\n```bash\n# Show metadata currently present on a sample file\nexiftool -G1 -a -s \"$sample\"\n\n# Count files that would be touched\nfind \"$TARGET\" $maxdepth -type f \\\n  \\( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \\\n     -o -iname '*.heic' -o -iname '*.webp' -o -iname '*.tif' \\\n     -o -iname '*.tiff' \\) | wc -l\n```\n\nPrint:\n- File count by extension.\n- Which tag groups will be removed (EXIF, GPS, IPTC, XMP, MakerNotes, Thumbnail).\n- Which tags will be kept (the whitelist).\n- Whether a `backup\u002F` copy will be made.\n\nWait for user confirmation.\n\n### 4. Backup (if requested)\n\nThe backup must live **outside** the target tree. A `backup\u002F` created inside the target gets copied into itself by `cp`, and — worse — is then walked by the recursive `exiftool -r` pass in step 5, which strips the very copies meant to be pristine.\n\n```bash\nSTAMP=$(date +%Y-%m-%d-%H%M%S)\nBACKUP=\"$(dirname \"$TARGET\")\u002F.scrub-backup-$STAMP\"\nmkdir -p \"$BACKUP\" || { echo \"cannot create backup dir $BACKUP\" >&2; exit 1; }\n\nif [ -d \"$TARGET\" ]; then\n  cp -R \"$TARGET\u002F.\" \"$BACKUP\u002F\" || { echo \"backup failed — aborting\" >&2; exit 1; }\nelse\n  cp \"$TARGET\" \"$BACKUP\u002F\" || { echo \"backup failed — aborting\" >&2; exit 1; }\nfi\necho \"Backup: $BACKUP\"\n```\n\nThe `-d` branch matters: the scope in step 1 allows a single file, and `cp -R \"$TARGET\u002F.\"` is invalid against a regular file.\n\nIf `$(dirname \"$TARGET\")` is not writable, fall back to `BACKUP=\"$(mktemp -d)\u002Fscrub-backup\"` and tell the user the path — never silently place the backup inside the target.\n\nReport the backup path to the user before step 5 runs, and never proceed to step 5 if the backup command failed.\n\nNote that `exiftool` also keeps its own `\u003Cfile>_original` sidecars in-place unless `-overwrite_original` is passed — decide with the user whether to keep those or clean them up at the end.\n\n### 5. Strip metadata\n\nTwo patterns — pick based on scope:\n\n**Folder (non-recursive):**\n\n```bash\nexiftool -all= --ICC_Profile:all -tagsFromFile @ -Orientation \\\n  -ext jpg -ext jpeg -ext png -ext heic -ext webp -ext tif -ext tiff \\\n  \"$TARGET\"\n```\n\n**Recursive tree:**\n\n```bash\nexiftool -r -all= --ICC_Profile:all -tagsFromFile @ -Orientation \\\n  -ext jpg -ext jpeg -ext png -ext heic -ext webp -ext tif -ext tiff \\\n  \"$TARGET\"\n```\n\n`--ICC_Profile:all` keeps the colour profile out of the delete. The pixels of a Display P3 or Adobe RGB photo only render correctly with their profile attached, and a plain `-all=` removes it. A profile identifies a colour space, not a person, though some carry a device or vendor name in the description. Drop the `--ICC_Profile:all` only for a full nuke, and warn that colours will shift.\n\nThe recursive form is why the step 4 backup has to sit outside `$TARGET`: `-r` descends into every subdirectory, including one named `backup\u002F`.\n\nIf the user asked to keep additional fields, extend the `-tagsFromFile @ -Field1 -Field2 ...` list. If the user asked to preserve **nothing** (full nuke), drop the `-tagsFromFile` clause and `--ICC_Profile:all`, leaving just `-all=`.\n\nTo discard the `_original` sidecars in the same run, append `-overwrite_original`. Only do this if a backup was made in step 4, or if the user explicitly waived backup.\n\n### 6. Verify\n\nSample a few output files and show their remaining metadata:\n\n```bash\nexiftool -G1 -a -s \"$sample_output\"\n```\n\nConfirm only whitelisted tags remain. If unexpected metadata survived (common with PNG text chunks or XMP sidecars), flag it and offer a second pass with `-xmp:all=` or a manual `exiftool -ext xmp -overwrite_original -all= \"$TARGET\"`.\n\n### 7. Log\n\nWrite `notes\u002Fscrub-metadata-$STAMP.md` in the target folder (or the cwd if the target was a single file), reusing the `$STAMP` computed in step 4 — or, if no backup was taken, `STAMP=$(date +%Y-%m-%d-%H%M%S)`. Include:\n\n- Target path and whether recursive.\n- Backup taken? Where?\n- Whitelist used.\n- File count processed, count skipped, count failed.\n- Sample before\u002Fafter metadata dump for one file.\n- Any warnings (XMP sidecars found, MakerNotes that resisted strip, etc.).\n\nIf `notes\u002F` doesn't exist, create it.\n\n## Notes\n\n- `exiftool` is the only sane tool for this — don't use `convert -strip` (ImageMagick) as the primary path; it silently drops colour profiles and doesn't touch XMP sidecars reliably.\n- **GPS is the most common sensitive leak** — always explicitly confirm it's gone in step 6 (`exiftool -GPS:all \"\u003Cfile>\"` should return nothing).\n- For HEIC from iPhones, there are often **two** copies of EXIF (container + embedded). `exiftool -all=` handles both, but verify.\n- For PNGs, metadata lives in `tEXt` \u002F `iTXt` \u002F `eXIf` chunks — `exiftool -all=` covers them. Do not rely on `optipng -strip all` as a primary scrubber.\n- Never operate on the only copy of irreplaceable originals without a backup. If the user is working on an archive, insist on step 4.\n- Do not push scrubbed files anywhere automatically — that's a human decision.\n","# Scrub Image Metadata\n\nRemove EXIF \u002F IPTC \u002F XMP metadata from images in place (or to a copy), with preview and logging. Wraps `exiftool` — do not hand-roll metadata parsing.\n\n## When to use\n\n- Before publishing photos to a public blog, social media, or client deliverable.\n- Bulk-cleaning an archive that may contain GPS or serial-number metadata.\n- Preparing reference images for distribution where only orientation should be preserved.\n\n## Procedure\n\n### 1. Establish scope\n\nAsk the user (and confirm before touching files):\n\n- **Target path** — single file, folder, or recursive tree. Default: current working directory.\n- **Recursive?** If the target is a folder, ask whether to descend into sub-folders. Default **no** (flat, current folder only) unless the user says \"recursive\" or supplies a root.\n- **Backup first?** Default **yes** — `exiftool` keeps `_original` sidecars automatically, but offer an explicit `backup\u002F` copy for the nervous case.\n- **Whitelist** — fields to preserve. Common sensible default: keep `Orientation` so the image renders right-way-up. Ask if the user wants to preserve anything else (ColorSpace, ICC profile, copyright).\n- **Dry run vs apply** — always preview first.\n\n### 2. Check tooling\n\n```bash\ncommand -v exiftool >\u002Fdev\u002Fnull || {\n  echo \"exiftool not installed — see the image-ops-install-deps skill\" >&2\n  exit 1\n}\n```\n\n### 3. Preview what will be stripped\n\nSet the depth limit once, from the answer to \"recursive?\" in step 1:\n\n```bash\nmaxdepth=\"-maxdepth 1\"   # non-recursive\nmaxdepth=\"\"              # recursive — omit the flag entirely\n```\n\nThen run a read-only pass and show the user a summary:\n\n```bash\n# Show metadata currently present on a sample file\nexiftool -G1 -a -s \"$sample\"\n\n# Count files that would be touched\nfind \"$TARGET\" $maxdepth -type f \\\n  \\( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \\\n     -o -iname '*.heic' -o -iname '*.webp' -o -iname '*.tif' \\\n     -o -iname '*.tiff' \\) | wc -l\n```\n\nPrint:\n- File count by extension.\n- Which tag groups will be removed (EXIF, GPS, IPTC, XMP, MakerNotes, Thumbnail).\n- Which tags will be kept (the whitelist).\n- Whether a `backup\u002F` copy will be made.\n\nWait for user confirmation.\n\n### 4. Backup (if requested)\n\nThe backup must live **outside** the target tree. A `backup\u002F` created inside the target gets copied into itself by `cp`, and — worse — is then walked by the recursive `exiftool -r` pass in step 5, which strips the very copies meant to be pristine.\n\n```bash\nSTAMP=$(date +%Y-%m-%d-%H%M%S)\nBACKUP=\"$(dirname \"$TARGET\")\u002F.scrub-backup-$STAMP\"\nmkdir -p \"$BACKUP\" || { echo \"cannot create backup dir $BACKUP\" >&2; exit 1; }\n\nif [ -d \"$TARGET\" ]; then\n  cp -R \"$TARGET\u002F.\" \"$BACKUP\u002F\" || { echo \"backup failed — aborting\" >&2; exit 1; }\nelse\n  cp \"$TARGET\" \"$BACKUP\u002F\" || { echo \"backup failed — aborting\" >&2; exit 1; }\nfi\necho \"Backup: $BACKUP\"\n```\n\nThe `-d` branch matters: the scope in step 1 allows a single file, and `cp -R \"$TARGET\u002F.\"` is invalid against a regular file.\n\nIf `$(dirname \"$TARGET\")` is not writable, fall back to `BACKUP=\"$(mktemp -d)\u002Fscrub-backup\"` and tell the user the path — never silently place the backup inside the target.\n\nReport the backup path to the user before step 5 runs, and never proceed to step 5 if the backup command failed.\n\nNote that `exiftool` also keeps its own `\u003Cfile>_original` sidecars in-place unless `-overwrite_original` is passed — decide with the user whether to keep those or clean them up at the end.\n\n### 5. Strip metadata\n\nTwo patterns — pick based on scope:\n\n**Folder (non-recursive):**\n\n```bash\nexiftool -all= --ICC_Profile:all -tagsFromFile @ -Orientation \\\n  -ext jpg -ext jpeg -ext png -ext heic -ext webp -ext tif -ext tiff \\\n  \"$TARGET\"\n```\n\n**Recursive tree:**\n\n```bash\nexiftool -r -all= --ICC_Profile:all -tagsFromFile @ -Orientation \\\n  -ext jpg -ext jpeg -ext png -ext heic -ext webp -ext tif -ext tiff \\\n  \"$TARGET\"\n```\n\n`--ICC_Profile:all` keeps the colour profile out of the delete. The pixels of a Display P3 or Adobe RGB photo only render correctly with their profile attached, and a plain `-all=` removes it. A profile identifies a colour space, not a person, though some carry a device or vendor name in the description. Drop the `--ICC_Profile:all` only for a full nuke, and warn that colours will shift.\n\nThe recursive form is why the step 4 backup has to sit outside `$TARGET`: `-r` descends into every subdirectory, including one named `backup\u002F`.\n\nIf the user asked to keep additional fields, extend the `-tagsFromFile @ -Field1 -Field2 ...` list. If the user asked to preserve **nothing** (full nuke), drop the `-tagsFromFile` clause and `--ICC_Profile:all`, leaving just `-all=`.\n\nTo discard the `_original` sidecars in the same run, append `-overwrite_original`. Only do this if a backup was made in step 4, or if the user explicitly waived backup.\n\n### 6. Verify\n\nSample a few output files and show their remaining metadata:\n\n```bash\nexiftool -G1 -a -s \"$sample_output\"\n```\n\nConfirm only whitelisted tags remain. If unexpected metadata survived (common with PNG text chunks or XMP sidecars), flag it and offer a second pass with `-xmp:all=` or a manual `exiftool -ext xmp -overwrite_original -all= \"$TARGET\"`.\n\n### 7. Log\n\nWrite `notes\u002Fscrub-metadata-$STAMP.md` in the target folder (or the cwd if the target was a single file), reusing the `$STAMP` computed in step 4 — or, if no backup was taken, `STAMP=$(date +%Y-%m-%d-%H%M%S)`. Include:\n\n- Target path and whether recursive.\n- Backup taken? Where?\n- Whitelist used.\n- File count processed, count skipped, count failed.\n- Sample before\u002Fafter metadata dump for one file.\n- Any warnings (XMP sidecars found, MakerNotes that resisted strip, etc.).\n\nIf `notes\u002F` doesn't exist, create it.\n\n## Notes\n\n- `exiftool` is the only sane tool for this — don't use `convert -strip` (ImageMagick) as the primary path; it silently drops colour profiles and doesn't touch XMP sidecars reliably.\n- **GPS is the most common sensitive leak** — always explicitly confirm it's gone in step 6 (`exiftool -GPS:all \"\u003Cfile>\"` should return nothing).\n- For HEIC from iPhones, there are often **two** copies of EXIF (container + embedded). `exiftool -all=` handles both, but verify.\n- For PNGs, metadata lives in `tEXt` \u002F `iTXt` \u002F `eXIf` chunks — `exiftool -all=` covers them. Do not rely on `optipng -strip all` as a primary scrubber.\n- Never operate on the only copy of irreplaceable originals without a backup. If the user is working on an archive, insist on step 4.\n- Do not push scrubbed files anywhere automatically — that's a human decision.\n",{"name":5,"description":7,"allowed-tools":24},"Bash(exiftool *), Bash(command *), Bash(mkdir *), Bash(cp *), Bash(test *), Bash(dirname *), Bash(mktemp *), Bash(find *), Bash(wc *), Bash(date *), Read, Write","main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fimage-ops\u002Fskills\u002Fscrub-metadata","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill scrub-metadata",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill scrub-metadata",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill scrub-metadata","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fscrub-metadata\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"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":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"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},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]