← 返回 Skills 市场
ivangdavila

CalDAV

作者 Iván · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwin ✓ 安全检测通过
475
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install caldav
功能描述
Sync, inspect, and modify CalDAV calendars with vdirsyncer and khal using deterministic windows, verified writes, and recurrence-aware workflows.
使用说明 (SKILL.md)

When to Use

Use when the user needs to work with CalDAV calendars through a local vdirsyncer + khal stack, especially for iCloud, Fastmail, Nextcloud, DAViCal, Radicale, or other standards-based calendar servers.

This skill is for local-first querying, event creation, safe edits, troubleshooting stale sync state, and handling ambiguous matches without corrupting recurring events or overwriting the wrong calendar.

Requirements

  • vdirsyncer and khal must be installed and available in PATH.
  • The CalDAV account and collection config must already exist outside this skill.
  • A TTY is required for interactive khal edit workflows.

Core Rules

1. Sync is part of every real operation

  • Treat vdirsyncer sync as part of the workflow, not an optional cleanup step.
  • Sync before reads when freshness matters, and sync again after confirmed writes so local and remote state converge.
  • If collections are missing or a server path changed, use vdirsyncer discover before assuming the calendar is empty.
  • Do not trust a stale khal result until sync and cache state have been checked.

2. Use bounded windows and explicit calendar scope

  • Prefer day, 7-day, 14-day, or exact date range queries over open-ended searches.
  • Narrow to a specific calendar whenever the user already knows the target calendar.
  • Resolve ambiguous phrases such as "next Friday" or "this evening" into exact dates, times, and timezone assumptions before writing.
  • Titles are not unique identifiers, so duplicate-event risk rises quickly when searching across every calendar at once.

3. Respect khal's editing limits

  • khal edit is interactive and needs a TTY, so do not present it as a non-interactive batch primitive.
  • khal has only rudimentary recurrence editing and cannot edit event timezones directly, so complex recurring or timezone-sensitive events need extra caution.
  • For fragile recurring series, DST-sensitive events, or uncertain matches, prefer inspect-first and recreate-only-with-approval over aggressive in-place edits.
  • If the user wants bulk recurring surgery, stop and explain the risk before touching anything.

4. Verify every write with a read-back pass

  • Before changing an event, read the target window first so the agent sees the exact current state.
  • After create, update, or delete, run a read-back check in the same bounded window and report the returned title, time, and calendar.
  • Use title plus date/time plus calendar, or UID when available, to confirm the right event changed.
  • If verification is ambiguous or inconsistent, stop and surface the conflict instead of claiming success.

5. Treat local vdir state and conflict policy as real data

  • vdirsyncer is synchronizing real local .ics state, not just acting as a remote viewer.
  • The configured conflict_resolution policy can overwrite one side, so do not assume an "a wins" or "b wins" setup is harmless.
  • Manual filesystem edits, cache resets, or storage path changes should be deliberate and reversible.
  • Deleting khal's cache database is a troubleshooting move for stale cache behavior, not a default fix for every mismatch.

6. Protect connection details, URLs, and certificates

  • Confirm the CalDAV base URL and collection path before debugging deeper issues.
  • Certificate and TLS errors are blockers; stop and fix the trust chain before continuing.
  • Keep private connection details and sync config out of summaries unless the user explicitly asks for them.

7. Finish with operational clarity

  • Every answer should end with the exact calendar scope, time window, action taken or proposed, and whether another sync is needed.
  • If blocked, name the real blocker precisely: missing vdirsyncer, missing khal, missing TTY, undiscovered collections, login failure, or ambiguous event match.
  • If the safest action is read-only, say so directly instead of improvising a write path.

Common Traps

  • Querying without syncing first -> stale answers and wrong scheduling decisions.
  • Editing by title only -> the wrong duplicate event gets changed or deleted.
  • Treating recurring events like normal one-offs -> series corruption or DST drift.
  • Searching every calendar by default -> noisy matches and accidental writes to the wrong calendar.
  • Using a one-sided conflict_resolution policy blindly -> local or remote data loss.
  • Deleting khal.db too early -> symptoms disappear briefly while the real sync bug remains.
  • Assuming any WebDAV-looking URL is a valid CalDAV calendar collection -> discovery and auth failures.
  • Reporting success before read-back verification -> hidden mismatch between local cache and remote server.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • calendar-planner - Plan weeks, repair conflicts, and turn calendar state into defended scheduling decisions.
  • schedule - Handle general scheduling requests when the user needs timing help beyond raw CalDAV operations.
  • fastmail-api - Use provider-specific Fastmail mail and calendar APIs when CalDAV is not enough.
  • remind - Turn calendar deadlines and follow-ups into reminder workflows.

Feedback

  • If useful: clawhub star caldav
  • Stay updated: clawhub sync
安全使用建议
This skill appears coherent and low-risk, but check these points before installing: ensure you have vdirsyncer and khal installed and configured (CalDAV account and collections must already exist); expect the skill to run local CLI commands and to require an interactive TTY for edits (it will not prompt for credentials but will operate on your local calendar data); back up important calendars or test in read-only mode first (the skill emphasizes verification but recurring-series edits are risky); and only install skills from sources you trust — this skill's source is 'unknown' in the registry metadata, so confirm you trust the publisher before granting agent access to your local calendar tooling.
功能分析
Type: OpenClaw Skill Name: caldav Version: 1.0.0 The CalDAV skill bundle contains instructions for managing calendars using standard command-line tools (vdirsyncer and khal). The SKILL.md file focuses on operational safety, such as verifying writes, handling sync conflicts, and protecting connection details, with no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description ask for CalDAV operations using vdirsyncer and khal and the SKILL.md explicitly requires those binaries and a pre-existing CalDAV config — the requested capabilities are proportionate and expected for this purpose.
Instruction Scope
Runtime instructions focus on sync/read/write discipline, bounded queries, TTY-based interactive edits, verification read-back, and avoiding unsafe recurrence or bulk edits. They do not instruct the agent to read unrelated files, exfiltrate data, or access unrelated credentials. They explicitly caution about protecting connection details.
Install Mechanism
Instruction-only skill with no install spec or downloads. This has minimal install risk because it relies on existing local binaries rather than pulling code from external URLs.
Credentials
No environment variables, secrets, or external credentials are requested by the skill. The SKILL.md expects the CalDAV account/config to already exist outside the skill, which is consistent with the stated behaviour.
Persistence & Privilege
Skill is not always-enabled and does not request elevated platform privileges. It instructs the agent to run local tools and may require an interactive TTY for edits, which is appropriate for the stated workflows.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install caldav
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /caldav 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with safer CalDAV operating rules for vdirsyncer and khal, including sync discipline, edit verification, and conflict-aware workflows.
元数据
Slug caldav
版本 1.0.0
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 1
常见问题

CalDAV 是什么?

Sync, inspect, and modify CalDAV calendars with vdirsyncer and khal using deterministic windows, verified writes, and recurrence-aware workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 475 次。

如何安装 CalDAV?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install caldav」即可一键安装,无需额外配置。

CalDAV 是免费的吗?

是的,CalDAV 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CalDAV 支持哪些平台?

CalDAV 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin)。

谁开发了 CalDAV?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论