snaptidy

SnapTidy 是为 macOS 设计的 AI 驱动照片与视频整理工具。它能智能扫描图库,检测重复文件(支持 SHA-256 精确匹配与 pHash 感知哈希),并生成安全的移动方案,绝不删除原始文件。适用于整理杂乱图库、查找重复照片、清理手机或外接硬盘冗余内容,帮助高效释放存储空间。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "snaptidy":https://skillpi.com/zh/skills/deepskill-9f42114d4e02ba24b72660017ab97713e8e5c01d14abe5660541495a469cd080。安装前核对上游来源和版本:https://skillhub.cn/skills/user_9a6f5769/snaptidy。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

SnapTidy 是为 macOS 设计的 AI 驱动照片与视频整理工具。它能智能扫描图库,检测重复文件(支持 SHA-256 精确匹配与 pHash 感知哈希),并生成安全的移动方案,绝不删除原始文件。适用于整理杂乱图库、查找重复照片、清理手机或外接硬盘冗余内容,帮助高效释放存储空间。

0 下载

介绍来源: third_party · user_9a6f5769 · 2.0.0 参考来源

SkillPi 解读

能完成的任务
Invoke this skill when the user asks to: Organize or tidy up photo/video folders on macOS Find and remove duplicate photos Scan a photo library for duplicates Generate a dedup report or move plan Prepare a clean photo archive Free up disk space by finding and moving duplicates Consolidate photos from Android/iPhone/external drives 整理照片、去重、清理相册 重複写真を削除・整理する 사진 정리, 중복 사진 찾기
适合谁
Invoke this skill when the user asks to: Organize or tidy up photo/video folders on macOS Find and remove duplicate photos Scan a photo library for duplicates Generate a dedup report or move plan Prepare a clean photo archive Free up disk space by finding and moving duplicates Consolidate photos from Android/iPhone/external drives 整理照片、去重、清理相册 重複写真を削除・整理する 사진 정리, 중복 사진 찾기
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: snaptidy
version: 2.0.0
description: |
  AI-powered photo & video organizer for macOS. Scan libraries, detect duplicates (SHA-256 exact + pHash perceptual), and generate safe move plans — without ever deleting your originals.
  Use this skill when you need to: scan and tidy large photo/video folders, find duplicate photos, deduplicate archives, organize a messy photo library, or generate a dedup report for human review.
  Trigger phrases: "organize my photos", "find duplicate photos", "dedup my library", "tidy photo folder", "scan for duplicates", "整理照片", "去重", "整理相册", "重複写真削除", "写真整理", "사진 정리", "중복 사진"
author: chicogong
license: MIT
homepage: https://github.com/chicogong/snaptidy
compatibility: "Claude Code, Cursor, Windsurf, OpenClaw, WorkBuddy, Cline, Aider"
metadata:
  openclaw:
    always: false
    emoji: "🗂️"
    os:
      - darwin
    requires:
      bins:
        - python3
    install:
      - kind: pip
        packages: [Pillow, piexif, imagehash]

SnapTidy — Photo & Video Organizer

When to Use

Invoke this skill when the user asks to:

  • Organize or tidy up photo/video folders on macOS
  • Find and remove duplicate photos
  • Scan a photo library for duplicates
  • Generate a dedup report or move plan
  • Prepare a clean photo archive
  • Free up disk space by finding and moving duplicates
  • Consolidate photos from Android/iPhone/external drives
  • 整理照片、去重、清理相册
  • 重複写真を削除・整理する
  • 사진 정리, 중복 사진 찾기

Safety Rules (MANDATORY)

  • NEVER delete originals — all scripts are read-only by default. apply_move_plan.py only moves files, never deletes.
  • NEVER permanently delete — use macOS Trash mode (--mode trash) or move to review folder. Users can recover from Trash via Finder.
  • Stay out of Photos Libraries — never enter .photoslibrary or .photolibrary directories. Always scan exported folders.
  • Operate only inside user-provided paths — never scan system directories or disk roots.
  • Respect external backups — skip directories named Original_Backup or similar.
  • Ask before moving — ALWAYS present the move plan and get user confirmation before running apply_move_plan.py.
  • Ask which folder to prioritize — when duplicates span multiple folders, ask the user which folder's photos they prefer to keep.
  • Ask about trash vs move — offer the user a choice: move to review folder or move to macOS Trash (recoverable).

Process

Step 1: Install Dependencies

pip install -r requirements.txt

Dependencies: Pillow (image metadata), piexif (EXIF extraction), imagehash (perceptual hashing). No pandas, no numpy, no heavy frameworks. SQLite is built into Python.

Step 2: Scan the Photo Library

# Output to SQLite (recommended — fast for 100k+ photos, stores locally, no context bloat)
python3 scripts/scan_photos.py --input <photo_directory> --output photo_index.db

