instances/xiaodazi/skills/macos-finder/SKILL.md
Advanced Finder operations on macOS including file tags, Quick Look preview, Get Info, and smart folder creation.
npx skillsauth add malue-ai/dazee-small macos-finderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Finder 高级操作:标签管理、Quick Look、文件信息、智能文件夹。
# 给文件打标签
tag -a "重要" /path/to/file.pdf
# 或者用 xattr
xattr -w com.apple.metadata:_kMDItemUserTags '("重要")' /path/to/file.pdf
# 查看文件标签
mdls -name kMDItemUserTags /path/to/file.pdf
# 按标签搜索文件
mdfind "kMDItemUserTags == '重要'"
# 移除标签
tag -r "重要" /path/to/file.pdf
# 预览文件(按空格关闭)
qlmanage -p /path/to/file.pdf
# 生成缩略图
qlmanage -t /path/to/file.pdf -s 512 -o /tmp/
# 完整元数据
mdls /path/to/file.pdf
# 常用字段
mdls -name kMDItemDisplayName -name kMDItemFSSize -name kMDItemContentCreationDate -name kMDItemContentModificationDate -name kMDItemKind /path/to/file.pdf
# 人类可读的文件大小
stat -f "大小: %z bytes" /path/to/file.txt
du -sh /path/to/file.txt
# 文件类型
file /path/to/file
# 磁盘总体使用
df -h /
# 当前目录大小
du -sh .
# 子目录大小排序(前 10)
du -sh */ 2>/dev/null | sort -rh | head -10
# 最近修改的 20 个文件
mdfind "kMDItemFSContentChangeDate >= $time.today(-1)" -onlyin ~ | head -20
# 最近打开的文件(通过 Finder recents)
mdfind "kMDItemLastUsedDate >= $time.today(-7)" -onlyin ~/Documents | head -20
# 统计文件数量和类型
find /path/to/dir -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
# 统计总文件数
find /path/to/dir -type f | wc -l
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.