/google-workspace:draft-email <thread-id|recipient-email> [topic]from google-workspace
Draft a Gmail email or reply in your voice with full CRM/knowledge-base context loaded and every claim verified. Always creates a draft — never sends.
Ships in google-workspace. Installing the plugin adds it to Claude Code.
Draft a Gmail email — either a reply to an existing thread (<thread-id>) or a new email to someone (<recipient-email> [topic]) — in your voice, with full context loaded and every claim verified.
This skill creates a Gmail DRAFT only. Never sends. The user reviews and approves before any send — never send without explicit approval.
You MUST complete every step in order. Skipping is not allowed.
If your knowledge base has a writing-voice guide, load it and apply it. If there's none, skip this step and draft in a clear, professional default voice — the command must still work with no voice doc.
If you have a voice guide, pay particular attention to:
If your knowledge base is configured (.claude/knowledge-base.local.md), the guide typically lives under {vault_path}/{company_dir}/ — resolve the path from that config.
If a thread-id was passed:
python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py gmail get-thread <thread-id> --compact
Extract the external participant(s) (sender + non-internal Cc). For each one:
vault: {crm_dir}/contacts.csv by email. If found, capture: slug, full name, role, company, stage, last_contact_date, last_contact_channel, last_meeting_date, next_action, priority, notes.vault: {crm_dir}/companies.csv by name. Capture: slug, stage, NTE/billed/remaining (KPI columns), notes.active-customer or customer, also read the CRM's company/account detail file (its per-company Markdown file) for the rich relationship context (current state, open contracts, recent invoices, timeline, open items).If no thread-id (new email), the recipient email is in $ARGUMENTS. Same lookups.
If transcript scanning is configured, search for any past meeting transcripts that include this person. The directories to scan come from the GW_TRANSCRIPT_DIRS environment variable (comma-separated, relative to the company dir). Skip this step if it's unset.
# GW_TRANSCRIPT_DIRS is a comma-separated list of dirs relative to {company_dir}.
for d in ${GW_TRANSCRIPT_DIRS//,/ }; do
grep -lri "<their email>" "{vault_path}/{company_dir}/$d" 2>/dev/null
done | head -5
Read the 2 most recent transcripts. Pull out:
If the recipient is at a paying customer, also read the CRM's company/account detail file for any open contract, SOW, or negotiation log. Don't draft anything that contradicts what's already in flight.
For a reply, read the full thread to know what was actually said most recently:
python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py gmail get-thread <thread-id> --compact
Then read the latest 1-2 messages in full:
python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py gmail get <message-id> --compact
Extract: what they asked, what tone they used, any specific claims/numbers/dates they made that you'll need to respond to or verify.
If the draft will reference something outside the vault — a recipient's recent paper, their company's press release, a market stat, an industry trend — search before claiming it. Order of preference:
mcp__exa-search or /exa-cli skill — best for finding people's recent work, papers, blog posts, LinkedIn profiles./tavily-cli skill — best for press releases, company news, recent web events./perplexity-cli skill — best for synthesized answers about industry topics./valyu-cli skill — best for finance, private-equity, scientific source-grounded answers.If a claim cannot be verified by external research, do not include it. Replace with something verifiable or omit.
Make a list of every factual assertion in the draft you're about to write. For each, verify against the right source:
| Claim type | Verification source |
|---|---|
| Date/meeting reference | gw calendar list (run forward + back enough days to cover the date) |
| Dollar amount / contract value / billed amount | The CRM's company/account detail file; Stripe CLI (or your billing tool) for invoices |
| URL — internal/company page | Verify it exists by curl -sI or WebFetch. Zero tolerance for unverified links. |
| URL — external | Same — curl -sI or WebFetch. Must return 200 (or appropriate redirect). |
| Their recent paper/work | Exa search result with source URL |
| Industry stat / market data | Tavily/Perplexity search with citation |
| Compliance status (SOC 2, ISO 27001, etc.) | Your compliance policies in the knowledge base. Be precise — "observation window closes [date]" not "we are certified" |
| CRM contact details (role, company, last touch) | contacts.csv directly |
| Past meeting content | The transcript file itself, not memory |
If you list a verification source for a claim, actually run the check. Don't trust memory.
Compose the body in your voice. Apply the channel-specific overlay from your voice guide, if you have one:
No manual signature. Do NOT append a name / title / company / contact signature block. This Gmail account auto-appends the user's configured signature, so a manual one duplicates it. End the body at the closing line (e.g. Best regards,) at most — never type out the name/title/company/URL yourself.
Self-check before submitting (silently, every time):
Use gmail draft for new emails or gmail draft_reply for replies:
# New email
python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py gmail draft \
--to "<recipient>" \
--subject "<subject>" \
--body "<body>" \
[--cc "<cc>"] \
--compact
# Reply
python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py gmail draft-reply \
<message-id-of-the-message-you're-replying-to> \
--body "<body>" \
--compact
The CLI returns a draft id. Do NOT call gmail send or gmail send-draft. Approval has to come from the user explicitly.
Print, in this format:
DRAFT CREATED
Recipient: <name> <email>
Subject: <subject>
Channel: <prospecting | inbound-consulting | reply | professional-contact | …>
Tone overlay applied: <which voice guide section, if any>
Em-dash count: <n>
Banned-phrase check: clean / 1 hit ([phrase])
URLs in draft (all verified):
- <url> ✓ HTTP 200
- <url> ✓ HTTP 200
Claims verified:
- "<claim>" ← <source>
- "<claim>" ← <source>
External research used (if any):
- Exa query: "<query>" → <result>
CRM context loaded:
- Contact: <slug> (<stage>) — last_contact_date <date>
- Company: <slug> (<stage>)
- Customer file: <yes/no>
- Past transcripts read: <2 paths>
Gmail draft id: <draft-id>
Open in Gmail to review: https://mail.google.com/mail/u/0/#drafts/<draft-id>
──── DRAFT BODY ────
<full body>
──────────────────────
Reply "send" to send via `gw gmail send-draft <draft-id>`, or paste edits.
Reply to an existing thread:
/draft-email 19d88e7b7f93caee
New email to a prospect:
/draft-email [email protected] partnership conversation
Follow-up to an accountant about a tax credit:
/draft-email [email protected] R&D credit Q3 status
gmail.send/gmail.reply without going through these steps — those calls bypass voice loading and verification.gw gmail send-draft <draft-id> (with GW_CRM_TRACK=on, this bumps last_contact_date for known recipients with channel=email-out).gw gmail update-draft <draft-id> ... and re-show.Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub elnora-ai/elnora-google-workspace --plugin google-workspace4 commands in this plugin
/gw-inboxQuick inbox scan — shows recent emails/gw-setupFirst-run setup for the Google Workspace plugin — creates the venv, walks you through a Google Cloud OAuth client, and authenticates. Gets you from install to first result./prep-meetingPre-meeting brief — looks up attendees in CRM, reads recent transcripts, and Slack-DMs you 3-5 main points before a meeting. Not a full page — just what you need to walk in informed.