写作32k · #9244
recipe-share-folder-with-team
它能做什么
这个工具可以把整个 Google 云端硬盘文件夹分享给其他人。你可以选择对方只能查看,还是也能编辑其中的内容。
适用场景
- ✓需要把一个项目发给同事时。
- ✓希望一组人都能看到重要文档时。
- ✓让新成员能够访问团队的文件时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-share-folder-with-team/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-share-folder-with-team/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill recipe-share-folder-with-team
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-share-folder-with-team/SKILL.md -o SKILL.md
可以这样问 AI
“把“Monthly Reports”文件夹分享给 John(编辑者)和 Mary(查看者)。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先在你的 Google 云端硬盘中找到你提到的文件夹。然后,它会把你列出的人添加进来,并设置他们是只能查看,还是也能修改文件夹里的文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Share a Google Drive Folder with a Team
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
Share a Google Drive folder and all its contents with a list of collaborators.
Steps
- Find the folder:
gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}' - Share as editor:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}' - Share as viewer:
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}' - Verify permissions:
gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table
常见问题
我需要安装 Google 云端硬盘吗?
不需要。你只需要一个 Google 账号,并允许 AI 访问你的云端硬盘即可。
我可以分享给任何人吗?
可以,只要你知道对方的邮箱地址。
如果找不到这个文件夹怎么办?
AI 会告诉你没有找到该文件夹,你可以用正确的名称再试一次。
详情
作者的原始描述
Share a Google Drive folder and all its contents with a list of collaborators.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9244
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …