返回全部 Skills

recipe-create-doc-from-template

其他 官方认证

复制一个 Google Docs 模板,填写内容,并与协作者分享。

12.4k

下载量

AI SkillHub 能力展示图

安装方式

命令行安装

在项目根目录执行以下命令,完成 Skill 安装。

npx bzskills add googleworkspace/cli --skill recipe-create-doc-from-template

skill.md

name: recipe-create-doc-from-template
description: 复制一个 Google Docs 模板,填写内容,并与协作者分享。
metadata:
    version: 0.22.5
    openclaw:
        category: "recipe"
        domain: "productivity"
        requires:
            bins:
                - gws
            skills:
                - gws-drive
                - gws-docs

从模板创建 Google 文档

先决条件: 加载以下技能以执行此操作:gws-drive, gws-docs

复制 Google Docs 模板,填充内容,并与协作者共享。

步骤

  1. 复制模板:gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}'
  2. 从响应中获取新文档 ID
  3. 添加内容:`gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch

Objective

Launch the new feature by end of Q2.'`

  1. 与团队共享:gws drive permissions create --params '{"fileId": "NEW_DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "team@company.com"}'