1---2name: google-calendar-connector3description: Use when tasks require google calendar connector with credential-aware preflight, deterministic execution, validation gates, and handoff-ready artifacts.4---56# Google Calendar Connector78## Quick Reference9| Field | Value |10| --- | --- |11| Skill ID | `121` |12| Provider | `Google Calendar` |13| Operation | `Connector` |14| Domain | `Productivity and file platforms` |15| Runtime archetype | `integration-connector` |16| Core method | `auth-scoped api mediation` |17| Primary artifact | `google-calendar-connection-trace-bundle` |18| Routing tag | `google-calendar:connector` |19| Mutating | `yes` |20| Release cycles | `2` |2122## Why This Skill Exists23We need this skill because Google Calendar workflows degrade when auth, schema, and side-effect handling drift when integrations are run ad hoc. This specific skill turns Google Calendar Connector into a deterministic, auth-checked workflow for unified read/write connector for google calendar apis and data..2425## Trigger Checklist26- [ ] The task explicitly requires `Google Calendar Connector` rather than generic brainstorming.27- [ ] The provider tenant, workspace, or environment is known before execution begins.28- [ ] Credential reuse has been checked before asking for new secrets.29- [ ] Success criteria, side effects, and handoff owner are clear.30- [ ] If the run mutates provider state, the relevant approval gates are available.3132## Auth & Access Profile33| Field | Value |34| --- | --- |35| External auth required | `yes` |36| API key likely required | `no` |37| Protocols | `HTTPS/REST`, `provider SDK` |38| Mutating | `yes` |39| Webhook capable | `no` |4041| Auth Mode | Kind | Env Hints | Validation |42| --- | --- | --- | --- |43| OAuth client or delegated session | `oauth2` | `GOOGLE_CALENDAR_CLIENT_ID`, `GOOGLE_CALENDAR_CLIENT_SECRET` | Reuse an active delegated session or validate the client credentials with a lightweight identity call. |4445## Inputs (contract)46| Input | Type | Required | Source |47| --- | --- | --- | --- |48| auth context | signal | yes | operator or upstream tool |49| resource scope | signal | yes | operator or upstream tool |50| request contract | signal | yes | operator or upstream tool |5152## Outputs (contract)53| Output | Type | Guaranteed | Consumer |54| --- | --- | --- | --- |55| google-calendar-connection-trace-bundle | structured-artifact | yes | next workflow or operator |56| google-calendar-connection-trace-bundle-scorecard | scorecard | yes | reviewer |57| google-calendar-connection-trace-bundle-handoff | handoff-packet | yes | downstream owner |5859## Step-by-Step Implementation Guide601. Define the objective, target resources, and permitted side effects for Google Calendar Connector, then confirm the smallest read-only probe that proves access to Google Calendar.612. Resolve credential reuse first, validate identity and scopes, and only ask for new secrets if the existing auth context is missing, invalid, or expired.623. Specify the request and response contract for unified read/write connector for google calendar apis and data., including idempotency rules and provider rate-limit posture.634. Execute the read-only probe, widen to the minimum required write scope, and capture deterministic request/response traces for every call.645. Run integration and regression checks that cover auth expiry, scope mismatch, and rate limiting before approving downstream automation reuse.656. Publish a connection bundle with scopes, created artifacts, and next-action guidance for any workflow that depends on this provider session.6667## Operational Runbook68### Preflight69- Verify credential reuse candidates before asking for new secrets.70- Start with the minimum read-only probe that proves identity, scope, and rate-limit posture.7172### Execution73- Execute the smallest valid API operation first, then widen scope only after validation passes.74- Capture endpoint, request shape, and response identifiers in the handoff bundle.7576### Recovery77- On auth or permission failure, stop writes, preserve diagnostics, and fall back to read-only verification.78- On mutating error, revoke the write session and reconcile resulting state before retry.7980### Handoff81- Return the validated connection state, scopes used, and any newly created IDs or URLs.82- Document whether the session is safe for downstream automation or requires human re-approval.8384## Validation Gates & Test Matrix85| Gate | Purpose | On Fail |86| --- | --- | --- |87| auth-preflight | Validate credential presence, scope, and environment before work begins. | block execution |88| schema-contract-check | Ensure required signals and payload shapes remain valid. | quarantine and request correction |89| policy-approval-check | Verify the declared approval gates before mutating or publishing state. | pause or route to human review |90| reliability-check | Confirm retries, rollback, and checkpoint readiness. | rollback or fail closed |9192- Required validation suites: `unit`, `integration`, `regression-baseline`9394## Failure Modes & Recovery Playbook95| Code | Trigger | Action |96| --- | --- | --- |97| `E_AUTH_CONTEXT` | Missing, invalid, or expired provider credentials. | Fail closed, capture auth diagnostics, and request corrected auth context. |98| `E_SCOPE_MISMATCH` | Credential exists but required scopes or permissions are absent. | Block mutating operations and route to human review with exact missing scopes. |99| `E_PROVIDER_RATE_LIMIT` | Provider rejects calls due to throttling or abuse detection. | Apply retry budget, reduce concurrency, and resume with read-only verification. |100101## Tool Call Implementation102- Reuse existing credentials first. Check environment variables, secure stores, and active sessions before prompting.103- Start with the smallest authenticated read or validation call that proves identity and scope.104- Preserve request, response, and approval traces in `google-calendar-connection-trace-bundle` so downstream owners do not need to rediscover context.105- If any auth, contract, or approval gate fails, halt execution and attach remediation guidance instead of guessing.106107## Credential Reuse Policy108- Reuse valid provider credentials by default and prefer tenant-scoped sessions over newly created secrets.109- Prompt for credentials only when they are missing, invalid, expired, or point at the wrong environment.110- For webhook flows, validate the signing secret against a known sample before accepting live traffic.111112## Guardrails113- quality: Require an auth preflight and read-only probe before any write-capable call. (`auth-preflight+read-probe`)114- reliability: Throttle retries and reconcile provider state after write failures. (`retry-budget+state-reconcile`)115- compliance: Enforce least privilege and preserve the scopes used for the run. (`scope-audit`)116117## Acceptance Checklist118- [ ] Credential preflight and scope validation completed successfully.119- [ ] Required validation suites ran and all fail-closed gates passed.120- [ ] google-calendar-connection-trace-bundle, scorecard, and handoff packet were produced.121- [ ] Any mutations, approvals, or rollbacks are reflected in the artifact bundle.122123## Anti-Patterns124- Do not ask for new credentials before checking reusable auth context.125- Do not skip the read-only or dry-run validation step for mutating work.126- Do not proceed when approval gates, signing secrets, or rollback checkpoints are missing.127- Do not hand off partial or ambiguous provider state as complete.128129## Handoff Contract130- **Produces:** `google-calendar-connection-trace-bundle`, execution scorecard, approval trace, and next actions.131- **Consumes:** `auth context`, `resource scope`, `request contract`.132- **Readiness rule:** release only after auth, contract, approval, and reliability gates all pass.133- **Downstream hint:** route to `google-calendar:connector` consumers with approval and credential context attached.134135## Observability & Continuous Improvement136- SLO: >=99.7% successful runs per 7-day window137- Error budget: <=0.3% critical failures per 7-day window138- Alert triggers:139- credential validation failures exceed baseline140- schema or contract regressions persist for two consecutive runs141- critical posture or rollback events exceed tolerance142- Primary outcome metric: `auth success rate`143- Secondary metrics: `request validation pass rate`, `side-effect correctness`144- Review cadence: `weekly`