Cli recipe-create-doc-from-template
Copy a Google Docs template, fill in content, and share with collaborators.
install
source · Clone the upstream repo
git clone https://github.com/googleworkspace/cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/googleworkspace/cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/recipe-create-doc-from-template" ~/.claude/skills/googleworkspace-cli-recipe-create-doc-from-template && rm -rf "$T"
manifest:
skills/recipe-create-doc-from-template/SKILL.mdsource content
Create a Google Doc from a Template
PREREQUISITE: Load the following skills to execute this recipe:
,gws-drivegws-docs
Copy a Google Docs template, fill in content, and share with collaborators.
Steps
- Copy the template:
gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}' - Get the new doc ID from the response
- Add content: `gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch
Objective
Launch the new feature by end of Q2.'
4. Share with team:gws drive permissions create --params '{"fileId": "NEW_DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "team@company.com"}'`