diff --git a/skills/gog/SKILL.md b/skills/gog/SKILL.md index e901b7a30c9..8766c08a7e8 100644 --- a/skills/gog/SKILL.md +++ b/skills/gog/SKILL.md @@ -16,7 +16,13 @@ Setup (once) Common commands - Gmail search: `gog gmail search 'newer_than:7d' --max 10` -- Gmail send: `gog gmail send --to a@b.com --subject "Hi" --body "Hello"` +- Gmail send (plain): `gog gmail send --to a@b.com --subject "Hi" --body "Hello"` +- Gmail send (multi-line): `gog gmail send --to a@b.com --subject "Hi" --body-file ./message.txt` +- Gmail send (stdin): `gog gmail send --to a@b.com --subject "Hi" --body-file -` +- Gmail send (HTML): `gog gmail send --to a@b.com --subject "Hi" --body-html "

Hello

"` +- Gmail draft: `gog gmail drafts create --to a@b.com --subject "Hi" --body-file ./message.txt` +- Gmail send draft: `gog gmail drafts send ` +- Gmail reply: `gog gmail send --to a@b.com --subject "Re: Hi" --body "Reply" --reply-to-message-id ` - Calendar list events: `gog calendar events --from --to ` - Calendar create event: `gog calendar create --summary "Title" --from --to ` - Calendar create with color: `gog calendar create --summary "Title" --from --to --event-color 7` @@ -48,6 +54,33 @@ Calendar Colors - 10: #51b749 - 11: #dc2127 +Email Formatting +- Prefer plain text. Use `--body-file` for multi-paragraph messages (or `--body-file -` for stdin). +- `--body` does not unescape `\n`. If you need inline newlines, use a heredoc or `$'Line 1\n\nLine 2'`. +- Use `--body-html` only when you need rich formatting. +- HTML tags: `

` for paragraphs, `
` for line breaks, `` for bold, `` for italic, `` for links, `