schedule-manager
npx skills add https://github.com/niracler/skill --skill schedule-manager
Agent 安装分布
Skill 文档
Schedule Manager
éè¿ osascript (Calendar) å reminders-cli (Reminders) ç®¡çæ¥ç¨ï¼éµå¾ª GTD æ¹æ³è®ºã
Prerequisites
| Tool | Type | Required | Install |
|---|---|---|---|
| macOS | system | Yes | This skill requires macOS |
| osascript | cli | Yes | Built-in on macOS |
| reminders-cli | cli | Yes | brew install keith/formulae/reminders-cli |
Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.
æéé ç½®
馿¬¡è¿è¡éè¦ææï¼è¿å ¥ç³»ç»è®¾ç½® â éç§ä¸å®å ¨æ§ï¼
- æ¥å – å¾é Terminal / iTerm / ä½ ä½¿ç¨çç»ç«¯åºç¨
- æéäºé¡¹ – åä¸
â ï¸ ä¿®æ¹æéåééå¯ç»ç«¯åºç¨
æ ¸å¿ååï¼GTD 飿 ¼ï¼
| å·¥å · | ç¨é | ç¤ºä¾ |
|---|---|---|
| Calendar | åºå®æ¶é´æ¿è¯º | ä¼è®®ã约ä¼ãæªæ¢æ¥æ |
| Reminders | å¾ åäºé¡¹ï¼æ åºå®æ¶é´ï¼ | è´ç©æ¸ åãä»»å¡ãæ³æ³ |
å³çæµç¨ï¼
æå
·ä½æ¶é´ï¼ â Calendar äºä»¶
æ å
·ä½æ¶é´ï¼ â Reminders å¾
å
éè¦æéï¼ â 两è
é½å¯è®¾ç½®æé
模å¼éæ©
| ç¨æ·æå¾ | æ¨¡å¼ | æä½ |
|---|---|---|
| ã宿ä¼è®®ããå建äºä»¶ã | Calendar | å建带æ¶é´çäºä»¶ |
| ãæ·»å å¾ åããå建æéããè®°ä¸ä¸ã | Reminders | åå»ºä»»å¡ |
| ãæ¥çæ¥ç¨ããä»å¤©æä»ä¹ã | æ¥è¯¢ | æ¥è¯¢ Calendar + Reminders |
| ãè§åä¸å¨ããå¨å顾ã | è§å | 综å工使µ |
Calendar æä½
æ¥çæ¥åå表
osascript -e 'tell application "Calendar" to get name of calendars'
æ¥ç仿¥/æ¬å¨äºä»¶
osascript <<'EOF'
set today to current date
set time of today to 0
set tomorrow to today + (1 * days)
tell application "Calendar"
repeat with cal in calendars
set evts to (every event of cal whose start date ⥠today and start date < tomorrow)
if (count of evts) > 0 then
repeat with e in evts
log (summary of e) & " | " & (start date of e)
end repeat
end if
end repeat
end tell
EOF
è¯¦è§ osascript-calendar.mdã
å建äºä»¶
osascript -e '
tell application "Calendar"
tell calendar "个人"
set startDate to (current date) + (1 * days)
set hours of startDate to 14
set minutes of startDate to 0
set endDate to startDate + (1 * hours)
make new event with properties {summary:"ä¼è®®æ é¢", start date:startDate, end date:endDate}
end tell
end tell'
å¯ç¨å±æ§ï¼ summary, start date, end date, description, location, allday event
è¯¦è§ osascript-calendar.mdã
å é¤äºä»¶
osascript -e '
tell application "Calendar"
tell calendar "个人"
delete (every event whose summary is "è¦å é¤çäºä»¶å")
end tell
end tell'
Reminders æä½
注æï¼osascript è®¿é® Reminders éå¸¸æ ¢ï¼å·²ç¥é®é¢ï¼ï¼æ¨è使ç¨
reminders-cliãè¯¦è§ reminders-cli-guide.mdã
æ¥çæéå表
reminders show-lists
æ¥çå¾ åäºé¡¹
# æ¥çæææªå®ææé
reminders show-all
# æ¥çæå®å表
reminders show "å·¥ä½"
# ææªæ¢æ¥æçé
reminders show-all --due-date today
å建æé
# åºç¡å建
reminders add "æ¶ä»¶ç®±" "ä»»å¡åç§°"
# å¸¦æªæ¢æ¥æ
reminders add "å·¥ä½" "宿æ¥å" --due-date "tomorrow 5pm"
# 带ä¼å
级 (low/medium/high)
reminders add "å·¥ä½" "ç´§æ¥ä»»å¡" --priority high
宿æé
# æç´¢å¼å®æï¼ç´¢å¼éè¿ show å½ä»¤æ¥çï¼
reminders complete "æ¶ä»¶ç®±" 0
å ¶ä»æä½
# 忶宿
reminders uncomplete "æ¶ä»¶ç®±" 0
# ç¼è¾æé
reminders edit "æ¶ä»¶ç®±" 0 "æ°çä»»å¡åç§°"
# å 餿é
reminders delete "æ¶ä»¶ç®±" 0
osascript å¤éï¼ä» ç¨äºå¤ææä½ï¼
osascript éåéè¦æ¹éæä½æå¤ææ¥è¯¢çåºæ¯ï¼ä½éåº¦å¾æ ¢ãè¯¦è§ osascript-reminders.mdã
常è§å·¥ä½æµ
åºæ¯ 1: å¿«éæ¶éï¼GTD Captureï¼
ç¨æ·è¯´ãè®°ä¸ä¸ããå¾ ä¼åããå«å¿äºãâ å建 Reminder å°æ¶ä»¶ç®±
reminders add "æé" "<ä»»å¡å>"
åºæ¯ 2: 宿ä¼è®®
ç¨æ·è¯´ã宿æå¤©ä¸å 2 ç¹çä¼è®®ãâ å建 Calendar äºä»¶ï¼ä½¿ç¨ osascriptï¼
åºæ¯ 3: æ¯æ¥è§å
- æ¥ç仿¥ Calendar äºä»¶ï¼osascriptï¼
- æ¥ç Reminders å¾
åï¼
reminders show-allï¼ - 为éè¦ä»»å¡å®æ Time Blockï¼Calendar äºä»¶ï¼
åºæ¯ 4: å¨å顾ï¼GTD Weekly Reviewï¼
- æ¥çæ¬å¨å®æçæé
- æ¥çä¸å¨ Calendar äºä»¶ï¼osascriptï¼
- æ´ç Reminders å表ï¼
reminders show-allï¼
è¯¦è§ gtd-methodology.mdã
常è§é误
| é误 | åå | è§£å³ |
|---|---|---|
AppleEvent timed out |
æéæªæäº | å¨ç³»ç»è®¾ç½®ä¸ææ |
Can't get list |
å表ä¸åå¨ | å
ç¨ reminders show-lists æ¥çå¯ç¨å表 |
Invalid date |
æ¥ææ ¼å¼é误 | ä½¿ç¨ current date ä½ä¸ºåºå |
reminders: command not found |
æªå®è£ | brew install keith/formulae/reminders-cli |
| osascript Reminders å¡é¡¿ | å·²ç¥æ§è½é®é¢ | æ¹ç¨ reminders-cli |