
Google Drive
Connect an agent to Google Drive via Membrane to list, organize, permission, and share files without hand-rolling OAuth.
Overview
Google Drive is an agent skill for the Build phase that integrates Google Drive file, folder, permission, and shared-link operations through the Membrane CLI.
Install
npx skills add https://github.com/membranedev/application-skills --skill google-driveWhat is this skill?
- Google Drive via Membrane CLI with handled auth and credential refresh
- Covers files, folders, permissions, and shared links
- Free-tier Membrane account supported per skill metadata
- npm global install: @membranehq/cli
- membrane login --tenant for browser or headless authorization
Adoption & trust: 2.1k installs on skills.sh; 178 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need your agent or app to touch Google Drive data but do not want to maintain OAuth flows and token refresh yourself.
Who is it for?
Indie builders adding Drive-backed document features or agent automations that sync or share team files.
Skip if: Offline-only CLIs, teams forbidden from third-party auth brokers, or jobs that only need local filesystem storage.
When should I use this skill?
Use when the user wants to interact with Google Drive data—manage drives, users, permissions, files, folders, or shared links.
What do I get? / Deliverables
You can authenticate with Membrane and implement Drive file and permission workflows from the terminal with auth plumbing delegated to the platform.
- Authenticated Membrane Drive session
- Integration scripts or agent flows for files and permissions
Recommended Skills
Journey fit
How it compares
Membrane-backed Drive integration skill—not the raw Google Drive MCP server or a pure UX copy helper.
Common Questions / FAQ
Who is google-drive for?
Developers using Claude Code, Cursor, or Codex who want Google Drive operations via Membrane instead of custom OAuth code.
When should I use google-drive?
During build integrations when the user wants to interact with Google Drive data—uploads, folder structure, permissions, or shared links.
Is google-drive safe to install?
It requires network access, npm global CLI install, and Membrane login—review the Security Audits panel on this Prism page and your org’s third-party auth policy before use.
SKILL.md
READMESKILL.md - Google Drive
# Google Drive Google Drive is a cloud-based file storage and synchronization service. It's used by individuals and teams to store, access, and share files online from any device. Think of it as a virtual hard drive in the cloud. Official docs: https://developers.google.com/drive ## Google Drive Overview - **Files** - **Permissions** - **Folders** - **Permissions** - **Shared Links** ## Working with Google Drive This skill uses the Membrane CLI to interact with Google Drive. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing. ### Install the CLI Install the Membrane CLI so you can run `membrane` from the terminal: ```bash npm install -g @membranehq/cli@latest ``` ### Authentication ```bash membrane login --tenant --clientName=<agentType> ``` This will either open a browser for authentication or print an authorization URL to the console, depending on whether interactive mode is available. **Headless environments:** The command will print an authorization URL. Ask the user to open it in a browser. When they see a code after completing login, finish with: ```bash membrane login complete <code> ``` Add `--json` to any command for machine-readable JSON output. **Agent Types** : claude, openclaw, codex, warp, windsurf, etc. Those will be used to adjust tooling to be used best with your harness ### Connecting to Google Drive Use `membrane connection ensure` to find or create a connection by app URL or domain: ```bash membrane connection ensure "https://drive.google.com/drive" --json ``` The user completes authentication in the browser. The output contains the new connection id. This is the fastest way to get a connection. The URL is normalized to a domain and matched against known apps. If no app is found, one is created and a connector is built automatically. If the returned connection has `state: "READY"`, skip to **Step 2**. #### 1b. Wait for the connection to be ready If the connection is in `BUILDING` state, poll until it's ready: ```bash npx @membranehq/cli connection get <id> --wait --json ``` The `--wait` flag long-polls (up to `--timeout` seconds, default 30) until the state changes. Keep polling until `state` is no longer `BUILDING`. The resulting state tells you what to do next: - **`READY`** — connection is fully set up. Skip to **Step 2**. - **`CLIENT_ACTION_REQUIRED`** — the user or agent needs to do something. The `clientAction` object describes the required action: - `clientAction.type` — the kind of action needed: - `"connect"` — user needs to authenticate (OAuth, API key, etc.). This covers initial authentication and re-authentication for disconnected connections. - `"provide-input"` — more information is needed (e.g. which app to connect to). - `clientAction.description` — human-readable explanation of what's needed. - `clientAction.uiUrl` (optional) — URL to a pre-built UI where the user can complete the action. Show this to the user when present. - `clientAction.agentInstructions` (optional) — instructions for the AI agent on how to proceed programmatically. After the user completes the action (e.g. authenticates in the browser), poll again with `membrane connection get <id> --json` to check if the state moved to `READY`. - **`CONFIGURATION_ERROR`** or **`SETUP_FAILED`** — something went wrong. Check the `error` field for details. ### Searching for actions Search using a natural language description of what you want to d