Docsgeneric
recipe-share-doc-and-notify
Share a Google Docs document with edit access and email collaborators the link.
googleworkspace/clidocs.google.com
Install
Use with your agent
Install the recipe-share-doc-and-notify skill, then use it as build context. Run: npx skills add https://github.com/googleworkspace/cli --skill recipe-share-doc-and-notify. Then read the installed skill.md and follow its guidance to build or refactor my project.
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": "[email protected]"}' - Email the link:
gws gmail +send --to [email protected] --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'