threerocks/sweety-skills/sweety-image-privacy

Claude Code and agent skill by threerocks/sweety-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when sanitizing image privacy metadata, removing GPS/source traces, auditing macOS xattrs, or preparing images with iPhone-like camera metadata before publishing or AI-detection checks.

Install

npx vskill@latest install threerocks/sweety-skills/sweety-image-privacy

SKILL.md

Image Privacy Sanitizer

Sanitizes image privacy metadata before publishing or detector testing. It removes GPS and origin/source fields, clears macOS download/source extended attributes when possible, and writes an iPhone 16 Pro Max camera metadata profile.

This does not guarantee an image will pass AI-generation detectors. Metadata can support a real-camera workflow, but detectors can still use pixels, compression artifacts, model fingerprints, and other signals.

Script Directory

Scripts are in the scripts/ subdirectory. {baseDir} = this SKILL.md file's directory path. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.

ScriptPurpose
scripts/main.tsCLI for privacy sanitization, iPhone-like camera metadata, and JSON audit reports

Usage

bash
${BUN_X} {baseDir}/scripts/main.ts <input> [options]

When <input> is a directory, all supported image files within the directory (and subdirectories) are processed recursively.

Options

OptionShortDescription
<input>File or directoryRequired
--output-oOutput file path (only for single file input)Default: overwrite input or create -exif copy when --keep
--keep-kKeep original file when processing in placefalse
--recursive-rProcess directories recursively (default for directories)true for directories
--jsonEmit JSON reportfalse
-h, --helpShow help

Notes

  • Requires sharp to be available in the runtime environment.
  • If sharp is not installed, the script will prompt to install it with bun add sharp or npm install sharp.
  • For safe in-place overwrite, the script writes to a temporary file then atomically replaces the original.
  • With exiftool, the script removes all embedded metadata first, then writes an iPhone 16 Pro Max profile: Make, Model, HostComputer, LensModel, focal length, 35mm focal length, aperture, exposure program, metering mode, flash, white balance, and color space.
  • GPS and source/origin fields are removed. The JSON report audits whether GPS, source EXIF, and required macOS source xattrs remain.
  • On macOS, the script clears Finder "Where from" and quarantine metadata. com.apple.provenance may be system-managed and can reappear locally; treat it as an audit signal, not a guaranteed blocker for web upload bytes.
  • Do not claim a generated image is a real camera photograph merely because metadata was rewritten.

Examples

bash
# Process single image, overwrite original
${BUN_X} {baseDir}/scripts/main.ts photo.jpg
# Process single image, keep original
${BUN_X} {baseDir}/scripts/main.ts photo.jpg --keep
# Process directory recursively (default behavior)
${BUN_X} {baseDir}/scripts/main.ts /user/tmp/
# Process directory, keep originals
${BUN_X} {baseDir}/scripts/main.ts /user/tmp/ --keep
# JSON audit output
${BUN_X} {baseDir}/scripts/main.ts /user/tmp/ --json

Output:

/user/tmp/photo1.jpg → /user/tmp/photo1.jpg (exiftool)
/user/tmp/subdir/photo2.png → /user/tmp/subdir/photo2.png (exiftool)

JSON output includes:

  • camera: written/observed camera profile fields.
  • privacy.gpsPresent: whether GPS remains.
  • privacy.sourceExifPresent: whether source/origin EXIF fields remain.
  • privacy.requiredMacSourceXattrsPresent: required macOS source attributes that still remain.

Extension Support

Custom configurations via EXTEND.md. See Script Directory section for the expected base directory.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/threerocks/sweety-skills/sweety-image-privacy/badge)](https://verified-skill.com/skills/threerocks/sweety-skills/sweety-image-privacy)

Something wrong with this skill or its page? Tell us.