skills/library/shortcuts-generator/SKILL.md
Generate macOS/iOS Shortcuts by creating plist shortcut files programmatically.
npx skillsauth add malue-ai/dazee-small shortcuts-generatorInstall 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.
通过编程方式生成 macOS/iOS 快捷指令文件(.shortcut),实现自动化工作流。
快捷指令本质是 .shortcut 格式的 plist 文件,可以通过 Python 生成并导入。
import plistlib
import uuid
def make_action(identifier, parameters=None):
action = {
"WFWorkflowActionIdentifier": identifier,
"WFWorkflowActionParameters": parameters or {},
}
return action
shortcut = {
"WFWorkflowMinimumClientVersion": 900,
"WFWorkflowMinimumClientVersionString": "900",
"WFWorkflowActions": [
make_action("is.workflow.actions.openapp", {
"WFAppIdentifier": "com.apple.Safari",
}),
make_action("is.workflow.actions.notification", {
"WFNotificationActionBody": "工作模式已启动!",
}),
],
"WFWorkflowClientVersion": "2612.0.4",
"WFWorkflowHasOutputFallback": False,
"WFWorkflowIcon": {
"WFWorkflowIconStartColor": 4282601983,
"WFWorkflowIconGlyphNumber": 59511,
},
"WFWorkflowImportQuestions": [],
"WFWorkflowInputContentItemClasses": [],
"WFWorkflowOutputContentItemClasses": [],
"WFWorkflowTypes": ["NCWidget", "WatchKit"],
}
output_path = "/tmp/work_mode.shortcut"
with open(output_path, "wb") as f:
plistlib.dump(shortcut, f)
open /tmp/work_mode.shortcut
系统会弹出快捷指令 App 的导入确认界面。
| 功能 | Identifier |
|---|---|
| 打开 App | is.workflow.actions.openapp |
| 发送通知 | is.workflow.actions.notification |
| 获取剪贴板 | is.workflow.actions.getclipboard |
| 运行 Shell 脚本 | is.workflow.actions.runscript |
| 发送邮件 | is.workflow.actions.sendmail |
| 显示提醒 | is.workflow.actions.alert |
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.