gdrive-bulk-downloadlisted
Install: claude install-skill MattModeCode/claude-skills
# gdrive-bulk-download
Bulk-download Google Docs, Google Slides decks, and existing PDF/DOCX/PPTX
files stored in Google Drive, using gstack's headless browser (`$B`) so it
works with restricted/managed accounts that can't install Claude's
Drive connector or browser extensions.
## Inputs
- A list of URLs, either pasted directly in the prompt (one per line, in
any order, surrounding text ignored) or referenced as a file path
(one URL per line; blank lines and `#`-comments ignored).
- Optional output directory argument. Defaults to `~/Downloads`.
## Procedure
### 1. Collect URLs
Parse every `https://docs.google.com/...` or `https://drive.google.com/...`
URL out of the prompt text, or read them from the referenced file (one per
line, skip blank lines and lines starting with `#`).
### 2. Verify authentication
```bash
B=~/.claude/skills/gstack/browse/dist/browse
$B goto https://drive.google.com
$B text
```
Check the page text/title for signs of a logged-in session (account name,
"My Drive", etc.) rather than a Google sign-in form. If not authenticated:
- Run `$B connect` then `$B goto https://drive.google.com` and
`$B handoff "log into the restricted Google account"` so the user can
complete login/MFA manually, then `$B resume`.
- `/setup-browser-cookies` is generally **unreliable** for restricted/managed
accounts — observed failure mode: Google auth cookies (`SID`, `HSID`,
`SAPISID`, etc.) get scoped to a country-TLD domain (e.g. `.google.ca`)
that doesn't