Analyzes local image files with ImageHash and OpenCV to detect near-duplicates and blurry shots, then previews or removes them. Useful for cleaning photo folders.
Ships in file-and-image-utilities. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
scripts/remove_similar_images.py.doctor if dependency availability is unknown.analyze without --apply as the safe default.--trash-dir before permanent deletion so the user can review results.python3 -m pip install Pillow ImageHash numpy opencv-python-headless
doctor reports missing dependencies, stop and surface the install command instead of pretending the scan ran.python3 scripts/remove_similar_images.py doctor
python3 scripts/remove_similar_images.py analyze \
--input-path /path/to/photos
python3 scripts/remove_similar_images.py analyze \
--input-path /path/to/photos \
--delete-similar \
--delete-blurry \
--trash-dir /path/to/review-trash
python3 scripts/remove_similar_images.py analyze \
--input-path /path/to/photos \
--delete-similar \
--delete-blurry \
--trash-dir /path/to/review-trash \
--apply
python3 scripts/remove_similar_images.py analyze \
--input-path /path/to/photos \
--delete-similar \
--apply
--input-path: source image file or directory.--no-recursive: scan only the top-level directory.--extra-extension: include additional suffixes not covered by default.--limit: cap the number of scanned files for quick tests.--hash-method: phash, dhash, ahash, or whash.--hash-size: larger hashes are stricter and slower.--similar-threshold: maximum Hamming distance considered similar.--blur-threshold: Laplacian-variance cutoff for blurry images.--keep-policy: choose the keeper in each similar group with best, largest, newest, or oldest.--delete-similar: mark non-keeper files in similar groups as removal candidates.--delete-blurry: mark blurry files as removal candidates even when they are unique.--trash-dir: move files into a review directory instead of permanently deleting.--apply: execute removals or moves. Without this flag the script only reports.--report-json: save a machine-readable report for later review.--print-json: print the full report as JSON to stdout.phash with hash_size=8 and similar-threshold=5.100.0.keep-policy=best prefers non-blurry images, then sharper images, then larger images.A is close to B, and B is close to C, they are treated as one group even if A and C are slightly farther apart.--apply.--trash-dir for the first pass on any valuable photo collection.--similar-threshold to be stricter. Raise it when near-duplicates are being missed.--blur-threshold if too many acceptable images are marked blurry. Raise it when obvious blur is missed.scripts/remove_similar_images.pyWhat SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/convert-image-to-jpgConvert local image files from common raster formats into JPG while setting a target DPI (default 96). Use when Codex needs to convert a file or folder of images such as HEIC, HEIF, PNG, TIFF, WebP, BMP, GIF, AVIF, or JPEG into `.jpg` for upload, OCR, archiving, or tools that require JPEG output./synology-file-stationOperate Synology DSM File Station via WebAPI for major file workflows including listing, search, folder creation, rename, copy/move, delete, upload/download, and archive extract. Use when tasks need scripted NAS file operations with service address, username, and password loaded from environment variables. Note: compress is temporarily unavailable in this skill./file-and-image-utilities:remove-similar-imagefrom file-and-image-utilities
npx claudepluginhub tiangong-ai/agent-skills --plugin file-and-image-utilitiesOther plugins' skills for the same job