# Send Calendar Hold Sync to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "calendar-hold-sync",
    "name": "Calendar Hold Sync",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/tdewitt/calendar-hold-sync",
    "canonicalUrl": "https://clawhub.ai/tdewitt/calendar-hold-sync",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/calendar-hold-sync",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=calendar-hold-sync",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.base.md",
      "README.md",
      "SKILL.md",
      "agents/openai.yaml",
      "providers/openclaw.md",
      "providers/codex.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "calendar-hold-sync",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T07:34:11.275Z",
      "expiresAt": "2026-05-06T07:34:11.275Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=calendar-hold-sync",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=calendar-hold-sync",
        "contentDisposition": "attachment; filename=\"calendar-hold-sync-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "calendar-hold-sync"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/calendar-hold-sync"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/calendar-hold-sync",
    "downloadUrl": "https://openagent3.xyz/downloads/calendar-hold-sync",
    "agentUrl": "https://openagent3.xyz/skills/calendar-hold-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/calendar-hold-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/calendar-hold-sync/agent.md"
  }
}
```
## Documentation

### Calendar Hold Sync

Implement hold mirroring from source Google calendars into target calendars to prevent double-booking.

### Dependency

Require gog CLI in PATH.
Require user OAuth already configured for each account used in mappings.
Do not hardcode account emails, calendar IDs, or event IDs in code.

If gog is not configured, use this setup flow:

Run gog auth credentials /path/to/client_secret.json.
Run gog auth add you@gmail.com --services calendar.
Verify with gog auth list.

Only add additional Google services if you explicitly need them for another workflow.

Official gog references:

Homepage: https://gogcli.sh/
Source: https://github.com/steipete/gogcli

### Config Contract

Use a user-provided JSON config file with this shape:

mappings[]
mappings[].name
mappings[].targetAccount
mappings[].targetCalendarId (default primary)
mappings[].sources[] with { account, calendarId }
mappings[].lookaheadDays (default 30)
mappings[].allDayMode: ignore|mirror
mappings[].overlapPolicy: skip|allow
hold.summary (default Busy)
hold.visibility (private)
hold.transparency (busy)
hold.notifications (none)
hold.reminders (none)
metadata.format (SYNCV1)
metadata.encoding (base64url(json))
metadata.fields: srcAccount,srcCalendar,eventId,start,end,title
scheduling.reconcileCron
scheduling.daytimeCron (optional)
scheduling.driftWindowDays (optional)
scheduling.watchIntervalSeconds (optional, default 20)
safety.dryRun
safety.maxChangesPerRun
safety.excludeIfSummaryMatches[]
safety.excludeIfDescriptionPrefix[]
gog.listEventsCmd|createEventCmd|updateEventCmd|deleteEventCmd (optional template overrides)
gog.allowCustomCommands (must be true to enable any gog.*Cmd override)

### Custom Command Template Safety

When custom commands are enabled:

Only gog command templates are accepted.
Templates are rendered by replacing placeholders like {account} and {calendarId}.
Rendered commands are executed as argv tokens (no shell interpolation).
Keep gog.allowCustomCommands=false unless you fully trust and audit the config file.

### Metadata Encoding

Store source linkage in hold description as:

SYNCV1:<base64url(JSON)>

JSON fields:

srcAccount
srcCalendar
eventId
start
end
title

### Behavior

For each mapping:

Read source events in the active window.
Build desired hold events (private, busy, no reminders).
Detect existing managed holds by SYNCV1: prefix.
Reconcile idempotently:

Create missing holds.
Update drifted holds.
Delete stale holds.

If overlap policy is skip, do not create a hold when a non-managed target event overlaps.
Enforce maxChangesPerRun.
Respect dryRun.

### Backfill

Backfill mode upgrades legacy hold events (matching expected hold signature but lacking SYNCV1) by attaching encoded metadata when a unique source match exists.

### Command Surface

hold-sync validate-config
hold-sync reconcile --mapping <name>|--all [--dry-run]
hold-sync backfill --mapping <name>|--all [--dry-run]
hold-sync status --mapping <name>|--all
hold-sync install-cron --mapping <name>|--all
hold-sync watch --mapping <name>|--all [--dry-run] [--interval-seconds <n>]

### Watch Cadence

Require watch cadence to be configurable from user config:

scheduling.watchIntervalSeconds controls watch poll frequency.
mappings[].lookaheadDays controls rolling watch/reconcile window.

Recommend baseline values:

watchIntervalSeconds: 900 (15 minutes)
lookaheadDays: 1 (24 hours)

### Working Model

Use polling-based watch mode (hold-sync watch) for fast updates.
Expect update latency approximately equal to watchIntervalSeconds.
Treat this as self-hosted/operator-run automation.

### Known Limits

Do not assume webhook/push subscriptions are present; current fast sync path is polling.
Keep periodic scheduled reconcile as fallback even when watch mode is enabled.

### Required Tests

metadata encode/decode round-trip
overlap detection correctness
idempotent reconcile upsert/delete behavior

Attribution: gog setup flow adapted from:

https://clawhub.ai/steipete/gog
https://github.com/steipete/gogcli
https://gogcli.sh/

### Provider Notes (openclaw)

Use this variant when publishing to ClawHub/OpenClaw.

Keep instructions implementation-focused and command-oriented.
Keep dependency explicit: gog must be preconfigured by user.
Prefer deterministic script execution over speculative edits.
Avoid provider-specific APIs; treat the CLI as the boundary.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tdewitt
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T07:34:11.275Z
- Expires at: 2026-05-06T07:34:11.275Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/calendar-hold-sync)
- [Send to Agent page](https://openagent3.xyz/skills/calendar-hold-sync/agent)
- [JSON manifest](https://openagent3.xyz/skills/calendar-hold-sync/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/calendar-hold-sync/agent.md)
- [Download page](https://openagent3.xyz/downloads/calendar-hold-sync)