← Back to Skills Marketplace
onsra520

Quick Google Calendar Command Line Interface

by onsra520 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
180
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install quick-gcalcli
Description
Google Calendar via gcalcli: today-only agenda by default, bounded meaning-first lookup via agenda scans, and fast create/delete with verification--optimized...
README (SKILL.md)

quick-gcalcli

Use gcalcli to read/search/manage Google Calendar with minimal tool calls and minimal output.

Quick Setup

Before using this skill, please refer to the README.md file in this skill's directory for detailed setup instructions. The setup process includes installing gcalcli, configuring OAuth2 credentials, and setting up the default calendar and timezone.

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 (\x3Cfrom>->\x3Cto>)" 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.
  • Before adding any event, always check if an event with the same title and time already exists to avoid duplication.

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 \x3Cstart> \x3Cend>

Search (fallback / explicit request)

  • Default (~6 months): gcalcli --nocolor search "\x3Cquery>" today +180d
  • Custom: gcalcli --nocolor search "\x3Cquery>" \x3Cstart> \x3Cend>

Create — add (one-off events)

  • Overlap preflight (tight, cross-calendar):
    • gcalcli --nocolor agenda \x3Cstart> \x3Cend>
    • IMPORTANT: do NOT add --calendar here; overlaps must be checked across all non-ignored calendars.
  • Timed event:
    • gcalcli --nocolor --calendar "\x3CCal>" add --noprompt --title "\x3CTitle>" --when "\x3CStart>" --duration \x3Cminutes>
  • All-day event:
    • gcalcli --nocolor --calendar "\x3CCal>" add --noprompt --allday --title "\x3CTitle>" --when "\x3CDate>"
  • With reminders (repeatable flag):
    • --reminder "20160 popup" → 14 days before (20160 = 14×24×60)
    • --reminder "10080 popup" → 7 days before
    • --reminder "0 popup" → at event start
    • Time unit suffixes: w (weeks), d (days), h (hours), m (minutes). No suffix = minutes.
    • Method: popup (default), email, sms.

Create — import via stdin (recurrence / free/busy)

Use ONLY when add can't cover the need (recurring events, TRANSP, etc.). Pipe ICS directly via stdin — never write temp files.

echo 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART;VALUE=DATE:20260308
SUMMARY:Event Title
RRULE:FREQ=YEARLY
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR' | gcalcli import --calendar "\x3CCal>"
  • DTSTART;VALUE=DATE:YYYYMMDD for all-day; DTSTART:YYYYMMDDTHHmmSS for timed.
  • RRULE:FREQ=YEARLY — yearly recurrence. Also: DAILY, WEEKLY, MONTHLY.
  • TRANSP:TRANSPARENT — free; TRANSP:OPAQUE — busy (default).
  • One import call = one event (one VEVENT block). For multiple events, run separate piped imports.
  • Add --reminder "TIME" flag(s) to set reminders (overrides any VALARM in ICS).
  • All import-specific flags (--use-legacy-import, --verbose, etc.) go AFTER import.

Delete (with post-delete verification)

  • Locate via agenda (preferred):
    • gcalcli --nocolor agenda \x3CdayStart> \x3CdayEnd> (exact date)
    • gcalcli --nocolor agenda today +14d (weekday)
    • gcalcli --nocolor agenda today +30d (meaning only)
  • Delete (non-interactive, bounded):
    • gcalcli --nocolor delete --iamaexpert "\x3Cquery>" \x3Cstart> \x3Cend>
  • Verify (same window):
    • gcalcli --nocolor agenda \x3CdayStart> \x3CdayEnd>
  • Optional one retry if still present:
    • gcalcli --nocolor --refresh agenda \x3CdayStart> \x3CdayEnd>

Edit / Modify existing events

  • gcalcli edit is interactive — cannot be used in non-interactive exec.
  • To change properties not editable in-place: delete + recreate the event.
    • Locate → delete (with --iamaexpert) → create with updated properties → verify.
  • For bulk property changes (e.g. setting all events to free): iterate delete+recreate per event.
