1. Habit
  2. Skills
  3. Google Drive (gws) skill
googleworkspace · 74K installs

Google Drive (gws) skill
Runs by itself, every morning.

Know what changed in Drive.

Install the Google Drive (gws) skill and make it a habit: follow https://gethabit.dev/skills/googleworkspace/gws-drive.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

74K installs32K starsApache-2.0 licenceSource on GitHub ↗

Google Drive (gws)

by googleworkspace · 74K installs

The skill

The Google Drive (gws) skill lets your agent manage Drive files, folders, shared drives, permissions, comments and revisions through the gws command line, for teams who want their agent to work in Google Drive.

Only when you ask.

The habit

Know what changed in Drive.

↻ Runs by itselfevery morning

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after 100 changes per run; the rest wait for the next run.

  1. 01

    Read shared rules

    Your agent reads ../gws-shared/SKILL.md for auth, global flags and security rules.

  2. 02

    Load the token

    It reads the saved page token, or gets one with changes getStartPageToken.

  3. 03

    List changes

    It runs gws drive changes list from that token, after checking gws schema.

  4. 04

    Check sharing

    For each changed file it runs permissions list to see who has access.

  5. 05

    Write the digest

    It writes what changed and who can see it.

  6. 06

    Save the token

    It stores the new page token for the next run.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Google Drive (gws) skill helps.

Use it when

  • ✓ You track what changed in Drive
  • ✓ You check who a file is shared with
  • ✓ You upload or copy files by script

Skip it when

  • – You do not use Google Drive
  • – gws is not installed

Questions

Google Drive (gws) skill, answered.

Does it change any files?

No. This loop only reads changes and permissions.

Why check gws schema first?

The skill says to inspect each method's params before calling it and to build --params and --json from that.

How do I install the Google Drive (gws) skill?

Copy the prompt at the top into your agent. It installs the skill from googleworkspace/cli and sets up the habit. Or run npx skills add googleworkspace/cli --skill gws-drive.

Is the Google Drive (gws) skill free?

Yes. It is published under Apache-2.0. Habit is free too.

Google Drive (gws). Now as a habit.

Install the Google Drive (gws) skill and make it a habit: follow https://gethabit.dev/skills/googleworkspace/gws-drive.md

  • Free
  • No account
  • Undo in one line

All googleworkspace skills →More ops skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by googleworkspace, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.