Logo vun Email Drafting

Email Drafting

Communautéit
mgonto
email-drafting

Draft email replies for Gonto's Gmail accounts (m@gon.to, gonto@hypergrowthpartners.com). Handles intro acceptances, scheduling intent, thanks/ack, and positive short replies. Use when user asks to draft or reply to an email, or when Gmail webhook triggers arrive for auto-draft classification. Draft-only mode — never sends automatically.

Iwwersiicht

Editeurmgonto
Repositoryexecutive-assistant-skills
Skill-Nummemail-drafting
Stären
121
Forks
14
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum mgonto op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Email Drafting an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/mgonto/executive-assistant-skills/tree/main/email-drafting
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mgonto/executive-assistant-skills.git /tmp/executive-assistant-skills
mkdir -p .claude/skills
cp -r /tmp/executive-assistant-skills/email-drafting .claude/skills/email-drafting
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Email Drafting an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Email Drafting automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Email Drafting net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Email Drafting Skill

Config — read before starting

Read ../config/user.json (resolves to ~/executive-assistant-skills/config/user.json). Extract and use throughout:

  • primary_email, work_email — Gmail accounts
  • scheduling_cc — scheduling assistant email (CC on all scheduling emails, mention in body)
  • scheduling_silent_cc — silent CC for scheduling visibility (do NOT mention in email body)
  • signature — sign-off for all drafts (e.g. "--gonto")
  • name — short name for context

Do not proceed until you have these values.

Debug Logging (MANDATORY)

Read ../config/DEBUG_LOGGING.md for the full convention. Use python3 {user.workspace}/scripts/skill_log.py email-drafting <level> "<message>" ['<details>'] at every key step. Log BEFORE and AFTER every external call (gog gmail, mcporter, todoist-cli). On any error, log the full command and stderr before continuing.

Overview

Auto-draft and manually-requested email drafts for {user.primary_email} and {user.work_email}.

When to Use

  • Gmail hook detects a trigger (intro, scheduling, thanks/ack, positive reply)
  • User asks to draft/reply/send an email
  • Action items cron identifies email follow-ups needed

Architecture

  • Detects triggers and creates Gmail drafts
  • Handles all scheduling (slot-finding, conflict checking, calendar ops)
  • NEVER proposes specific dates/times or creates calendar events

Execution

  • "Reply" always means Reply All — include all original To + CC recipients. Only exclude if user explicitly says to reply to one person. Exception: intro handling moves the introducer to BCC per the intro sequence below.
  • After sending any email/draft, check if it fulfills an open Todoist task (send deck, intro, follow-up, etc.). If yes → complete the task immediately and confirm.
  • Hook/cron triggers: Always run via isolated sub-agent (prevents memory/context contamination)
  • Direct user requests ("draft a reply to X"): Main agent may execute directly, but must still follow all style rules and must NOT read MEMORY.md or daily memory files

Rules (non-negotiable)

Core

  1. Draft-only mode — never send automatically
  2. Mirror inbound language — match the language of the most recent non-automated message in the thread. If the thread has mixed languages, default to the language of the message you're replying to.
  3. Always sign — end every draft with {user.signature}
  4. Low confidence — don't draft; ask user for guidance
  5. No dash punctuation — no em-dash/en-dash in bodies. Use commas/periods.
  6. Humanize — before finalizing any draft, review it against ~/executive-assistant-skills/humanizer/SKILL.md. Remove AI-writing markers: inflated symbolism, promotional tone, em-dash overuse, "delve"/"leverage"/"foster" vocabulary, rule-of-three patterns. Email-specific rules (no dashes, signature, brevity) take precedence over humanizer suggestions if they conflict.

Intro Handling (required sequence)

  1. Thank introducer first
  2. Move introducer to BCC
  3. Reply to introduced contact directly
  4. CC {user.scheduling_cc} and {user.scheduling_silent_cc} for scheduling
  5. Include one line like: "Connecting {user.scheduling_cc_name} to find a time."
  6. Do NOT mention {user.scheduling_silent_cc} in the email body — silent CC only

