# Recipe Create Doc From Template > Copy a Google Docs template, fill in content, and share with collaborators. Source: https://skillsagentes.com/skills/googleworkspace/cli/recipe-create-doc-from-template Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 19 tok installed, 256 tok once triggered, 256 tok with every bundled file Bundle: 1 file, 1 KB Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill recipe-create-doc-from-template --agent claude-code ``` ## What it does - Copia una plantilla de Google Docs con `gws drive files copy` - Añade contenido al nuevo documento con `gws docs +write --document-id` - Comparte el documento con colaboradores usando `gws drive permissions create` ## Use it when - Necesitas crear un documento nuevo a partir de una plantilla de Google Docs y compartirlo con el equipo ## What triggers it - "Crea un doc a partir de la plantilla de brief de proyecto y compártelo con team@company.com" - "Copia la plantilla TEMPLATE_DOC_ID, añade el contenido del Q2 y dale acceso de escritura a mi equipo" ## Before you install - Requiere el binario `gws` y las skills `gws-drive` y `gws-docs` cargadas. ## Files - SKILL.md — 1 KB ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # 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": "team@company.com"}'` --- Skills Agentes — https://skillsagentes.com/skills/googleworkspace/cli/recipe-create-doc-from-template