Add email-drafter skill: personalized email drafting with tone analysis via WorkIQ#1182
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new email-drafter skill to the skills catalog, providing guided instructions for drafting professional emails with optional WorkIQ-based tone/style analysis, and registers it in the skills index.
Changes:
- Introduces
skills/email-drafter/SKILL.mdwith a multi-step workflow (context gathering, tone analysis via WorkIQ, drafting rules, and output guidance). - Adds the new skill entry to
docs/README.skills.mdso it’s discoverable in the repository’s skills list.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| skills/email-drafter/SKILL.md | New skill documentation describing how to draft emails using WorkIQ for tone/style inference, with fallback defaults. |
| docs/README.skills.md | Adds the email-drafter row to the skills index table. |
skills/email-drafter/SKILL.md
Outdated
| @@ -0,0 +1,100 @@ | |||
| --- | |||
| name: email-drafter | |||
| description: "Draft and review professional emails that match your personal writing style. Analyzes your sent emails for tone, greeting, structure, and sign-off patterns via WorkIQ, then generates context-aware drafts for any recipient. USE FOR: draft email, write email, compose email, reply email, follow-up email, analyze email tone, email style." | |||
There was a problem hiding this comment.
In skill front matter, description is wrapped in double quotes. The skill template/checklist in this repo uses single quotes for description (and it avoids needing to escape quotes inside the text). Consider switching to single quotes to match the established SKILL.md front matter format.
| description: "Draft and review professional emails that match your personal writing style. Analyzes your sent emails for tone, greeting, structure, and sign-off patterns via WorkIQ, then generates context-aware drafts for any recipient. USE FOR: draft email, write email, compose email, reply email, follow-up email, analyze email tone, email style." | |
| description: 'Draft and review professional emails that match your personal writing style. Analyzes your sent emails for tone, greeting, structure, and sign-off patterns via WorkIQ, then generates context-aware drafts for any recipient. USE FOR: draft email, write email, compose email, reply email, follow-up email, analyze email tone, email style.' |
| 1. Pull 3–5 recent sent emails from the user to the same recipient or similar recipients | ||
| 2. Identify patterns: | ||
| - **Greeting style** — formal ("Dear"), standard ("Hello"), casual ("Hi"), or direct (no greeting) | ||
| - **Structure** — short paragraphs vs. bullet lists vs. numbered steps | ||
| - **Sign-off** — what closing and name format the user typically uses | ||
| - **Formality level** — professional, friendly-professional, casual | ||
| - **Language** — which language the user writes in with this recipient | ||
| 3. Apply those patterns to the draft |
There was a problem hiding this comment.
Step 2 instructs pulling recent sent emails via WorkIQ, but it doesn’t explicitly constrain what content can be copied into the chat/output. To reduce the risk of leaking sensitive info, consider adding an explicit rule to only extract tone/style signals (no verbatim email bodies by default), redact identifiers where possible, and never persist raw WorkIQ email content into the saved draft unless the user requests quoting.
| 1. Pull 3–5 recent sent emails from the user to the same recipient or similar recipients | |
| 2. Identify patterns: | |
| - **Greeting style** — formal ("Dear"), standard ("Hello"), casual ("Hi"), or direct (no greeting) | |
| - **Structure** — short paragraphs vs. bullet lists vs. numbered steps | |
| - **Sign-off** — what closing and name format the user typically uses | |
| - **Formality level** — professional, friendly-professional, casual | |
| - **Language** — which language the user writes in with this recipient | |
| 3. Apply those patterns to the draft | |
| 1. Pull 3–5 recent sent emails from the user to the same recipient or similar recipients **for analysis only** (do not surface full message bodies by default). | |
| 2. Identify patterns: | |
| - **Greeting style** — formal ("Dear"), standard ("Hello"), casual ("Hi"), or direct (no greeting) | |
| - **Structure** — short paragraphs vs. bullet lists vs. numbered steps | |
| - **Sign-off** — what closing and name format the user typically uses | |
| - **Formality level** — professional, friendly-professional, casual | |
| - **Language** — which language the user writes in with this recipient | |
| 3. Apply those patterns to the draft. | |
| 4. **Privacy & data handling:** | |
| - Use WorkIQ emails only to extract tone and style signals. Do **not** copy prior emails verbatim into the chat or draft by default. | |
| - If you must reference prior content, summarize it and redact direct identifiers where possible (names, email addresses, ticket/contract numbers, internal URLs). | |
| - Never persist raw WorkIQ email content into the saved draft unless the user explicitly requests quoting or inclusion of specific prior text. |
| 3. Save the final draft to `outputs/<year>/<month>/` with a descriptive filename (e.g., `2026-03-26-email-acme-followup.md`) | ||
|
|
||
| ## Important Rules | ||
|
|
||
| - **Never send emails** — only draft them as files for the user to review and send manually | ||
| - Always check WorkIQ for prior context with the recipient when available | ||
| - If the user says "draft email" or "write email", activate this skill automatically | ||
| - Save drafts using the `outputs/<year>/<month>/` folder convention |
There was a problem hiding this comment.
The instructions call outputs/<year>/<month>/ a “folder convention”, but this appears to be the only skill referencing that path in the repo. If this is meant to be a new convention, it should be documented centrally; otherwise consider rewording to a default location (or aligning with an existing, documented output directory pattern).
| 3. Save the final draft to `outputs/<year>/<month>/` with a descriptive filename (e.g., `2026-03-26-email-acme-followup.md`) | |
| ## Important Rules | |
| - **Never send emails** — only draft them as files for the user to review and send manually | |
| - Always check WorkIQ for prior context with the recipient when available | |
| - If the user says "draft email" or "write email", activate this skill automatically | |
| - Save drafts using the `outputs/<year>/<month>/` folder convention | |
| 3. Save the final draft as a markdown file in the workspace (for example, in an `outputs/` folder) with a descriptive filename (e.g., `2026-03-26-email-acme-followup.md`) | |
| ## Important Rules | |
| - **Never send emails** — only draft them as files for the user to review and send manually | |
| - Always check WorkIQ for prior context with the recipient when available | |
| - If the user says "draft email" or "write email", activate this skill automatically | |
| - When saving drafts, follow any existing workspace or project output directory conventions (for example, using an `outputs/` folder if one exists) |
What this adds
An email-drafter skill that drafts professional emails matching the user's personal writing style.
Key features
How it helps
Writing emails that match your personal tone is tedious when you send dozens daily. This skill automates the drafting process while preserving your authentic voice, by learning from your actual email patterns rather than using generic templates.
Requirements
Validation
pm run skill:validate\ ✅ passed
pm run build\ ✅ README updated