技能圖譜SKILLSGROVE
技能圖譜/效率工具/nadavnaveh/skills/draft-only-mail

draft-only-mail

安裝

$npx skills add https://github.com/nadavnaveh/skills --skill draft-only-mail
$git clone --depth 1 https://github.com/nadavnaveh/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/draft-only-mail ~/.claude/skills/draft-only-mail
請幫我安裝這個 Agent Skill:https://github.com/nadavnaveh/skills/tree/2d44b2dc2824a762dacd56acbf8a01be8a4774f8/skills/draft-only-mail ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITSets email access to draft-only. The agent reads mail and writes drafts, every send tool or route is denied in Claude Code's permission settings, and the block is tested. Fixes "the agent sent an email in my name without asking." Use when you connect email to an agent, before it works in your inbox, when send, reply or forward shows in its tool list, or when it offers another way to send. Also on /draft-only-mail.
以下 SKILL.md 內容轉載自 nadavnaveh/skills(提交 2d44b2d),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Nadav Naveh 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Draft-only mail

The agent sent an email in your name, and nobody checked it first. One setting decided that: it could send, not only draft. This skill keeps read and draft, denies every send path and tests the block.

The principles

  1. Read and draft, yes. Send, no. The person presses send.
  2. Reply and forward send too, so deny them with send.
  3. Block every send path. With one tool gone, an agent may offer another route.
  4. A block you did not test is not a block.

Steps

  1. List the agent's email tools. scripts/gmail-tools-2026-10-27.txt shows five from one Claude Code session: create_draft, update_draft, send_message, reply and forward. If your connector is not Gmail, use the names from your own tool list.
  2. Sort each tool into keep (read, search, create or update a draft) or deny (anything that sends, even a saved draft). If a name is unclear, deny it and ask.
  3. Look for other send paths: a second email connector, or mail sent through the terminal. Deny each extra tool. The terminal route stays open until the person picks a rule for it, so ask.
  4. Show the list and ask "Deny these?" Change no setting before a yes.
  5. Add the exact names under "deny" in .claude/settings.json (this project) or ~/.claude/settings.json (every project), leaving the draft tools out: "permissions": { "deny": ["mcp__claude_ai_Gmail__send_message", "mcp__claude_ai_Gmail__reply", "mcp__claude_ai_Gmail__forward"] } Start a fresh session, then run /permissions to check the deny lines loaded.
  6. Test in an interactive session with the connector loaded: ask the agent to list its email tools. Pass means send, reply and forward are absent. A headless run may not load the connector, so it counts as not run. Try a real send only after the person's explicit yes, to their own address, body marked "test, do not act". If it offers another route, deny that and retest.
  7. Report each tool as kept or denied, the terminal route as blocked or open, and the test as pass, fail or not run, quoting the agent.

Rules

  • Never send mail in the person's name without their explicit yes.
  • If you find a send route that is not denied, stop and ask. Never take it.
  • A denied tool stays denied until the person removes the line.
  • The proof does not show a real Gmail send blocked (scripts/deny-run-2026-10-27.txt used WebFetch as a stand-in), or the rule in scripts/gmail-tools-2026-10-27.txt applied to anyone's settings. Only step 6 proves your setup.
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Nadav Naveh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.