claw-calendar

Calendar Skills 智能日历助手:通过 REST API 与 Claw Calendar (claw-calendar.com) 交互,管理日历和事件。凭证从环境变量读取,支持创建日历、添加事件、查询日程。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-calendar" with this command: npx skills add 5twang/claw-calendar-v2

何时使用

用户需要管理日历创建事件设置提醒订阅日历时使用本 skill。

Claw Calendar 智能日历助手

面向 Claw Calendar 云服务:通过 REST API 创建日历、添加事件,支持 .ics 订阅链接同步到手机原生日历。

凭证(环境变量)

变量说明
CLAW_CALENDAR_API_KEYClaw Calendar API 密钥(在用户设置中生成)
CLAW_CALENDAR_API_URLAPI 地址(可选,默认为 https://claw-calendar.com)

脚本会校验 API Key,缺失时报错并退出。

API 端点

  • Base URL: https://claw-calendar.com/api(默认)
  • 认证方式: Bearer Token(API Key)

脚本

脚本作用
scripts/list-calendars.js列出用户所有日历
scripts/create-calendar.js创建新日历,返回订阅链接
scripts/list-events.js列出指定日历的事件
scripts/create-event.js在日历中创建新事件

日历管理

列出日历

node scripts/list-calendars.js

输出:日历 ID、名称、颜色、订阅链接。

创建日历

# 必填:日历名称
node scripts/create-calendar.js --name "我的日历"

# 可选:描述、颜色
node scripts/create-calendar.js --name "股票提醒" --description "持仓股票重要日期" --color "#4f46e5"

输出:日历 ID、订阅链接(用于添加到手机日历)。

事件管理

列出事件

# 列出所有日历的事件
node scripts/list-events.js --calendar-id <calendarId>

# 按日期范围筛选
node scripts/list-events.js --calendar-id <calendarId> --start 2026-04-01 --end 2026-04-30

创建事件

# 必填:日历ID、标题、开始日期
node scripts/create-event.js --calendar-id <calendarId> --title "会议" --start-date 2026-04-15

# 完整参数示例
node scripts/create-event.js \
  --calendar-id <calendarId> \
  --title "招商银行分红" \
  --description "分红除权日,请注意股价变动" \
  --start-date 2026-04-15 \
  --end-date 2026-04-15 \
  --start-time "09:30:00" \
  --end-time "10:30:00" \
  --alarm \
  --alarm-minutes 1440

事件参数

参数说明必填
--calendar-id日历 ID
--title事件标题
--start-date开始日期 (YYYY-MM-DD)
--end-date结束日期 (YYYY-MM-DD)
--start-time开始时间 (HH:MM:SS)
--end-time结束时间 (HH:MM:SS)
--description事件描述
--location地点
--alarm启用提醒
--alarm-minutes提前多少分钟提醒(默认 15)

订阅日历到手机

创建日历后,会返回 .ics 订阅链接,按以下方式添加到手机日历:

  • iOS: 设置 → 日历 → 账户 → 添加订阅日历 → 粘贴链接
  • Android: 日历应用 → 更多 → 设置 → 添加日历 → 订阅日历
  • macOS: 日历 → 文件 → 新建日历订阅 → 粘贴链接

安全提醒

  • API Key 视为密码,不要提交到仓库或日志中
  • 仅通过环境变量配置:export CLAW_CALENDAR_API_KEY=your-key
  • 建议定期轮换 API Key

常见错误

错误原因解决
401 UnauthorizedAPI Key 无效或过期检查环境变量或重新生成 Key
403 Forbidden无权访问该日历检查日历 ID 是否正确
404 Not Found日历不存在确认日历 ID 或列出日历检查

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated