Skip to content
Skillpedia
Web scraping32k · #6304

recipe-backup-sheet-as-csv

Lets your agent export a Google Sheets spreadsheet as a CSV file. This is useful for backups or using the data in other programs.

What it does

This tool saves a Google Sheet as a plain text file (CSV). This is useful for keeping a backup of your data or for using it in other programs.

When to use it

  • ✓When you want to have a copy of your data outside of Google Sheets.
  • ✓When you need to import your data into another program that reads CSV files.
  • ✓To securely archive important information.

Example of what to ask your AI

“Save my 'To-Do List' spreadsheet as a CSV file.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/recipe-backup-sheet-as-csv/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/recipe-backup-sheet-as-csv/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool first gets the information from your spreadsheet. Then, it transforms it into a CSV file, which is a text format easily readable by computers, and saves it.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill recipe-backup-sheet-as-csv

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-backup-sheet-as-csv/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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
FAQ

Do I need to have any other tools installed?

Yes, you need to have the 'gws-sheets' and 'gws-drive' tools available for this tool to work.

What is a CSV file?

CSV stands for 'Comma Separated Values'. It's a type of text file where each line is a record and the values within each line are separated by commas. It's a very common format for data exchange.

How does the tool know which spreadsheet to save?

You need to provide the ID of the spreadsheet you want to save when you make the request.

Details

Original description by the author

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

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6304
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills