Skill Press

No. 758 · recipe-generate-report-from-sheet

Generate a Google Docs Report from Sheet Data

A field guide from Google Workspace CLI

Google Workspace CLI

When to use it

Read data from a Google Sheet and create a formatted Google Docs report.

Rank
No. 758 of 971
Installs
Not listed yet
Runs in
Gemini
Length
118 words · 1 min
Files
2
License
Apache-2.0

Get this skill

Download the skill folder (.zip, 5 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "recipe-generate-report-from-sheet" Agent Skill by Google Workspace CLI, from https://github.com/googleworkspace/cli.

1. Fetch the whole folder skills/recipe-generate-report-from-sheet — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/googleworkspace/cli.git cd3697e07eb520056dcf142d0c7439bbb9ba32e9
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "recipe-generate-report-from-sheet":
   - Claude Code: ~/.claude/skills/recipe-generate-report-from-sheet/ (all projects) or .claude/skills/recipe-generate-report-from-sheet/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that recipe-generate-report-from-sheet/SKILL.md exists and its frontmatter says name: recipe-generate-report-from-sheet.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

Note: Many Workspace recipes use the shared gws-shared skill and a service-specific skill. Install the Workspace collection to keep those prerequisites together.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/googleworkspace/cli/tree/cd3697e07eb520056dcf142d0c7439bbb9ba32e9/skills/recipe-generate-report-from-sheet --skill recipe-generate-report-from-sheet

The skill, in full

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

Read data from a Google Sheet and create a formatted Google Docs report.

Steps

  1. Read the data: gws sheets +read --spreadsheet SHEET_ID --range "Sales!A1:D"
  2. Create the report doc: gws docs documents create --json '{"title": "Sales Report - January 2025"}'
  3. Write the report: `gws docs +write --document-id DOC_ID --text '## Sales Report - January 2025

Summary

Total deals: 45 Revenue: $125,000

Top Deals

  1. Acme Corp - $25,000
  2. Widget Inc - $18,000’`
  3. Share with stakeholders: gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "cfo@company.com"}'

More in Data & Analytics

All Data & Analytics skills →

More from Google Workspace CLI

From googleworkspace/cli at cd3697e, Apache-2.0. Install counts from skills.sh.