Usage Guidance
This skill is coherent for managing Google Calendar via the gcalcli CLI. Before installing: (1) ensure you already have gcalcli installed and authenticated (gcalcli stores OAuth tokens locally); (2) review and accept the policy that the agent may perform unambiguous deletes/edits without an extra confirmation prompt — change the SKILL.md if you prefer always asking; (3) avoid passing client secrets on the command line (the README example does so for demonstration but that can leak via process listings); and (4) run in an environment you trust because the skill will invoke gcalcli which has access to your calendar data via local OAuth tokens.
Capability Analysis
Type: OpenClaw Skill Name: quick-gcalcli Version: 1.0.2 The skill is a legitimate wrapper for the `gcalcli` tool, providing structured instructions for an AI agent to manage Google Calendar events. It includes safety features such as overlap checks, post-deletion verification, and clear logic for handling ambiguous requests. While it allows for non-interactive deletions (using the `--iamaexpert` flag), this behavior is explicitly documented in SKILL.md and README.md as a design choice for personal assistant efficiency and is restricted to unambiguous user requests. No evidence of data exfiltration, malicious execution, or unauthorized access was found.
Capability Assessment
Purpose & Capability
Name/description match the runtime instructions: the skill requires the gcalcli binary and all instructions center on using gcalcli to read/search/create/delete calendar events. No unrelated binaries, services, or env vars are requested.
Instruction Scope
The SKILL.md stays within calendar management using gcalcli. One intentional UX choice: the skill will skip explicit user confirmation for destructive actions when it deems a match unambiguous. The SKILL.md documents safeguards (bounded windows, single-match requirement, post-delete verification, disambiguation on ambiguity). This is a policy decision rather than incoherence, but users should be aware of the auto-execution behavior for 'unambiguous' deletes/edits.
Install Mechanism
Instruction-only skill with no install spec. This is low-risk: nothing is downloaded or written by the skill itself. It simply assumes gcalcli is installed already.
Credentials
The skill declares no required environment variables or credentials. README explains that gcalcli itself uses OAuth2 and stores tokens locally; that is expected for a Google Calendar client. Note: README shows an example passing client-id/client-secret on gcalcli command line — this is user configuration guidance, not a declared requirement of the skill, but passing secrets on the command line can expose them via process listings and the operator should avoid that practice.
Persistence & Privilege
Skill does not request persistent/always-on privileges (always: false). It does not modify other skills or system-wide settings. Autonomous invocation (disable-model-invocation: false) is platform default and not excessive here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install quick-gcalcli
  3. After installation, invoke the skill by name or use /quick-gcalcli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
quick-gcalcli 1.0.2 - No user-visible or functional changes in this release. - Documentation, code, and logic remain unchanged. - Only modify the README.md file. OAuth manually instead of the agent.
v1.0.1
- Skill name changed from "google-calendar" to "quick-gcalcli" - Internal files added for metadata and origin tracking: `.clawhub/origin.json` and `_meta.json` - No user-facing command, feature, or rule changes—behavior unchanged - All documentation and canonical command guidelines remain the same under the new skill name
v1.0.0
Initial release – Google Calendar management via gcalcli, optimized for minimal commands and concise output. - Supports today-only agenda by default, with scoped expansion on request. - Deterministic, meaning-based event lookup (agenda scan preferred over search). - Fast, verified create and delete actions with post-action confirmation. - Automatic overlap checks across all non-ignored calendars when creating events. - Designed for efficient personal assistant workflows; minimal and human-friendly responses.
Metadata
Slug quick-gcalcli
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Quick Google Calendar Command Line Interface?

Google Calendar via gcalcli: today-only agenda by default, bounded meaning-first lookup via agenda scans, and fast create/delete with verification--optimized... It is an AI Agent Skill for Claude Code / OpenClaw, with 180 downloads so far.

How do I install Quick Google Calendar Command Line Interface?

Run "/install quick-gcalcli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Quick Google Calendar Command Line Interface free?

Yes, Quick Google Calendar Command Line Interface is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Quick Google Calendar Command Line Interface support?

Quick Google Calendar Command Line Interface is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Quick Google Calendar Command Line Interface?

It is built and maintained by onsra520 (@onsra520); the current version is v1.0.2.

💬 Comments