threerocks/sweety-skills/sweety-image-privacy
Claude Code and agent skill by threerocks/sweety-skills
- community
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-privacySKILL.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.
| Script | Purpose | |
|---|---|---|
scripts/main.ts | CLI for privacy sanitization, iPhone-like camera metadata, and JSON audit reports |
Usage
When <input> is a directory, all supported image files within the directory (and subdirectories) are processed recursively.
Options
| Option | Short | Description | ||
|---|---|---|---|---|
<input> | File or directory | Required | ||
--output | -o | Output file path (only for single file input) | Default: overwrite input or create -exif copy when --keep | |
--keep | -k | Keep original file when processing in place | false | |
--recursive | -r | Process directories recursively (default for directories) | true for directories | |
--json | Emit JSON report | false | ||
-h, --help | Show help |
Notes
- Requires
sharpto be available in the runtime environment. - If
sharpis not installed, the script will prompt to install it withbun add sharpornpm 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.provenancemay 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
Output:
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
- SKILL.md in the repositoryCheckingskills/sweety-image-privacy/SKILL.md
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
[](https://verified-skill.com/skills/threerocks/sweety-skills/sweety-image-privacy)