원클릭으로
Compose and send OWA-compatible HTML email. Usage: /mail <owa|mac|graph> <delivery|generic> <subject>
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Compose and send OWA-compatible HTML email. Usage: /mail <owa|mac|graph> <delivery|generic> <subject>
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Compose structured business-email drafts in English from curated templates and phrase banks from Business Email (book). Use this whenever the user asks for enquiry, informing, request, complaint, apology, order-status, or meeting-style business emails.
Normalize filenames for AWS S3 and CloudFront: lowercase, safe characters, extension normalization (.jpeg → .jpg), and .tsv audit log. Usage: /aws-naming <directory_or_file>
Apply Kabat One Markdown styling to a file by platform. Usage: /styling <hedgedoc|gitlab|github> [mit|gpl] <file>
Maintain CHANGELOG.md with correct CST dates, reverse chronological order, and Spanish Mexican language. Use this skill when updating the changelog.
Full commit workflow with mandatory CHANGELOG validation, SSH validation, and conventional commits in English. Use this skill before making any git commit.
Initialize a git repo with SSH, identity and remote configured. Usage: /git-init <personal|laboral> <key_name> <remote_url> <branch>
| name | |
| description | Compose and send OWA-compatible HTML email. Usage: /mail <owa|mac|graph> <delivery|generic> <subject> |
token → authenticate and cache Graph API token (run once, lasts ~90 days)owa → save HTML file for manual copy-paste into Outlook Web (Linux)mac → open draft in Outlook via AppleScript with native signature (macOS)graph → send directly via Microsoft Graph API with inline signature (any OS)delivery or generic) — not needed for token modetoken modeNo arguments guard: If $0 is empty or not provided, display the following help and stop — do NOT proceed with any other step:
Usage: /mail <mode> <type> <subject>
Modes ($0):
token Authenticate and cache Graph API token (run once, lasts ~90 days)
owa Save HTML for copy-paste into Outlook Web (Linux)
mac Open draft in Outlook via AppleScript with native signature (macOS)
graph Send directly via Microsoft Graph API with inline signature (any OS)
Types ($1) — not required for token mode:
delivery Service/version delivery email
generic Generic email with configurable sections
Subject ($ARGUMENTS) — everything after type; not required for token mode
Examples:
/mail token
/mail owa delivery kabat-authorization-service
/mail mac generic cambio de configuración Kafka
/mail graph generic decisión técnica WebSocket
/mail graph delivery kabat-notification-service
Read the full CoT: Load and follow ~/rules/cot/mail.md from line 1 to end
Read the rules: Load ~/rules/rulesets/MAIL.md for HTML constraints and color palette
Select template based on $1:
delivery → read and use ~/rules/templates/mail/delivery_template.htmlgeneric → read and use ~/rules/templates/mail/generic_template.htmlGenerate filename: YYYY-MM-DD-{subject-as-slug}.html (date in CST)
Ask the user for the missing data:
Generate the HTML replacing all placeholders with real data
Select accent color for the H1 border based on email purpose:
#3498db (blue)#e67e22 (orange)#e74c3c (red)#0066cc (dark blue)Handle signature based on mode ($0):
owa → do NOT include signature (Outlook adds it when sending from OWA)mac → do NOT include signature (Outlook adds it when opening draft)graph → include signature as inline CID image:
<hr style="margin:30px 0; border:none; border-top:2px solid #ecf0f1;">
<img src="cid:firma_ralvarez" alt="Rodrigo Álvarez" width="740" style="max-width:100%; display:block;">
Validate OWA rules:
<td> has BOTH bgcolor attribute AND background-color in style<style> blocks, no CSS classes<td white-space:pre-wrap>, not <pre>nth-childDeliver based on mode ($0):
token (authenticate and cache)~/rules/scripts/graph_auth.py via get_token()~/.graph_tokens.json (permissions 600)graph sends reuse the token silently for ~1 hourgraph refreshes silently via refresh_token (~90 days)/mail token again if refresh_token expiresowa (Linux — manual copy-paste)mail/ directory exists in the project root, save there~/mail/~/rules/templates/mail/assets/ralvarez_firma.png next to the HTML in an assets/ subdirectorymac (macOS — AppleScript draft)owa)tell application "Microsoft Outlook"
activate
set newMsg to make new outgoing message with properties {subject:"...", content:"..."}
make new to recipient at newMsg with properties {email address:{address:"..."}}
open newMsg
end tell
graph (any OS — direct send via API)get_token() from ~/rules/scripts/graph_auth.py (uses cached token; if no cache, tells user to run /mail token first)~/rules/templates/mail/assets/ralvarez_firma_740.pngPOST https://graph.microsoft.com/v1.0/me/sendMail with:
<img src="cid:firma_ralvarez">contentId: "firma_ralvarez" and isInline: truesaveToSentItems: trueowa) for archival<style> blocks and CSS classesbgcolor goes on <td>, NEVER only on <table>border-radius, no flexbox, no grid, no media queriesArial,sans-serif everywhere, 'Courier New',monospace for code/mail token — authenticate and cache Graph API token (run once)/mail owa delivery kabat-authorization-service — compose delivery email, save for OWA paste/mail mac generic cambio de configuración Kafka — compose and open draft in Outlook on macOS/mail graph generic decisión técnica WebSocket — compose and send directly via Graph API/mail graph delivery kabat-notification-service — compose and send delivery email via Graph API~/rules/cot/mail.md~/rules/rulesets/MAIL.md~/rules/docs/MAIL.md~/.secrets.yaml (key GRAPH_API)~/rules/templates/mail/delivery_template.html and ~/rules/templates/mail/generic_template.html~/rules/templates/mail/assets/ralvarez_firma_740.png (for graph mode)