微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📅

CLI 跨日历规划与冲突修复系统

Calendar Planner · v1.0.0
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME)。我们仍保留下载,方便你自行查看内容。
效率 安全 A 级 作者 ivangdavila 公开目录收录
987 下载 0 安装 3.7k 收藏 9 浏览

简介

CLI驱动的跨日历智能规划工具,支持Google/Outlook/Apple/CalDAV多源整合、冲突修复与周度复盘,适合需要命令行自动化的高阶时间管理场景。

原始描述

Plan work and life across Google Calendar, Outlook, Apple Calendar, and CalDAV with CLI adapters, conflict repair, and weekly reviews.

通过你的 Agent 添加

安装目录:calendar-planner/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/calendar-planner/
Codex CLI~/.codex/skills/calendar-planner/
DeepSeek Harness~/.agents/skills/calendar-planner/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Calendar Planner 是一款面向命令行用户的跨平台日历规划技能,专注于解决多日历源(Google Calendar、Outlook、Apple Calendar、CalDAV)之间的日程冲突修复与周度统筹。用户通过 gcalcli、khal/vdirsyncer、osascript 或 Microsoft Graph PowerShell 等轻量适配器,执行读取、合并、审计和写入操作。

核心工作流遵循「Life Grid Protocol」:

  1. Intake — 识别真实目标,而非仅处理表面请求
  2. Map — 将事项分类为 hard(硬性承诺)、flexible(弹性块)、prep(准备)、travel(通勤)、recovery(恢复)
  3. Defend — 优先保护不可协商时段
  4. Repair — 若周计划已崩溃,提供具体移动/取消/降级方案
  5. Close — 输出单一推荐计划及可直接执行的命令序列

配套三个 Python 脚本实现本地分析:calendar_merge.py(多源归一化)、calendar_guard.py(冲突与缓冲检测)、week_plan.py(周度复盘生成)。

显著优点

  • 多源整合:原生支持四大主流日历生态,避免厂商锁定
  • CLI 原生:完全基于命令行,便于脚本化、自动化与版本控制
  • 安全设计:所有写入操作需显式授权,默认先输出 dry-run;可选本地记忆文件严格最小化,不存储参会人详情或敏感描述
  • 结构性规划:Life Grid 方法强制区分硬性承诺与弹性块,防止「假容量」导致的日程崩塌
  • 缓冲保护:强制要求为会议配置准备、通勤、恢复时间,识别 overlapped days 与 short gaps

潜在缺点与局限

  • 技术门槛高:需自行配置 OAuth、PowerShell 模块或 CalDAV 同步,非技术用户上手成本显著
  • 无原生 GUI:依赖终端与 Markdown 文件,视觉规划体验弱于 Notion、Cron 等工具
  • 写入风险:虽有多重确认机制,但 CLI 操作一旦确认即直接修改云端日历,无「撤销」缓冲
  • 平台依赖:Apple Calendar 自动化仅限 macOS;Windows 用户需额外配置 WSL 或 PowerShell 环境
  • 记忆连续性弱:本地记忆文件需用户主动维护,无自动学习用户偏好的 AI 推断能力

适合人群

  • 开发者、运维工程师、技术管理者等习惯 CLI 工作流的专业人士
  • 多日历源用户(如同时管理个人 Google Calendar 与公司 Outlook)
  • 需要周度「日程修复」而非单点约会的深度时间管理实践者
  • 隐私敏感型用户,希望规划数据尽量本地化处理

常规风险

风险类别 具体表现 缓解措施
误操作写入 CLI 确认后即刻同步云端,可能误删或误移他人会议 强制 dry-run 预览;分离读写权限日历;核心日历设为只读模式
数据残留 本地 ~/calendar-planner/ 目录若未加密,存在规划习惯泄露风险 敏感环境禁用本地记忆;定期清理 inbox.md 与 plans.md
适配器失效 Google/Microsoft API 变更导致 gcalcli 或 Graph 模块失效 锁定特定版本;关注 changelog;保留 ical 导出作为 fallback
时间估算偏差 过度依赖脚本检测,忽略人类「状态波动」因素 保留 manual override 入口;在 memory.md 中记录个人疲劳模式
社交冲突 未经充分协商直接移动共享日历事件 严格遵循「ask before write」原则;优先生成提案供人工确认

安全等级说明

  • 数据最小化:仅传输必要的日历元数据,不含邮件、联系人或任务内容
  • 显式授权:所有外部写入需用户逐次确认,无自动化静默操作
  • 本地优先:分析脚本完全本地运行,规划记忆文件可选且需用户显式同意创建

综合评估:A 级 — 设计良好的隐私优先工具,但 CLI 操作本身带来的误操作风险需用户自行管控。

技能正文


name: Calendar Planner slug: calendar-planner version: 1.0.0 homepage: https://clawic.com/skills/calendar-planner description: Plan work and life across Google Calendar, Outlook, Apple Calendar, and CalDAV with CLI adapters, conflict repair, and weekly reviews. changelog: "Initial release with multi-calendar CLI playbooks, Life Grid planning rules, and local scripts for merge, guard, and weekly review workflows." metadata: {"clawdbot":{"emoji":"C","requires":{"bins":["python3","jq"]},"os":["linux","darwin","win32"],"configPaths":["~/calendar-planner/"]}}

Calendar Planner

Calendar planner for work, family, health, travel, deep work, and recovery across multiple command-line calendar adapters.

Setup

On first use, read setup.md for integration guidelines. Answer the immediate planning question first, ask before creating ~/calendar-planner/, and ask before writing to any calendar or sending invites.

When to Use

User needs calendar planning, schedule repair, weekly planning, time blocking, meeting triage, family logistics, appointment placement, or multi-calendar cleanup. Use when the real job is reconciling commitments and constraints across Google Calendar, Outlook, Apple Calendar, and CalDAV from CLI-capable tools.

This skill should return one defended plan, explicit trade-offs, and a safe action sequence. It is stronger than generic scheduling help when calendars disagree, priorities collide, or the user needs a whole-week repair instead of one more event.

Architecture

Local continuity is optional and only created with user consent.

~/calendar-planner/
├── memory.md        # User-stated planning rules and activation preferences
├── calendars.md     # Provider map, calendar names, and write boundaries
├── rules.md         # Buffers, focus rules, recurring constraints
├── plans.md         # Current week plans and reschedule decisions
└── inbox.md         # Loose commitments that still need placement

Quick Reference

Load only what improves the current planning decision. Start with protocol and commands; add memory only if the user wants continuity.

Topic File
Setup and activation setup.md
Optional continuity memory memory-template.md
Life Grid planning method planning-protocol.md
Domain-specific planning heuristics life-domains.md
CLI adapter recipes commands.md
Merge normalized event exports calendar_merge.py
Audit overlaps and buffer failures calendar_guard.py
Generate weekly planning summary week_plan.py

Requirements

Use the lightest adapter that matches the user's stack. Only install the provider tools needed for the current workflow.

Need CLI / Tool Notes
Google Calendar gcalcli Uses Google Calendar API via the user's own OAuth client
Outlook / Microsoft 365 Microsoft Graph PowerShell Use delegated calendar scopes only
Apple Calendar osascript Automates Calendar.app on macOS
CalDAV and iCloud sync khal plus vdirsyncer Sync locally, then plan from local state
Local analysis python3 and jq Required for merge, guard, and week review scripts

Core Rules

1. Start from the decision, not the CRUD action

  • First answer what should stay, move, cancel, protect, or defer.
  • Ask only for facts that change placement: hard deadline, travel time, attendee constraints, or protected hours.
  • Use planning-protocol.md to convert messy requests into a placement decision.

2. Separate hard commitments from flexible blocks

  • Classify every item as hard, flexible, hold, prep, travel, or recovery before reshuffling the calendar.
  • Flexible blocks can move; hard commitments do not move without explicit approval.
  • Use life-domains.md to prevent work tasks from silently overrunning family, health, or sleep constraints.

3. Merge all visible calendars before moving anything

  • Read every in-scope calendar first, including shared or family calendars only if the user put them in scope.
  • Treat hidden calendars as risk, not as empty time.
  • Use calendar_merge.py when you have multiple normalized exports and need one timeline.

4. Protect buffers, prep, and follow-through

  • Add setup, commute, context switch, follow-up, and decompression time around meetings and appointments.
  • A schedule with no buffers is fake capacity.
  • Use calendar_guard.py to catch overlaps, short gaps, and overloaded days before proposing changes.

