跳到正文
TakoAPI
返回技能列表

caldav-cli

由 cyberash-dev 提供

DevOps & Cloud
1.2k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage CalDAV calendars (iCloud, Google, Yandex) from the command line.

描述

该技能的功能

caldav-cli manages CalDAV calendars from the terminal. It supports iCloud, Google Calendar, Yandex, and custom CalDAV servers with OAuth2 or Basic auth. Credentials are stored in the OS keychain, never written to disk in plaintext.

Storing OAuth2 tokens in the OS keychain rather than a plaintext config file makes it safer than most CLI calendar tools.

何时使用

  • List today's meetings without opening a browser
  • Create a recurring standup event from a shell script
  • Query calendar events as JSON for automation pipelines
  • Switch between personal and work calendars by account name
  • Bulk-add events from a cron job or CI workflow

示例工作流

输入

User asks: show me all events on my work account for next week and export them as JSON

智能体
  1. 1

    Run caldav-cli account list to confirm the work account name

  2. 2

    Run caldav-cli events list -a work --from 2026-03-16 --to 2026-03-20 --json

  3. 3

    Parse the JSON output to extract titles, times, and calendar names

  4. 4

    Return formatted results to the user

输出

A JSON array of next week's events from the work account, including titles, start/end times, and calendar names

前置要求

  • Apple app-specific password (for iCloud accounts)
  • Google OAuth2 Client ID and Client Secret from Google Cloud Console (for Google Calendar accounts)
  • Yandex app password (for Yandex Calendar accounts)

安装

clawhub install cyberash-dev/caldav-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接