Scheduling Drafts

  • ALWAYS CC {user.scheduling_cc} AND {user.scheduling_silent_cc}
  • NEVER propose specific dates or times
  • Just confirm willingness to meet + mention scheduling assistant will coordinate
  • Example: "Connecting Alfred to find a time that works"
  • Do NOT mention {user.scheduling_silent_cc} in the email body — she's CC'd silently for visibility

Allowed Auto-Draft Classes

  • Thanks/ack
  • Scheduling intent
  • Positive short replies
  • Intro acceptance

Notification Format

  • account + one-line intent + draft link
  • Example: 📧 Draft ({user.primary_email} → John): intro acceptance. https://mail.google.com/...

Draft Links

After creating a draft via gog, extract the draft ID from the response. Gmail draft URL format: https://mail.google.com/mail/u/?authuser={account_email}#drafts?compose={message_id} Use authuser=m@gon.to or authuser=gonto@hypergrowthpartners.com as appropriate.

Trigger Detection

A) Intro

  • Cues: intro, introduction, meet, connecting you, looping in, cc'ing
  • At least 2 external participants + clear handoff language
  • Apply intro sequence exactly

B) Scheduling Intent

  • Cues: find a time, schedule, availability, next week, calendar
  • Spanish cues: agendar, agenda una, tenés unos minutos
  • CC scheduling contacts, don't propose times

C) Thanks/Ack

  • Cues: thanks, got it, appreciate it, status updates
  • Short acknowledgment + optional one-line next step

D) Positive Short Reply

  • Cues: works for me, sounds good, perfect, great
  • Short affirmative + close

Skip Conditions (do NOT auto-draft)

  • Confidence low / intent ambiguous
  • User already replied in the thread (SENT message exists)
  • Legal, financial, security, hiring-final, sensitive conflict topics
  • Multi-question strategic asks
  • Automated/system/calendar notifications
  • Messages requiring attachments, deep verification, or policy commitments
  • Language unclear or unmirrorable
  • Scheduling confirmations — NEVER auto-draft emails that simply confirm a scheduled time or acknowledge a calendar invite. The scheduling assistant (Alfred/Howie) handles all scheduling coordination. Auto-drafting "confirming our call at X" creates noise and duplicates the scheduler's work. This includes: confirming times proposed by the scheduler, acknowledging calendar invites, and "looking forward to our call" type replies to scheduling threads.

Confidence Gate

Only auto-draft when ALL are true:

  • Trigger class is one of the 4 allowed
  • Language confidently detected and mirrorable
  • Clear recipient intent and next step
  • No skip condition present

Otherwise: ask user.

Drafting Principles

  • Keep it SHORT — drafts are always brief. 2-3 short paragraphs max.
  • No over-explaining — state the point, don't elaborate unless necessary
  • When promising intros: before drafting the intro, search sent emails for previous intros to that person/company, copy the format and tone, and use the same email address
  • When recommending a person/company: use your own words from past emails about them rather than inventing new descriptions
  • Deck/one-pager: say "Hypergrowth Partners deck" (not "our one-pager" or "our deck"). When attaching, frame WHY it's useful (e.g. "where we explain what Hypergrowth is and how we help companies")
  • Future availability: frame as an opportunity, not a brush-off. Position it warmly: "I'd love to reconnect then to explore working together if the timing still makes sense" rather than blunt "let's connect closer to June"
  • Offers of help should use meeting context: read Granola notes from the call and reference specific things discussed. The draft should feel like it came from someone who was in the meeting.
  • No generic "Great meeting today" unless it's explicitly a first meeting (first VC call or first dealflow call).
  • Proposal-first rule: if the commitment is to build/provide a proposal first, do not draft outbound email yet; create TODO only.

Use Grain as primary source for meeting-based drafts

When drafting follow-up emails from meetings, Grain transcript is the primary source (not Granola):

  1. Find the meeting in Grain: mcporter call grain.list_attended_meetings --args '{"limit": 5}'
  2. Fetch transcript: mcporter call grain.fetch_meeting_transcript --args '{"meeting_id": "<id>"}'
  3. Search transcript for email commitments: "I'll send", "I'll email", "I'll share", "let me intro", "I'll follow up", "I'll connect you", etc.
  4. Draft from the transcript — use your actual words and the real conversation context, not Granola's summary.
  5. Fall back to Granola only if Grain has no recording for that meeting.

Style

Read {user.workspace}/style/EMAIL_STYLE.md for the full writing style guide (derived from 200+ real sent emails). Read {user.workspace}/style/FEEDBACK_LOG.md for user corrections — latest overrides win.

Key points:

  • Friendly, concise, action-oriented. Warm but not fluffy.
  • 1–4 short paragraphs, ~6–7 word sentences
  • Context-first openings, straight to point
  • Common opens: "Hey ,", "Thanks…", "Perfect…", "Great…"
  • Sign off: {user.signature}
  • No dash punctuation (no em-dash/en-dash)
  • Do: be brief, clear, warm, decisive, include draft link in notification
  • Don't: over-explain, corporate fluff, long formal prose

Templates

  • Primary: {user.workspace}/style/EMAIL_TEMPLATES.md — pattern templates (intros, follow-ups, VC, etc.)
  • Legacy (HGP v1): {user.workspace}/style/email-templates.md — HGP business templates. Use only for HGP-specific business contexts. Primary templates take precedence on conflicts.

Audit Logging (MANDATORY)

After every external action, log it:

  • Draft created: python3 {user.workspace}/scripts/audit_log.py log email_drafted "<recipient>" success '{"account": "<account>", "subject": "<subject>", "type": "<trigger_class>"}'
  • Email sent: python3 {user.workspace}/scripts/audit_log.py log email_sent "<recipient>" success '{"account": "<account>", "subject": "<subject>"}'
  • Draft skipped (low confidence): python3 {user.workspace}/scripts/audit_log.py log email_draft_skipped "<recipient>" skipped '{"reason": "<reason>"}'

Auto-Draft Constraints

  • NEVER create calendar events — only the scheduling assistant handles that
  • Only create email drafts
  • Include --to <sender> explicitly when creating drafts

Auto-Draft WhatsApp Notification (MANDATORY)

Every time a draft is created automatically (via Gmail hook or any automated trigger), you MUST send a WhatsApp notification to {user.whatsapp} with:

✏️ *Auto-draft created*

*To:* <recipient name> (<email>)
*Subject:* <subject>
*Account:* <account>
*Trigger:* <intro/scheduling/thanks/positive reply>

*Draft text:*
> <full draft body — include the complete text so user can review without opening Gmail>

🔗 <Gmail draft link>

Reply "send" to send, or edit in Gmail.

This is non-optional. The user must be able to read and approve the draft from WhatsApp without opening Gmail.

Notification Policy

  • No routine "no change" notifications
  • Alert on: meaningful changes, breakages, time-sensitive items, auto-drafted emails
  • Time-sensitive: approvals, meeting changes, 2FA codes, security, travel changes
  • Evaluate Promotions, suppress Spam/Junk/Trash

Heefeg gestallte Froen

Wat mécht de KI-Skill Email Drafting?

Draft email replies for Gonto's Gmail accounts (m@gon.to, gonto@hypergrowthpartners.com). Handles intro acceptances, scheduling intent, thanks/ack, and positive short replies. Use when user asks to draft or reply to an email, or when Gmail webhook triggers arrive for auto-draft classification. Draft-only mode — never sends automatically.

Firwat Email Drafting op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Email Drafting besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Email Drafting an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mgonto/executive-assistant-skills/tree/main/email-drafting an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Email Drafting benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Email Drafting benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Email Drafting domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Email Drafting gratis?

De Skill gëtt vum mgonto op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