AI/ML

recipe-email-drive-link

googleworkspace/cli · updated Apr 8, 2026

$npx skills add https://github.com/googleworkspace/cli --skill recipe-email-drive-link
summary

Share Google Drive files and email access links to recipients in a single workflow.

  • Combines Google Drive file sharing with Gmail delivery in three sequential steps: locate files, grant access permissions, and send notification emails
  • Requires both gws-drive and gws-gmail skills to be loaded before execution
  • Supports role-based sharing (reader, commenter, editor) and targets specific email addresses with custom messages
skill.md

1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Email a Google Drive File Link</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code>, <code>gws-gmail</code></p>\n</blockquote>\n<p>Share a Google Drive file and email the link with a message to recipients.</p>\n<h2>Steps</h2>\n<ol>\n<li>Find the file: <code>gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'</code></li>\n<li>Share the file: <code>gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'</code></li>\n<li>Email the link: <code>gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'</code></li>\n</ol>"}}]