跳到主内容
智客 ZICQ

技能库 智客分类:协作效率 gcalcli-calendar OpenClaw

Gcalcli Calendar

谷歌日历通过gcalcli:默认为今天的唯一议事日程,通过议事日程扫描限定意义-第一检索,快速创建/删除与验证-优化用于低度工具呼叫和最小输出.

540 安装量 · 10 星标

官方网址:ClawHub

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

谷歌日历通过gcalcli:默认为今天的唯一议事日程,通过议事日程扫描限定意义-第一检索,快速创建/删除与验证-优化用于低度工具呼叫和最小输出.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:gcalcli-calendar、Rules、CLI flag placement (critical)、Output & language、Dates & formatting、Calendar scope。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Google Calendar via gcalcli: today-only agenda by default, bounded meaning-first lookup via agenda scans, and fast create/delete with verification--optimized for low tool calls and minimal output.

gcalcli-calendarRulesCLI flag placement (critical)Output & languageDates & formattingCalendar scopeAgenda (today-only by default)Weekday requests (no mental math)Finding events: prefer deterministic agenda scan (meaning-first)Search (bounded)Tool efficiencyActions policy (optimized for conversational speed)

来源分类:ClawHub Calendar

SKILL.md 与 Agent 调用

官方规范 ↗
name
gcalcli-calendar
description
Google Calendar via gcalcli: today-only agenda by default, bounded meaning-first lookup via agenda scans, and fast create/delete with verification--optimized for low tool calls and minimal output.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「gcalcli-calendar」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-c42daeeacded28e8-Gcalcli-Calendar.html
请存为 .cursor/skills/gcalcli-calendar/SKILL.md 或 .claude/skills/gcalcli-calendar/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。

ClawHub ↗

阅读排版
--- name: gcalcli-calendar description: "Google Calendar via gcalcli: today-only agenda by default, bounded meaning-first lookup via agenda scans, and fast create/delete with verification--optimized for low tool calls and minimal output." metadata: {"openclaw":{"emoji":"📅","requires":{"bins":["gcalcli"]}}} --- # gcalcli-calendar Use `gcalcli` to read/search/manage Google Calendar with minimal tool calls and minimal output. ## Rules ### CLI flag placement (critical) - Global flags (`--nocolor`, `--calendar`) go BEFORE the subcommand. - Subcommand-specific flags go AFTER the subcommand name. - Example: `gcalcli --nocolor delete --iamaexpert "query" start end` — NOT `gcalcli --nocolor --iamaexpert delete ...`. - This applies to ALL subcommand flags: `--iamaexpert` (delete), `--noprompt`/`--allday` (add), `--use-legacy-import` (import), etc. ### Output & language - Don't print CLI commands/flags/tool details unless the user explicitly asks (e.g. "show commands used", "/debug", "/commands"). - If asked for commands: print ALL executed commands in order (including retries) and nothing else. - Don't mix languages within one reply. - Be concise. No scope unless nothing found. ### Dates & formatting - Human-friendly dates by default. ISO only if explicitly requested. - Don't quote event titles unless needed to disambiguate. ### Calendar scope - Trust gcalcli config (default/ignore calendars). Don't broaden scope unless user asks "across all calendars" or results are clearly wrong. ### Agenda (today-only by default) - If user asks "agenda" without a period, return today only. - Expand only if explicitly asked (tomorrow / next N days / date range). ### Weekday requests (no mental math) If user says "on Monday/Tuesday/..." without a date: 1) fetch next 14 days agenda once, 2) pick matching day/event from tool output, 3) proceed (or disambiguate if multiple). ### Finding events: prefer deterministic agenda scan (meaning-first) When locating events to cancel/delete/edit: - Prefer `agenda` over `search`. - Use a bounded window and match events by meaning (semantic match) rather than exact text. - Default locate windows: - If user gives an exact date: scan that day only. - If user gives a weekday: scan next 14 days. - If user gives only meaning words ("train", "lecture", etc.) with no date: scan next 30 days first. - If still not found: expand to 180 days and say so only if still empty. Use gcalcli `search` only as a fallback when: - the time window would be too large to scan via agenda (token-heavy), or - the user explicitly asked to "search". ### Search (bounded) - Default search window: next ~180 days (unless user specified otherwise). - If no matches: say "No matches in next ~6 months (->)" and offer to expand. - Show scope only when nothing is found. ### Tool efficiency - Default: use `--nocolor` to reduce formatting noise and tokens. - Use `--tsv` only if you must parse/dedupe/sort. ## Actions policy (optimized for conversational speed) This skill is designed for personal assistant use where the user expects fast, low-friction calendar management. The confirmation policy below is an intentional UX choice — see README.md for rationale and safety guards. ### Unambiguous actions: execute immediately For cancel/delete/edit actions, skip confirmation when ALL of these hold: - The user explicitly requested the action (e.g. "delete my dentist appointment"). - Exactly one event matches in a tight time window. - The match is unambiguous (single clear result on an exact date, or user specified date+time). ### Ambiguous actions: always ask first If multiple candidates match, or the match is uncertain: - Ask a short disambiguation question listing the candidates (1-3 lines) and wait for the user's choice. ### Create events: overlap check MUST be cross-calendar (non-ignored scope) When creating an event: - Always run a best-effort overlap check across ALL non-ignored calendars by scanning agenda WITHOUT `--calendar`. - This ensures overlaps are detected even if the new event is created into a specific calendar. - If overlap exists with busy events: - Ask for confirmation before creating. - If no overlap: - Create immediately. ### Choose the right create method - **`add`** — default for one-off events. Supports `--allday`, `--reminder`, `--noprompt`. Does NOT support recurrence or free/busy (transparency). - **`import` via stdin** — use ONLY when you need recurrence (RRULE) or free/busy (TRANSP:TRANSPARENT). Pipe ICS content via stdin; NEVER write temp .ics files (working directory is unreliable in exec sandbox). - **`quick`** — avoid unless user explicitly asks for natural-language add. Less deterministic. ### Deletes must be verified - Use non-interactive delete with `--iamaexpert` (a `delete` subcommand flag — goes AFTER `delete`). This is gcalcli's built-in flag for non-interactive/scripted deletion. - Always verify via agenda in the same tight window after deletion. - If verification still shows the event, do one retry with `--refresh`. - Never claim success unless verification confirms the event is gone. ## Canonical commands ### Agenda (deterministic listing) - Today: `gcalcli --nocolor agenda today tomorrow` - Next 14d (weekday resolution): `gcalcli --nocolor agenda today +14d` - Next 30d (meaning-first locate): `gcalcli --nocolor agenda today +30d` - Custom: `gcalcli --nocolor agenda ` ### Search (fallback / explicit request) - Default (~6 months): `gcalcli --nocolor search "" today +180d` - Custom: `gcalcli --nocolor search "" ` ### Create — `add` (one-off events) - Overlap preflight (tight, cross-calendar): - `gcalcli --nocolor agenda ` - IMPORTANT: do NOT add `--calendar` here; overlaps must be checked across all non-ignored calendars. - Timed event: - `gcalcli --nocolor --calendar "" add --noprompt --title "

相关技能

协作效率

Gog

Google 工作空间 CLI 用于 Gmail, Calendar, Drive, 联系人, 工作表和文档 .

协作效率

Notion

用于创建和管理页面、数据库和块的逗号 API.

协作效率

Slack

需要通过懒惰工具控制 Clawdbot 的 Slack 时使用,包括在 Slack 频道或 DMs 中对消息作出反应或发夹/取消项目.

协作效率

Imap Smtp Email

通过IMAP/SMTP读取并发送电子邮件. 检查新/未读信件,获取内容,搜索信箱,标记为已读/未读,并发送带有附件的邮件. 支持多个账户。 与任何IMAP/SMTP服务器合作,包括Gmail,Outlook,163.com,vip.163.com,126.com,vip.126.…