# Or output to CSV (fallback for small libraries)
python3 scripts/scan_photos.py --input <photo_directory> --output photo_index.csv

This extracts: file size, SHA-256, EXIF date, GPS location, camera make/model, dimensions, perceptual hash, auto-category (photo/screenshot/wechat/burst), and folder tag.

Step 3: Find Duplicates

Exact duplicates (SHA-256, works with both .db and .csv):

python3 scripts/find_exact_duplicates.py --index photo_index.db --output duplicates_exact.csv

Perceptually similar (pHash, optional):

# Exact pHash match (default)
python3 scripts/find_similar_photos.py --index photo_index.db --output duplicates_similar.csv

# Fuzzy match with Hamming distance threshold (catches near-duplicates)
python3 scripts/find_similar_photos.py --index photo_index.db --output duplicates_similar.csv --threshold 5

Step 4: Generate Move Plan (Smart Priority)

# Default: quality strategy — keep highest resolution, largest file, best EXIF
python3 scripts/generate_move_plan.py \
    --duplicates duplicates_exact.csv \
    --index photo_index.db \
    --plan move_plan.csv \
    --target-root <photo_directory>

# Keep files from a preferred folder (e.g., camera originals over WeChat downloads)
python3 scripts/generate_move_plan.py \
    --duplicates duplicates_exact.csv \
    --index photo_index.db \
    --plan move_plan.csv \
    --target-root <photo_directory> \
    --prefer-folder "DCIM" --prefer-folder "相机"

# Strategy options: quality (default), oldest, newest, folder
python3 scripts/generate_move_plan.py \
    --duplicates duplicates_exact.csv \
    --index photo_index.db \
    --plan move_plan.csv \
    --target-root <photo_directory> \
    --strategy oldest

Step 5: Review and Apply

  1. Open the generated move_plan.csv — verify every proposed move
  2. Present the plan summary to the user
  3. Ask the user: move to review folder OR move to macOS Trash?
  4. Only after explicit confirmation, apply:
# Move to review folder (safe, files stay on disk)
python3 scripts/apply_move_plan.py --plan move_plan.csv --mode move

# Move to macOS Trash (recoverable via Finder > Put Back)
python3 scripts/apply_move_plan.py --plan move_plan.csv --mode trash

Every action is logged to move_log.csv with full audit trail.

Smart Priority Rules

When deciding which duplicate to KEEP, SnapTidy scores files by:

Factor Weight Rationale
Resolution (pixels) High Higher res = better quality
File size Medium Larger = less compressed
EXIF completeness High Has metadata = likely original
Format (RAW > HEIC > JPG) Medium Better format = better quality
Category (photo > wechat > screenshot) Medium Real photos over screenshots
Folder preference Configurable User-specified priority folders

Strategies: --strategy quality (default), oldest, newest, folder

Auto-Categorization

Category Detected by
photo Default for camera photos
screenshot "screenshot", "截图", "截屏", "スクリーンショット", "스크린샷", "скриншот"
wechat "mmexport", "wxcamera", "microMsg", "微信"
burst "_HDR", "_burst", "连拍"
video Video file extensions

Storage & Performance

  • SQLite (.db) — Recommended. Handles 100k+ photos efficiently. Query speed 400x faster than CSV for large libraries. Data stays local, no context bloat.
  • CSV (.csv) — Fallback for small libraries. Compatible with Excel/Numbers.

Supported Formats

Type Extensions
Images jpg, jpeg, png, bmp, gif, tif, tiff, heic, heif, webp
RAW dng, cr2, nef, arw
Videos mov, mp4, m4v, avi, mkv, 3gp, mpg, mpeg, hevc, wmv, flv

Troubleshooting

  • Permission denied: Enable Full Disk Access (System Settings → Privacy & Security → Full Disk Access)
  • No EXIF data: Screenshots and downloaded photos lack EXIF. Scan still works.
  • pHash false positives: Solid-color images produce identical pHash. Use SHA-256 as primary method.
  • Large library slow scan: Use SQLite output (not CSV). Index is stored locally between runs.
  • External drive: Scan directly from the external drive path. Use --prefer-folder for the drive's photo folder.

当前收录版本

2.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 解决 macOS 用户照片/视频去重的真实高频痛点
  • 提供从扫描到安全执行的完整闭环流程
  • 强调安全性:只移动不删除,支持 Trash 恢复模式
触发精准95/100

亮点

  • 触发词覆盖中英文及多语言变体,边界清晰
  • description 位置正确且内容完整
结构规范93/100

亮点

  • 五步流程清晰,含端到端命令示例
  • frontmatter 完整,含安全规则和 When to Use 章节
执行可靠91/100

亮点

  • 依赖明确(Pillow/piexif/imagehash),无重型框架
  • 覆盖权限、EXIF缺失、pHash误报等关键异常场景
  • 不可逆操作需用户确认,支持 move/trash 双模式
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 58 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。