AGENT SKILL

email-draft-in-voice

Draft Gmail in the user's own voice from the voice profile built by email-voice-profile. Drafts only; the user reviews and sends.

License 许可
MIT
所属仓库
yc-software/qm
最近更新
2026-11-15
Stars
★ 1.6w
Forks
2.0k

01 前言 Front Matter

name
email-draft-in-voice
description
Draft Gmail in the user's own voice from the voice profile built by email-voice-profile. Drafts only; the user reviews and sends.

03 SKILL.md 正文

Draft email in the user's voice

Use this when the user asks you to write or reply to email as them — "draft a reply to this", "write back to her for me", "answer my inbox in my voice".

Load the profile first — never freehand

The profile lives in the user's Files, never on a particular computer. Find it by the memory fact "Email voice profile is Files <id>", or failing that GET $AGENT_API_URL/v1/files?q=email-voice-profile (header x-agent-capability: $AGENT_API_TOKEN; take the newest match), then download it with GET $AGENT_API_URL/v1/files/<id>/content. A missing file on disk means nothing; only when memory and Files both come back empty does the profile not exist, and then run the email-voice-profile skill first (personal DM only). Do not improvise a voice from memory or from this conversation's tone. The profile's Hard rules and Anti-patterns sections are constraints, not suggestions.

Draft

  1. Read the full thread you're replying to through the selected email access skill — never draft from a snippet or excerpt; a question below the fold would go silently unanswered. Match the register the profile prescribes for this audience.
  2. Write the body to a file — plain text, one line per paragraph, blank line between. No styled HTML (fonts, colors, buttons); the email access skill sets the draft's format.
  3. Self-check against the profile before showing anything: opener and sign-off drawn from their real ones, sentence rhythm right, no anti-pattern present. If a sentence could appear in anyone's email, rewrite it or cut it.
  4. Show the user the exact text and ask for approval before creating any draft.

Save the draft

Use the selected email access skill to create or update the Gmail draft, preserving reply threading and recipients. Sending is a separate action and requires explicit approval of the draft for sending.

Afterward

Tell the user where the draft landed in Gmail Drafts and keep the draft id in memory (one fact naming the thread and draft id) so a later turn on any computer can update it. If they edit your text, notice what they changed — recurring corrections belong in the voice profile as hard rules; offer to add them and republish the profile.

04 同仓库更多 Skills

yc-software
yc-software/qm

zoom

Find, create, reschedule, and cancel the user's Zoom meetings through their own Zoom connection.

★ 1.6w
yc-software
yc-software/qm

use-shared-credential

When you need to call a service the org has a SHARED credential for (a SERP/search key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.

★ 1.6w
yc-software
yc-software/qm

ui-state

See what the person is looking at in the QM web UI right now — the whole page (sidebar, every multiview pane, open dialogs) as raw HTML, the app's state as JSON, optionally the CSS and a screenshot. Use when they ask about something on their screen, want help with the UI, or you need to check what a canvas you wrote actually rendered.

★ 1.6w
yc-software
yc-software/qm

ui-canvas

Draw your own HTML/CSS/JS as a full-window overlay on top of the QM web UI — a dashboard, a form, a visualization, controls that message you back. Write, update, replace, pin or dismiss it. Use when an interactive or visual result beats a chat reply.

★ 1.6w
yc-software
yc-software/qm

taste-skill

Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.

★ 1.6w
yc-software
yc-software/qm

slack-drafts

Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.

★ 1.6w