用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/malue-ai/dazee-small --skill apple-photos命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | apple-photos |
| description | Search and manage Apple Photos library on macOS via osascript. |
| metadata | {"xiaodazi":{"dependency_level":"builtin","os":["darwin"],"backend_type":"local","user_facing":true}} |
| capabilities | ["photo_management","media_organization"] |
通过 AppleScript/JXA 管理 macOS 照片库,搜索、导出、创建相册。
osascript -e '
tell application "Photos"
set results to (media items whose description contains "Tokyo" or name contains "Tokyo")
set output to ""
repeat with photo in (items 1 thru (min of {20, count of results}) of results)
set output to output & (id of photo) & " | " & (filename of photo) & " | " & (date of photo) & linefeed
end repeat
return output
end tell'
osascript -e '
tell application "Photos"
set startDate to date "2025-12-01"
set endDate to date "2025-12-31"
set results to (media items whose date ≥ startDate and date ≤ endDate)
return (count of results) & " photos found"
end tell'
osascript -e '
tell application "Photos"
set output to ""
repeat with a in albums
set output to output & (name of a) & " (" & (count of media items of a) & " items)" & linefeed
end repeat
return output
end tell'
osascript -e '
tell application "Photos"
make new album named "旅行 2026"
end tell'
osascript -e '
tell application "Photos"
set targetAlbum to album "旅行 2026"
set exportPath to POSIX file "/Users/me/Desktop/export/"
export (media items of targetAlbum) to exportPath
end tell'