Methodologygeneric
recipe-bulk-download-folder
List and download all files from a Google Drive folder.
googleworkspace/cli
Install
Use with your agent
Install the recipe-bulk-download-folder skill, then use it as build context. Run: npx skills add https://github.com/googleworkspace/cli --skill recipe-bulk-download-folder. Then read the installed skill.md and follow its guidance to build or refactor my project.
Bulk Download Drive Folder
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
List and download all files from a Google Drive folder.
Steps
- List files in folder:
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json - Download each file:
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext - Export Google Docs as PDF:
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf