[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79EJZBMJRXKMYC0MZCJSCRF":3,"skill-same:01M79EJZBMJRXKMYC0MZCJSCRF":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M79EJZBMJRXKMYC0MZCJSCRF","mail-draft",null,"Draft an email in the local macOS Mail app by opening a pre-filled compose window using a mailto: URL + AppleScript.  Use when the user says \"draft an email\", \"open Mail and prepare a message\", \"prefill recipient, subject, and body in Mail\", or provides email fields to populate. Prefer this local helper over generic Mail automation, browser mail, or MCP mail tools.","zfifteen\u002Fskills-catalog","zfifteen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221906715?v=4","01M79CQFXDZM5J5CJTCECPFA66","Dionisio Alberto Lopez III","01M79CQFY4C62PN8A2T5KDAHGA",1,"MIT","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fmail-draft\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mail-draft\ndescription: >\n  Draft an email in the local macOS Mail app by opening a pre-filled compose window using a mailto: URL + AppleScript. \n  Use when the user says \"draft an email\", \"open Mail and prepare a message\", \"prefill recipient, subject, and body in Mail\", or provides email fields to populate.\n  Prefer this local helper over generic Mail automation, browser mail, or MCP mail tools.\nwhen-to-use: \"Any request to draft or pre-fill an email in the native macOS Mail application. Triggers on phrases like 'draft email to...', 'mail this to X with subject Y', 'open a draft in Mail'. macOS-specific; falls back gracefully with the generated mailto: URL if osascript fails.\"\nallowed-tools: [\"run_terminal_cmd\", \"read_file\", \"ask_user_question\"]\nargument-hint: \"--to 'recipient@example.com' --subject 'Subject line' --body 'Message body...' [--cc ...] [--body-file \u002Fpath]\"\nmetadata:\n  short-description: \"Open prefilled draft in macOS Mail.app via mailto: + osascript\"\n  source: \"Codex 'mail-draft' skill + ~\u002F.codex\u002Ftools\u002Fmailto_draft.py (ported 2026-05-24)\"\n---\n\n# Mail Draft (Grok Port)\n\n## Core Job\n\nOpen a pre-filled draft window in the user's default macOS Mail application. This skill does **not** send mail — it only stages the draft for the user to review and send.\n\nThis is the low-friction, native macOS path. It is deliberately preferred over:\n- Direct `open` of the Mail binary\n- Generic MCP \"Mail\" tools (if any)\n- AppleScript `tell application \"Mail\"` flows written by the agent\n- Browser-based mailto or webmail automation\n\n## The Bundled Helper Script\n\nThe heart of the skill is the self-contained Python script:\n\n**`\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py`**\n\nIt builds a properly encoded `mailto:` URL from the supplied fields and uses `osascript` to execute `open location \"mailto:...\"` so the system default handler (Mail.app) opens a new draft with the fields populated.\n\n**Invocation examples (via `run_terminal_cmd`):**\n\n```bash\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" \\\n  --to \"alice@example.com\" \\\n  --subject \"Project update\" \\\n  --body \"Hi Alice,\n\nHere is the latest status...\"\n\n# With body from file (recommended for multi-line or long bodies)\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" \\\n  --to \"team@company.com\" \\\n  --subject \"Weekly report\" \\\n  --body-file \u002Ftmp\u002Fdraft-body.txt\n\n# Dry run (just see the URL)\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" --to \"x@y.z\" --subject \"Test\" --body \"Hi\" --dry-run\n```\n\nThe script accepts:\n- `--to`, `--cc`, `--bcc`\n- `--subject`\n- `--body` (string) or `--body-file` (UTF-8 path) or stdin when non-tty\n- `--dry-run`\n\nIt always prints the resulting mailto: URL to stdout (useful for logging or copy-paste).\n\n## Workflow\n\n1. **Gather fields from the user request**\n   - Extract `to`, `subject`, `body` (and optional cc\u002Fbcc) from the current prompt or conversation.\n   - If any required field is missing or ambiguous, use `ask_user_question` (or direct clarification) to obtain it. Do not guess recipients.\n\n2. **Prepare body (multiline safe)**\n   - For anything longer than a single line, write to a temp file first:\n     ```bash\n     body_file=\"$(mktemp \u002Ftmp\u002Fgrok-mail-body.XXXXXX.txt)\"\n     cat >\"$body_file\" \u003C\u003C'EOF'\n     Line one\n     Line two\n     ...\n     EOF\n     python3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" --to \"...\" --subject \"...\" --body-file \"$body_file\"\n     ```\n\n3. **Invoke the helper**\n   - Run via `run_terminal_cmd` with the arguments above.\n   - Capture the printed mailto: URL.\n\n4. **Confirm & surface**\n   - After the command succeeds, tell the user: \"Draft opened in Mail.app with the following fields populated:\" and list To \u002F Subject \u002F (body excerpt if short).\n   - If `--dry-run` or the open failed, provide the mailto: URL so the user can click it or paste into a browser \u002F mail client.\n\n5. **Error handling**\n   - If osascript or the open fails (non-macOS, no default mail handler, permissions), print the exact mailto: URL and a clear one-line explanation.\n   - Never fall back to writing `.eml` files, launching web Gmail, or inventing other clients unless the user explicitly asks for behavior beyond \"draft in local Mail\".\n\n## Guardrails (preserved)\n\n- This skill **only drafts**. It never sends.\n- If the user omits recipient, leave To: blank (user can fill in Mail).\n- Preserve the user's exact wording for subject and body unless they ask you to rewrite.\n- After opening, give a brief, factual confirmation of what was populated.\n- On macOS only. On other OSes the script will fail at the osascript step; surface the mailto: URL as the portable fallback.\n\n## Grok-Specific Notes\n\n- The `ask_user_question` tool is the natural way to collect missing email fields mid-workflow with structured choices when appropriate.\n- Combine with other skills: after drafting, the user may ask you to iterate on the body (use search_replace on the temp file then re-invoke the script) or attach files (user does this manually in Mail).\n- If the environment has a different connected \"mail\" MCP, still prefer this native macOS path for the stated use case unless the user overrides.\n\n## Success Criteria\n\n- A Mail compose window opens with the requested To\u002FSubject\u002FBody (and cc\u002Fbcc) pre-filled.\n- The user sees a clear confirmation of exactly which fields were set.\n- The exact mailto: URL is available in the transcript for audit or fallback.\n- No mail is sent; the draft remains fully under user control.\n\nThis port keeps the original's \"prefer the local helper\" philosophy while making the implementation a first-class, documented, runnable artifact inside the Grok skill.\n","# Mail Draft (Grok Port)\n\n## Core Job\n\nOpen a pre-filled draft window in the user's default macOS Mail application. This skill does **not** send mail — it only stages the draft for the user to review and send.\n\nThis is the low-friction, native macOS path. It is deliberately preferred over:\n- Direct `open` of the Mail binary\n- Generic MCP \"Mail\" tools (if any)\n- AppleScript `tell application \"Mail\"` flows written by the agent\n- Browser-based mailto or webmail automation\n\n## The Bundled Helper Script\n\nThe heart of the skill is the self-contained Python script:\n\n**`\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py`**\n\nIt builds a properly encoded `mailto:` URL from the supplied fields and uses `osascript` to execute `open location \"mailto:...\"` so the system default handler (Mail.app) opens a new draft with the fields populated.\n\n**Invocation examples (via `run_terminal_cmd`):**\n\n```bash\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" \\\n  --to \"alice@example.com\" \\\n  --subject \"Project update\" \\\n  --body \"Hi Alice,\n\nHere is the latest status...\"\n\n# With body from file (recommended for multi-line or long bodies)\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" \\\n  --to \"team@company.com\" \\\n  --subject \"Weekly report\" \\\n  --body-file \u002Ftmp\u002Fdraft-body.txt\n\n# Dry run (just see the URL)\npython3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" --to \"x@y.z\" --subject \"Test\" --body \"Hi\" --dry-run\n```\n\nThe script accepts:\n- `--to`, `--cc`, `--bcc`\n- `--subject`\n- `--body` (string) or `--body-file` (UTF-8 path) or stdin when non-tty\n- `--dry-run`\n\nIt always prints the resulting mailto: URL to stdout (useful for logging or copy-paste).\n\n## Workflow\n\n1. **Gather fields from the user request**\n   - Extract `to`, `subject`, `body` (and optional cc\u002Fbcc) from the current prompt or conversation.\n   - If any required field is missing or ambiguous, use `ask_user_question` (or direct clarification) to obtain it. Do not guess recipients.\n\n2. **Prepare body (multiline safe)**\n   - For anything longer than a single line, write to a temp file first:\n     ```bash\n     body_file=\"$(mktemp \u002Ftmp\u002Fgrok-mail-body.XXXXXX.txt)\"\n     cat >\"$body_file\" \u003C\u003C'EOF'\n     Line one\n     Line two\n     ...\n     EOF\n     python3 \"\u003CSKILL_DIR>\u002Fscripts\u002Fmailto_draft.py\" --to \"...\" --subject \"...\" --body-file \"$body_file\"\n     ```\n\n3. **Invoke the helper**\n   - Run via `run_terminal_cmd` with the arguments above.\n   - Capture the printed mailto: URL.\n\n4. **Confirm & surface**\n   - After the command succeeds, tell the user: \"Draft opened in Mail.app with the following fields populated:\" and list To \u002F Subject \u002F (body excerpt if short).\n   - If `--dry-run` or the open failed, provide the mailto: URL so the user can click it or paste into a browser \u002F mail client.\n\n5. **Error handling**\n   - If osascript or the open fails (non-macOS, no default mail handler, permissions), print the exact mailto: URL and a clear one-line explanation.\n   - Never fall back to writing `.eml` files, launching web Gmail, or inventing other clients unless the user explicitly asks for behavior beyond \"draft in local Mail\".\n\n## Guardrails (preserved)\n\n- This skill **only drafts**. It never sends.\n- If the user omits recipient, leave To: blank (user can fill in Mail).\n- Preserve the user's exact wording for subject and body unless they ask you to rewrite.\n- After opening, give a brief, factual confirmation of what was populated.\n- On macOS only. On other OSes the script will fail at the osascript step; surface the mailto: URL as the portable fallback.\n\n## Grok-Specific Notes\n\n- The `ask_user_question` tool is the natural way to collect missing email fields mid-workflow with structured choices when appropriate.\n- Combine with other skills: after drafting, the user may ask you to iterate on the body (use search_replace on the temp file then re-invoke the script) or attach files (user does this manually in Mail).\n- If the environment has a different connected \"mail\" MCP, still prefer this native macOS path for the stated use case unless the user overrides.\n\n## Success Criteria\n\n- A Mail compose window opens with the requested To\u002FSubject\u002FBody (and cc\u002Fbcc) pre-filled.\n- The user sees a clear confirmation of exactly which fields were set.\n- The exact mailto: URL is available in the transcript for audit or fallback.\n- No mail is sent; the draft remains fully under user control.\n\nThis port keeps the original's \"prefer the local helper\" philosophy while making the implementation a first-class, documented, runnable artifact inside the Grok skill.\n",{"name":5,"metadata":24,"description":27,"when-to-use":28,"allowed-tools":29,"argument-hint":33},{"source":25,"short-description":26},"Codex 'mail-draft' skill + ~\u002F.codex\u002Ftools\u002Fmailto_draft.py (ported 2026-05-24)","Open prefilled draft in macOS Mail.app via mailto: + osascript","Draft an email in the local macOS Mail app by opening a pre-filled compose window using a mailto: URL + AppleScript.  Use when the user says \"draft an email\", \"open Mail and prepare a message\", \"prefill recipient, subject, and body in Mail\", or provides email fields to populate. Prefer this local helper over generic Mail automation, browser mail, or MCP mail tools.\n","Any request to draft or pre-fill an email in the native macOS Mail application. Triggers on phrases like 'draft email to...', 'mail this to X with subject Y', 'open a draft in Mail'. macOS-specific; falls back gracefully with the generated mailto: URL if osascript fails.",[30,31,32],"run_terminal_cmd","read_file","ask_user_question","--to 'recipient@example.com' --subject 'Subject line' --body 'Message body...' [--cc ...] [--body-file \u002Fpath]","main","d9535210da9af28aa76bca80de80355197e1b6d6","skills\u002Fmail-draft","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog","https:\u002F\u002Fgithub.com\u002Fzfifteen","I like to measure things.","2026-07-19 23:41:54",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add zfifteen\u002Fskills-catalog --skill mail-draft",{"tool":47,"command":48},"bunx","bunx skills add zfifteen\u002Fskills-catalog --skill mail-draft",{"tool":50,"command":51},"pnpm","pnpm dlx skills add zfifteen\u002Fskills-catalog --skill mail-draft","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fmail-draft\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fmailto_draft.py","SCRIPT","脚本",3483,"https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fmail-draft\u002Fscripts\u002Fmailto_draft.py",[62,69,76,83,92,99],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79GXQ2PWPT2E4CJYHXVJ0YE","Zotero","Use Zotero Desktop from Codex to enable\u002Fprobe the local API, search a local Zotero library, list items\u002Fcollections\u002Ftags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX\u002FRIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fzotero\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79GXN85NETKBE06865CWK6Z","zoom-apps-sdk","Use when using Apps SDK.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79GXCYD7FGYS932J9N9RFFY","youtube","Obtain accurate, timestamped YouTube video transcripts (preferring manual captions over auto-generated) as the primary deliverable, then derive summaries, key claims, or notes from that transcript.  Use when the user provides a YouTube URL (or video ID) and wants the transcript, a faithful summary, key claims with attribution, timestamped notes, or \"what does this video actually say\".  The skill is transcript-first: never substitute metadata, title, description, or search snippets for the spoken content.  Triggers: \"youtube transcript\", \"get the transcript of this video\", \"summarize this youtube video\", \"what did they say in https:\u002F\u002Fyoutube.com\u002F...\", \"key claims from this talk\".","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":87,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M79GX8EXHHYM566BKR7MS778","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M79GX2HFJPX84NMRE5VBTYX9","x-post-creator","Create X-ready post threads and co-located story packages from the active conversation or referenced project material. Use when the user says turn this into an X-post, \u002Fx-post, make this into an X thread, or wants plain-language social posts with supporting images saved to docs\u002Fx-posts\u002F[story-name]\u002F.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fx-post-creator\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M79GWXQT4HBT6QME6QSBZJFA","x-api","Search, read, and write X posts through the local X API MCP server (the same backend used by the Codex x-api skill). Use for searching X\u002Fx.com, reading threads and replies, creating lists, staging\u002Fpublishing posts for @alltheputs, finding high-visibility reply targets for research outreach, ingesting public context, or any request that mentions \u002Fx-api or \"search X\".","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]