← 返回 Skills 市场
zhengqunkoo

Calendar Generator

作者 Zhengqun Koo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
36
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ics-generator
功能描述
Generates Google Calendar‑compatible .ics files from structured event data.
使用说明 (SKILL.md)

ics‑generator

When to use

When you need to convert a schedule, study plan, or task list into an iCalendar (.ics) file that can be imported into Google Calendar or any other iCalendar‑compatible client.

Workflow Overview

  1. Collect structured events – each event must contain:    - summary (string)     - description (string, optional)     - start (ISO‑8601 date/time or JS Date)     - end   (ISO‑8601 date/time or JS Date)     - colorId (Google Calendar colour ID, optional) 

  2. Chunking / sequential dates     - First chunk – supply the intended start date (e.g., 2026‑05‑31T09:00:00Z).     - Subsequent chunks – pass the last date of the previous chunk (via the lastDate field). The skill will automatically shift the next chunk’s start date forward by one day, guaranteeing a clean “one‑day‑gap” between chunks.

  3. Run the skill – invoke the run function exported by index.js with the event array and optional lastDate.

Implementation Notes

Feature Details
Google‑Calendar compatibility Automatically injects the required headers:\x3Cbr>PRODID:-//Google Inc//Google Calendar 70.6//EN \x3Cbr>CALSCALE:GREGORIAN
UTC enforcement All start/end times are normalized to UTC and formatted as YYYYMMDDTHHMMSSZ. Google Calendar accepts this exact format without further conversion.
Unique identifiers Each event receives a UUID‑v4‑derived UID (event-\x3Cuuid>) so calendar clients can correctly sync updates.
Color handling If a colorId is supplied, it’s added as X‑GOOGLE‑CALENDAR‑COLOR:\x3Cid> inside the VEVENT block.
Output Returns a complete .ics string wrapped in BEGIN:VCALENDAR … END:VCALENDAR. Every VEVENT ends with END:VEVENT and the final block ends with END:VCALENDAR.
Dependencies Node ≥ 20 (for crypto.randomUUID()). No external npm packages—pure JavaScript plus Node’s built‑in crypto module.
License MIT – free to copy, modify, and share.

Why the specific PRODID / CALSCALE?

From community feedback, Google Calendar only imported the generated file when those exact values were present. A generic PRODID caused the “Unable to launch event” error; CALSCALE:GREGORIAN tells Google Calendar which calendar system to assume (Gregorian), which is required for proper time‑zone handling.

能力标签
crypto
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ics-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ics-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of ics-generator. - Converts structured event data into Google Calendar–compatible .ics files. - Normalizes all event times to UTC in the required iCalendar format. - Ensures each event has a unique UUID-derived identifier. - Supports Google Calendar color assignment via optional colorId. - No external dependencies; uses Node 20+ and the built-in crypto module.
元数据
Slug ics-generator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Calendar Generator 是什么?

Generates Google Calendar‑compatible .ics files from structured event data. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 Calendar Generator?

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

Calendar Generator 是免费的吗?

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

Calendar Generator 支持哪些平台?

Calendar Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Calendar Generator?

由 Zhengqun Koo(@zhengqunkoo)开发并维护,当前版本 v1.0.0。

💬 留言讨论