recipe-share-doc-and-notify
它能做什么
这个工具可以把 Google 文档分享给其他人,并授予他们编辑权限,同时还会通过邮件把文档链接发给他们。
适用场景
- ✓想和朋友一起编辑一份菜谱时。
- ✓和同事协作处理工作文档时。
- ✓分享一份文字草稿,请大家提出修改意见时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-share-doc-and-notify/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把“BBQ Ideas”文档分享给我的朋友 John,并给他发一封带链接的邮件。”
每周 5 个新技能,1 分钟读完。
工作原理
首先,这个工具会找到你指定的文档。然后,它把编辑权限授予你指定的人。最后,它发送一封包含链接的邮件,让大家都能打开文档。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Share a Google Doc and Notify Collaborators
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive,gws-docs,gws-gmail
Share a Google Docs document with edit access and email collaborators the link.
Steps
- Find the doc:
gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}' - Share with editor access:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}' - Email the link:
gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'
常见问题
我需要安装 Google 文档吗?
不需要。你只需要一个 Google 账号,并且文档要保存在你的 Google 云端硬盘中。
我可以只给对方查看权限吗?
这个工具授予的是编辑权限。如果只想让对方查看,需要使用另外的命令。
如果对方没有 Google 邮箱会怎样?
工具会把邮件发到你提供的地址。只要地址有效,无论对方用哪家邮箱服务,都能收到链接。
详情
作者的原始描述
Share a Google Docs document with edit access and email collaborators the link.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9242
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …