instances/xiaodazi/skills/app-scanner/SKILL.md
Discover installed applications on macOS and recommend the best app for user tasks. Uses mdfind, system_profiler, and /Applications scanning.
npx skillsauth add malue-ai/dazee-small app-scannerInstall 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.
扫描用户电脑上安装了哪些应用,根据任务需求推荐最合适的工具。
# 方式 1:扫描 /Applications 目录(最常用)
ls /Applications/ | grep -i ".app"
# 方式 2:system_profiler(完整信息,含版本)
system_profiler SPApplicationsDataType -json 2>/dev/null | python3 -c "
import json, sys
data = json.load(sys.stdin)
apps = data.get('SPApplicationsDataType', [])
for app in sorted(apps, key=lambda x: x.get('_name', ''))[:50]:
name = app.get('_name', '')
version = app.get('version', '?')
path = app.get('path', '')
print(f'{name} (v{version}) — {path}')
"
# 方式 3:mdfind(包含非标准位置的应用)
mdfind "kMDItemContentType == 'com.apple.application-bundle'" | head -50
# 检查应用是否存在
test -d "/Applications/Visual Studio Code.app" && echo "已安装" || echo "未安装"
# 通过 mdfind 查找
mdfind "kMDItemCFBundleIdentifier == 'com.microsoft.VSCode'"
# 通过 CLI 检查
which code && echo "VS Code CLI 可用" || echo "VS Code CLI 不可用"
# 获取应用 Bundle ID
mdls -name kMDItemCFBundleIdentifier "/Applications/Safari.app"
# 获取应用版本
mdls -name kMDItemVersion "/Applications/Safari.app"
# 获取应用支持的文件类型
mdls -name kMDItemContentTypeTree "/Applications/Preview.app"
# 查找能打开 PDF 的应用
python3 -c "
import subprocess, json
result = subprocess.run(
['python3', '-c', '''
import CoreServices
from LaunchServices import LSCopyAllRoleHandlersForContentType
handlers = LSCopyAllRoleHandlersForContentType(\"com.adobe.pdf\", 0xFFFFFFFF)
if handlers:
for h in handlers:
print(h)
'''],
capture_output=True, text=True
)
print(result.stdout)
"
# 简单方式:用 open 命令查看默认应用
open -Ra "Preview" 2>/dev/null && echo "Preview 可用"
| 用户需求 | 查找关键词 | 常见应用 | |---------|----------|---------| | 编辑 PDF | PDF, Preview, Acrobat | Preview, Adobe Acrobat | | 写文档 | Word, Pages, Writer | Pages, Word, LibreOffice | | 做表格 | Excel, Numbers, Sheets | Numbers, Excel | | 做 PPT | Keynote, PowerPoint | Keynote, PowerPoint | | 编辑图片 | Photos, Photoshop, GIMP | Preview, Photos, Pixelmator | | 编辑视频 | iMovie, Final Cut, DaVinci | iMovie, Final Cut Pro | | 写代码 | VS Code, Xcode, Sublime | VS Code, Xcode | | 浏览器 | Safari, Chrome, Firefox | Safari, Chrome |
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.