做什么
使用 vdirsyncer + khal来同步并查询 CalDAV 日历(iCloud, Google, Fastmail, Nextcloud等). 工作在Linux.
技能库 智客分类:协作效率 caldav-calendar OpenClaw
使用 vdirsyncer + khal来同步并查询 CalDAV 日历(iCloud, Google, Fastmail, Nextcloud等). 工作在Linux.
官方网址:ClawHub
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
使用 vdirsyncer + khal来同步并查询 CalDAV 日历(iCloud, Google, Fastmail, Nextcloud等). 工作在Linux.
官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:CalDAV Calendar (vdirsyncer + khal)、Sync First、View Events、Search、Create Events、Edit Events (interactive)。
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。
Sync and query CalDAV calendars (iCloud, Google, Fastmail, Nextcloud, etc.) using vdirsyncer + khal. Works on Linux.
CalDAV Calendar (vdirsyncer + khal)Sync FirstView EventsSearchCreate EventsEdit Events (interactive)Delete EventsOutput FormatsCachingInitial Setup1. Configure vdirsyncer (`~/.config/vdirsyncer/config`)2. Configure khal (`~/.config/khal/config`)
来源分类:ClawHub Calendar
市场来源:ClawHub
namecaldav-calendardescription具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「caldav-calendar」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-87dd04330e8c5de8-Caldav-Calendar.html 请存为 .cursor/skills/caldav-calendar/SKILL.md 或 .claude/skills/caldav-calendar/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。
vdirsyncer syncs CalDAV calendars to local .ics files. khal reads and writes them.
Always sync before querying or after making changes:
vdirsyncer sync
khal list # Today
khal list today 7d # Next 7 days
khal list tomorrow # Tomorrow
khal list 2026-01-15 2026-01-20 # Date range
khal list -a Work today # Specific calendar
khal search "meeting"
khal search "dentist" --format "{start-date} {title}"
khal new 2026-01-15 10:00 11:00 "Meeting title"
khal new 2026-01-15 "All day event"
khal new tomorrow 14:00 15:30 "Call" -a Work
khal new 2026-01-15 10:00 11:00 "With notes" :: Description goes here
After creating, sync to push changes:
vdirsyncer sync
khal edit is interactive — requires a TTY. Use tmux if automating:
khal edit "search term"
khal edit -a CalendarName "search term"
khal edit --show-past "old event"
Menu options:
s → edit summaryd → edit descriptiont → edit datetime rangel → edit locationD → delete eventn → skip (save changes, next match)q → quitAfter editing, sync:
vdirsyncer sync
Use khal edit, then press D to delete.
For scripting:
khal list --format "{start-date} {start-time}-{end-time} {title}" today 7d
khal list --format "{uid} | {title} | {calendar}" today
Placeholders: {title}, {description}, {start}, {end}, {start-date}, {start-time}, {end-date}, {end-time}, {location}, {calendar}, {uid}
khal caches events in ~/.local/share/khal/khal.db. If data looks stale after syncing:
rm ~/.local/share/khal/khal.db
~/.config/vdirsyncer/config)Example for iCloud:
[general]
status_path = "~/.local/share/vdirsyncer/status/"
[pair icloud_calendar]
a = "icloud_remote"
b = "icloud_local"
collections = ["from a", "from b"]
conflict_resolution = "a wins"
[storage icloud_remote]
type = "caldav"
url = "https://caldav.icloud.com/"
username = "[email protected]"
password.fetch = ["command", "cat", "~/.config/vdirsyncer/icloud_password"]
[storage icloud_local]
type = "filesystem"
path = "~/.local/share/vdirsyncer/calendars/"
fileext = ".ics"
Provider URLs:
https://caldav.icloud.com/google_calendar storage typehttps://caldav.fastmail.com/dav/calendars/user/EMAIL/https://YOUR.CLOUD/remote.php/dav/calendars/USERNAME/~/.config/khal/config)[calendars]
[[my_calendars]]
path = ~/.local/share/vdirsyncer/calendars/*
type = discover
[default]
default_calendar = Home
highlight_event_days = True
[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
vdirsyncer discover # First time only
vdirsyncer sync
协作效率
Google 工作空间 CLI 用于 Gmail, Calendar, Drive, 联系人, 工作表和文档 .
协作效率
用于创建和管理页面、数据库和块的逗号 API.
协作效率
需要通过懒惰工具控制 Clawdbot 的 Slack 时使用,包括在 Slack 频道或 DMs 中对消息作出反应或发夹/取消项目.
协作效率
通过IMAP/SMTP读取并发送电子邮件. 检查新/未读信件,获取内容,搜索信箱,标记为已读/未读,并发送带有附件的邮件. 支持多个账户。 与任何IMAP/SMTP服务器合作,包括Gmail,Outlook,163.com,vip.163.com,126.com,vip.126.…