OpenParable
Skip to content
← Back to skills

Recipe Backup Sheet As CSV

Documents
recipe-backup-sheet-as-csv

Recipe Backup Sheet As CSV is an Agent Skill for documents published in the googleworkspace/cli repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Export a Google Sheets spreadsheet as a CSV file for local backup or processing.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/googleworkspace/cli/blob/HEAD/skills/recipe-backup-sheet-as-csv/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/recipe-backup-sheet-as-csv, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Export a Google Sheet as CSV

PREREQUISITE: Load the following skills to execute this recipe: gws-sheets, gws-drive

Export a Google Sheets spreadsheet as a CSV file for local backup or processing.

Steps

  1. Get spreadsheet details: gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'
  2. Export as CSV: gws drive files export --params '{"fileId": "SHEET_ID", "mimeType": "text/csv"}'
  3. Or read values directly: gws sheets +read --spreadsheet SHEET_ID --range 'Sheet1' --format csv