Google workspace

From akillness/jeo-skills · View interactive version

Google workspace is an AI agent skill from the GitHub repository akillness/jeo-skills. Plan and execute Google Workspace operations across Docs, Sheets, Slides, Drive, Gmail, Calendar, Forms, Chat, and Admin SDK by choosing the right surface first: Apps Script, direct REST API, or admin-only APIs. Use when the user needs to automate a Workspace workflow, edit or create Workspace files

How to use this skill

Skill file

Google Workspace

Use this skill to route Google Workspace work before writing code or pasting API snippets. The key decision is usually which Workspace surface should own the job:

When to use this skill

Instructions

Step 1: Classify the request

Capture five things before touching any API:

  1. Primary product surface — Docs, Sheets, Slides, Drive, Gmail, Calendar, Forms, Chat, or Admin SDK
  2. Operation — create, read, update, search, share, send, schedule, export, batch update, administer
  3. Actor / identity — end user, service account, delegated admin, or Apps Script owner
  4. Execution home — inside Workspace UI/runtime, backend service, cron/batch worker, or mixed workflow
  5. Trigger / cadence — manual, form submit, scheduled, web request, bulk migration, admin event

If the user describes multiple Workspace apps, treat it as a workflow problem first, not a single-API problem.

Step 2: Choose the execution surface

Use Apps Script when
Use direct REST APIs when
Use Admin SDK / admin APIs when
Use an external automation layer only as a route-out

Step 3: Pick the auth model

| Auth model | Use when | Typical surfaces | Notes |

|---|---|---|---|

| OAuth user flow | Acting on a real user’s mailbox, calendar, Drive, docs, or personal content | Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Chat | Best default for user-owned data |

| Service account | Backend automation owns the data or operates on shared resources | Drive, backend-generated docs/sheets, service workflows | May need shared-drive/file access design |

| Service account + domain-wide delegation | Admin or org-wide actions must impersonate users safely | Admin SDK, org-wide Gmail/Calendar/Drive workflows | Higher security burden; keep scope narrow |

| Apps Script-bound auth | The workflow is intentionally inside Workspace and tied to the script owner / install model | Sheets, Docs, Forms, Gmail, Calendar, Drive | Fast to start, but runtime/quotas still matter |

Rules:

Step 4: Route to the right Workspace product

| Product | Good for | Common operations | Route out when |

|---|---|---|---|

| Docs | formatted text documents | create docs, replace placeholders, insert text/tables/images, export | the deliverable is really a slide deck or spreadsheet |

| Sheets | tabular workflows and lightweight ops databases | append/update rows, formatting, formulas, filters, approvals, dashboards | the user needs durable database design or BI modeling |

| Slides | generated presentations and updateable decks | create slides, replace placeholders, thumbnails, batch updates | the real job is deck strategy/content design rather than API execution |

| Drive | storage, sharing, folder hierarchy, export/import | upload files, create folders, search files, permissions, shared drives | the main problem is information architecture rather than Drive API calls |

| Gmail | mailbox automation and outbound messages | drafts, send, labels, search, thread actions | the main job is email writing strategy rather than mailbox ops |

| Calendar | scheduling and event automation | create events, invite attendees, sync timing, Meet links | the core issue is meeting policy or roadmap planning |

| Forms | intake, surveys, quizzes, response pipelines | create/update forms, response collection, Form → Sheet workflows | the job is survey design methodology rather than implementation |

| Chat | workspace messaging automations | post messages, bot flows, notifications | the user needs broader chatops platform design |

| Admin SDK | directory and domain administration | users, groups, org units, licenses, settings | ordinary content workflows are being over-administered |

Step 5: Use workflow packets for common cross-service jobs

Form intake packet
Approval / operations packet
Reporting packet

For multi-step flows, define:

Step 6: Check quota and runtime risk

Before finalizing the plan, ask whether the workflow is:

If yes:

Step 7: Produce a concrete execution packet

Return a compact plan with:

Examples

Example 1: Form → Sheet → email workflow

Prompt: “Create an employee feedback form, collect responses in Sheets, and send a confirmation email.”

Use this skill to:

Example 2: Shared Drive onboarding packet

Prompt: “Create a shared Drive folder structure for a new client, share it with three users, and generate a kickoff doc.”

Use this skill to:

Example 3: Workspace admin request

Prompt: “Suspend a departing user, move them to a different org unit, and audit their group membership.”

Use this skill to:

Example 4: Sheet-heavy approvals automation

Prompt: “Turn this spreadsheet into an approvals queue with reminder emails and status updates.”

Use this skill to:

Best practices

  1. Start with surface choice, not code snippets.
  2. Separate content operations from admin operations.
  3. Use Apps Script for Workspace-native ergonomics; use direct APIs when backend control or scale matters more.
  4. Keep scopes narrow and state exactly whose identity is acting.
  5. For multi-app workflows, define the source of truth and trigger source first.
  6. Prefer batch updates over chatty per-row / per-cell loops when the API supports batching.
  7. If the problem is actually writing emails, documents, surveys, dashboards, or presentations, route to the corresponding content skill after the Workspace execution packet is clear.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.