Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

recipe-create-doc-from-template — Claude Code skill setup

Copies a Google Docs template, appends text content, and shares the result with collaborators via CLI. Useful for recurring briefs and reports.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill recipe-create-doc-from-template -a claude-code
Open on GitHub

What recipe-create-doc-from-template does

This skill handles document creation from existing Google Docs templates. It duplicates the source document in Google Drive by file ID, renames it, writes markdown or plain text into the new file, and updates access permissions for team members.

The workflow runs entirely through the gws command-line tool. It relies on four specific steps: copying the file, capturing the new document ID, calling gws docs +write, and applying user permissions with gws drive permissions create. To run this recipe, you must have the gws binary installed and load both gws-drive and gws-docs skills.

Install this if you repeatedly spin up project briefs or reports from a standard layout. If your documents do not rely on templates, the standalone gws-docs skill is sufficient.

What it helps with

  • duplicate a Google Docs template under a new name
  • append formatted text to a newly created Google Doc
  • grant edit permissions on a Google Drive file by email

Example prompts for the agent

  • Create a new project brief from template TEMPLATE_DOC_ID and share it with [email protected]
  • Copy my doc template TEMPLATE_DOC_ID, insert the Q2 Launch outline, and give writer access to [email protected]

How to install recipe-create-doc-from-template

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill recipe-create-doc-from-template -a claude-code

2Manually: put the files in place

~/.claude/skills/recipe-create-doc-from-template/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recipe-create-doc-from-template/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

Questions about recipe-create-doc-from-template

How to install recipe-create-doc-from-template in Claude Code?

Run npx skills add googleworkspace/cli --skill recipe-create-doc-from-template -a claude-code in your terminal.

What does recipe-create-doc-from-template do?

It automates copying a Google Docs template, filling it with text, and sharing it with team members through Google Workspace CLI commands.

What prerequisites does this recipe require?

You need the gws CLI tool installed, along with the gws-drive and gws-docs skills loaded in your agent environment.

Source text

SKILL.md · Apache-2.0
---
name: recipe-create-doc-from-template
description: "Copy a Google Docs template, fill in content, and share with collaborators."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-drive
        - gws-docs
---

# Create a Google Doc from a Template

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`, `gws-docs`

Copy a Google Docs template, fill in content, and share with collaborators.

## Steps

1. Copy the template: `gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}'`
2. Get the new doc ID from the response
3. 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": "[email protected]"}'`

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor