Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

recipe-share-folder-with-team — Claude Code skill: setup & usage

A step-by-step recipe to share a Google Drive folder and its contents with teammates using gws. Useful for granting reader or writer access directly from the CLI.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill recipe-share-folder-with-team -a claude-code
Open on GitHub

What recipe-share-folder-with-team does

This skill provides instructions for managing Google Drive folder permissions with the gws command-line tool. It searches for a directory by name and MIME type, then sets user permissions using collaborator email addresses.

The workflow uses gws drive permissions create to assign writer or reader roles, followed by gws drive permissions list to output the results as a table. To execute the steps, you must have the gws binary installed and load the gws-drive skill beforehand.

Install this recipe if you manage workspace permissions via coding agents. If your workflow does not rely on the gws CLI tool, skip it.

What it helps with

  • find a Google Drive folder by name and folder MIME type
  • assign writer permissions on a folder to a collaborator email
  • grant reader access to stakeholders
  • list and verify folder permissions in table format

Example prompts for the agent

  • Find the Google Drive folder named Project X and share it with [email protected] as an editor
  • Grant viewer permissions for FOLDER_ID to [email protected]
  • Check existing permissions for FOLDER_ID in table format

How to install recipe-share-folder-with-team

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill recipe-share-folder-with-team -a claude-code

2Manually: put the files in place

~/.claude/skills/recipe-share-folder-with-team/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recipe-share-folder-with-team/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

Questions about recipe-share-folder-with-team

How to install recipe-share-folder-with-team in Claude Code?

Run npx skills add googleworkspace/cli --skill recipe-share-folder-with-team -a claude-code or save it to ~/.claude/skills/recipe-share-folder-with-team/SKILL.md.

What does recipe-share-folder-with-team do?

It provides a routine to find a Google Drive folder, grant writer or reader roles to users, and verify permissions.

What are the prerequisites for this recipe?

You need the gws binary installed and the gws-drive skill loaded.

Source text

SKILL.md · Apache-2.0
---
name: recipe-share-folder-with-team
description: "Share a Google Drive folder and all its contents with a list of collaborators."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-drive
---

# Share a Google Drive Folder with a Team

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`

Share a Google Drive folder and all its contents with a list of collaborators.

## Steps

1. Find the folder: `gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'`
2. Share as editor: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'`
3. Share as viewer: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "[email protected]"}'`
4. Verify permissions: `gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table`

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor