关于 Apple Shortcuts Integration
Apple Shortcuts Integration 是用于在 iOS 和 macOS 的 Apple 生态中自动执行任务的技能,涵盖运行快捷指令以及操作提醒事项、备忘录和日历。
主要功能
- 01运行快捷指令并传入可选内容
- 02创建 Apple 提醒事项
- 03创建并整理 Apple 备忘录
- 04创建日历事件
- 05构建多步骤快捷指令工作流
适用场景
- 01运行晨间例行快捷指令
- 02将分享的文本保存为备忘录
- 03创建带截止日期的提醒事项
- 04将带标签的备忘录同步到其他服务
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill apple-shortcuts-integration安装后在 Claude Code 中输入/apple-shortcuts-integration确认已加载。
详细介绍
Apple Shortcuts 集成
与 Apple 生态系统集成,实现 iOS 和 macOS 自动化。
核心功能
运行快捷指令
shortcut_execution:
run:
name: "Morning Routine"
input: optional
run_with_input:
name: "Process Text"
input: "{{text_to_process}}"
run_with_clipboard:
name: "Share to App"
input: clipboard
Apple 提醒事项
reminders:
create:
title: "{{task}}"
list: "Work"
due_date: "{{date}}"
due_time: "09:00"
priority: high
notes: "{{details}}"
query:
list: "Shopping"
completed: false
complete:
reminder_id: "{{id}}"
Apple 备忘录
notes:
create:
title: "Meeting Notes - {{date}}"
folder: "Work"
body: |
# {{meeting_title}}
## Attendees
{{attendees}}
## Notes
{{notes}}
append:
note_title: "Running Log"
content: "- {{date}}: {{entry}}"
search:
query: "project alpha"
folder: "Projects"
日历
calendar:
create_event:
title: "{{event_title}}"
calendar: "Work"
start: "{{start_time}}"
end: "{{end_time}}"
location: "{{location}}"
notes: "{{notes}}"
alerts:
- 30 # minutes before
query:
calendar: "all"
start: today
end: "+7 days"
快捷指令示例
每日日志
shortcut_daily_log:
steps:
- get_current_date
- prompt_for_input:
message: "How was your day?"
- append_to_note:
title: "Daily Journal"
content: |
## {{date}}
{{input}}
- create_reminder:
title: "Journal entry"
due: tomorrow 9am
快速捕获
shortcut_quick_capture:
trigger: share_sheet
steps:
- get_shared_input
- create_note:
title: "Captured - {{date}}"
body: "{{input}}"
- notify: "Captured successfully"
集成工作流
跨平台同步
sync_workflow:
trigger: note_created
actions:
- if: tag == "work"
then:
- sync_to: notion
- sync_to: obsidian
- if: has_task
then:
- create_reminder: from_task
最佳实践
- 命名:使用清晰、描述性强的快捷指令名称
- 输入处理:验证输入
- 错误处理:优雅地处理失败
- 隐私:尽量减少数据暴露
- 测试:在所有设备上进行测试
评论
支持 Markdown