5. Writes require explicit approval and narrow scope

  • Ask before creating, updating, deleting, or sending invites through any adapter.
  • Default to a draft plan or dry-run command sequence first.
  • Keep read-only and write-enabled calendars separate in the local continuity notes if the user opts into continuity.

6. Keep memory explicit and minimal

  • Save only user-stated rules, recurring commitments, protected hours, and activation preferences.
  • Do not store attendee lists, detailed event notes, or private descriptions unless the user asks for that continuity.
  • Use memory-template.md only after the user agrees to local persistence.

7. End with an execution-ready plan

  • Every answer should finish with chosen slot(s), remaining conflicts, follow-ups, or a weekly repair plan.
  • If multiple options remain, rank them and explain the winner in one sentence.
  • Use week_plan.py or the adapter recipes in commands.md when a terminal workflow makes the answer more reliable.

Life Grid Protocol

See planning-protocol.md for the full method.

  • Intake: capture the real outcome, not just the requested event.
  • Map: place each item into hard, flexible, prep, travel, or recovery.
  • Defend: protect non-negotiables before offering new slots.
  • Repair: if the week is already broken, show what to move, cancel, or downgrade.
  • Close: leave the user with one recommended plan and the exact next command or calendar action.

Common Traps

  • Solving only the meeting request -> school pickup, travel, medication, or focus constraints break later.
  • Moving events before reading every in-scope calendar -> hidden conflicts and trust damage.
  • Treating recurring blocks as either sacred or disposable by default -> brittle plans or calendar chaos.
  • Packing meetings with no setup or recovery space -> fake capacity and late-day collapse.
  • Writing to shared calendars without approval -> surprises other people and creates social debt.
  • Saving too much private detail locally -> unnecessary privacy risk with no planning upside.

External Endpoints

Only the adapter the user explicitly chooses should talk to a remote service. Use one provider path at a time so data movement stays understandable.

Endpoint Data Sent Purpose
https://www.googleapis.com/calendar/v3/* event metadata for requested Google calendar reads or writes Google Calendar operations through gcalcli
https://graph.microsoft.com/v1.0/* event metadata for requested Outlook or Microsoft 365 reads or writes Calendar operations through Microsoft Graph PowerShell
user-configured CalDAV server event metadata for configured calendars Calendar sync through vdirsyncer and local use through khal

No other data is sent externally.

Security & Privacy

Data that stays local:

  • Optional planning memory in ~/calendar-planner/
  • Normalized event exports and review outputs produced by calendar_merge.py, calendar_guard.py, and week_plan.py
  • Apple Calendar automation through Calendar.app on macOS

Data that may leave your machine:

  • Calendar metadata sent through the Google, Microsoft, or CalDAV adapter the user explicitly chooses

This skill does NOT:

  • Create, move, or delete calendar items without approval
  • Send invites or update shared calendars silently
  • Infer hidden rules from unrelated files or conversations
  • Access email, contacts, or tasks unless the user explicitly expands scope

Trust

By using this skill with Google Calendar, Microsoft Graph, or CalDAV adapters, calendar metadata is sent to those services through the configured CLI tools. Only install if you trust those providers and the local machine running the commands.

Scope

This skill ONLY:

  • Plans and audits schedules across user-approved calendars
  • Produces dry-run commands, normalized planning files, and local review reports
  • Persists minimal planning context after explicit user consent

This skill NEVER:

  • Modifies its own skill file
  • Auto-accepts invites or auto-reschedules people without approval
  • Widens access from one calendar to another without confirmation
  • Stores credentials in local memory files

Related Skills

Install with clawhub install <slug> if user confirms:

  • daily-planner - Daily plan shaping, sequencing, and realistic task placement.
  • schedule - General scheduling workflows when the user does not need full calendar repair.
  • assistant - Chief-of-staff style execution across tasks, messages, and planning.
  • productivity - Focus systems, prioritization, and anti-overload operating rules.
  • remember - Long-term continuity for user-stated constraints and recurring patterns.

Feedback

  • If useful: clawhub star calendar-planner
  • Stay updated: clawhub sync

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

calendarschedulingcliautomationtime-managementproductivitygoogle-calendaroutlookapple-calendarcaldavpython

同类 Skill