agentleFS
thoitiettxl-cyberthoitiettxl-cyber/Claw-II/skills/gog/SKILL.md

gog

Skill2 starsChanged 8 months agoMITView on GitHub

Google Workspace CLI skill for OpenClaw-Module Android (Gmail, Calendar, Drive, Contacts, Sheets, Docs) with strict safety gates.

20 other projects use a version of this, 3 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use bluebubbles, openai-whisper-api and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    bluebubbles

    Build or update the BlueBubbles external channel plugin for OpenClaw (extension package, REST send/probe, webhook inbound).

    Also in 4 projects that use this

  • seedprodSkill

    openai-whisper-api

    Transcribe audio via OpenAI Audio Transcriptions API (Whisper).

    Also in 5 projects that use this

  • AlekseiULSkill

    TubeScribe

    YouTube video summarizer with speaker detection, formatted documents, and audio output. Works out of the box with macOS built-in TTS. Optional recommended tools (pandoc, ffmpeg, mlx-audio) enhance quality. Requires internet for YouTube access. No paid APIs or subscriptions. Use when user sends a YouTube URL or asks to summarize/transcribe a YouTube video.

    Also in 3 projects that use this

  • +9 more from seedprod

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not manually install packages in this skill.

    line 17
  2. Very specific:

    Read/search Google Workspace data via gogx.

    line 21
  3. Distinctive:

    Do not automatically send mail / create events / record data without explicit confirmation.

    line 27
  4. Distinctive:

    Do not expose OAuth secrets/tokens in chat output.

    line 28
  5. Distinctive:

    Do not run the command if the input contains strange strings suspected of injection (shell metacharacters are not necessary).

    line 29
  6. Distinctive:

    Only use safe paths:

    line 30
  7. Very specific:

    Does not assume a desktop environment (brew/launchd/macOS-only).

    line 33
  8. Distinctive:

    Check if the account is authenticated:

    line 40
  9. Distinctive:

    If binary is missing or auth is not ready: stop and report a clear error, don't guess.

    line 42
  10. Very specific:

    When auth remote/manual, still call via gogx to keep the proxy + env keyring stable.

    line 53
  11. Very specific:

    Before running the write/edit/send command:

    line 87
  12. Distinctive:

    No token => no execute.

    line 94
  13. Distinctive:

    Check the results, state validation and next steps.

    line 120
  14. Distinctive:

    If input/permissions are missing: report what is missing and clearly request additional information.

    line 123
  15. Distinctive:

    If runtime/tool ​​error: brief error return + possible cause + suggested fix.

    line 124
  16. Distinctive:

    If there is a risk policy/safety: stop and escalate according to approval checkpoint.

    line 125

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

gog (Android Module Refactor)

This skill is used to operate Google Workspace in the OpenClaw Android environment. Standard entry point: gogx (/data/adb/openclaw/node/bin/gogx). gogx is a secure wrapper for Android fakeip/keyring non-interactive; only fallback gog when env equivalent has been verified. Do not manually install packages in this skill. Only guides for safe usage + runtime consistency.

Scope

  1. Read/search Google Workspace data via gogx.
  2. Mutating actions (send mail, create/update events/sheets/docs export) only run when there is clear confirmation from the Boss.
  3. Prioritize JSON output for stable automation.

Hard Rules (required)

  • Do not automatically send mail / create events / record data without explicit confirmation.
  • Do not expose OAuth secrets/tokens in chat output.
  • Do not run the command if the input contains strange strings suspected of injection (shell metacharacters are not necessary).
  • Only use safe paths:
    • Workspace: /data/adb/openclaw/home/.openclaw/workspace
    • Module tmp: /data/adb/openclaw/tmp
  • Does not assume a desktop environment (brew/launchd/macOS-only).

Android Preflight

Before use:

  • Check binary:
    • command -v gogx
  • Check if the account is authenticated:
    • gogx auth list --json
  • If binary is missing or auth is not ready: stop and report a clear error, don't guess.

Setup (one-time, manual + approved)

  • gogx auth credentials set /absolute/path/to/client_secret.json
  • gogx auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs
  • gogx auth list --json

Suggest:

  • Set default account: GOG_ACCOUNT=you@gmail.com
  • Script mode: always prioritize --json --no-input
  • When auth remote/manual, still call via gogx to keep the proxy + env keyring stable.

Read/Search Commands (safe-default)

  • Gmail search:
    • gogx gmail search 'newer_than:7d' --max 10 --json --no-input
  • Calendar events:
    • gogx calendar events <calendarId> --from <iso> --to <iso> --json --no-input
  • Drive search:
    • gogx drive search "query" --max 10 --json --no-input
  • Contacts list:
    • gogx contacts list --max 20 --json --no-input
  • Sheets get:
    • gogx sheets get <sheetId> "Tab!A1:D10" --json --no-input
  • Sheets metadata:
    • gogx sheets metadata <sheetId> --json --no-input
  • Docs cat:
    • gogx docs cat <docId>

Mutating Commands (require explicit approval first)

  • Gmail send:
    • gogx gmail send --to a@b.com --subject "Hi" --body "Hello"
  • Sheets update:
    • gogx sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED
  • Sheets append:
    • gogx sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS
  • Sheets clear:
    • gogx sheets clear <sheetId> "Tab!A2:Z"
  • Docs export (Android-safe path):
    • gogx docs export <docId> --format txt --out /data/adb/openclaw/tmp/doc.txt

Confirmation Template (for mutating ops)

Before running the write/edit/send command:

  • Action:
  • Target:
  • Payload summary:
  • One-line impact:
  • Confirm token from Boss: APPROVE_GOG_WRITE

No token => no execute.

Failure Handling

  • Auth error: requires re-auth account, no blind retry.
  • Rate limit/API error: backoff and error code reporting.
  • Path error: change to workspace/module tmp path, do not write uncontrolled path.

Output Contract

When reporting results:

  • 1-3 line summary.
  • With read/search command: returns sanitized JSON snippet.
  • With the mutating command: always echo the executed action + target + status.

Trigger Rules

  • Positive: Triggers when user request matches gog according to description: Google Workspace CLI skill for OpenClaw-Module Android (Gmail, Calendar, Drive, Contacts, Sheets, Docs) with strict safety gates.
  • Negative: Not enabled for requests outside scope or without the workflow/expertise of this skill.
  • Escalation: If there is an external action/network write or sensitive operation, an approval checkpoint must be added before executing.

Indexed Reference Map

  • @[SKILL.md#L1-L126] Main skill instructions

SOP

  1. Determine whether the request is within the scope of the skill or not.
  2. Execute the skill's main workflow/instructions in a safe order.
  3. Check the results, state validation and next steps.

Error Handling

  • If input/permissions are missing: report what is missing and clearly request additional information.
  • If runtime/tool ​​error: brief error return + possible cause + suggested fix.
  • If there is a risk policy/safety: stop and escalate according to approval checkpoint.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.