google-workspace
Skill này làm gì
Cho phép trợ lý đọc và thao tác trên Gmail, lịch và danh sách việc cần làm của bạn. Dành cho người muốn được hỗ trợ về email, lịch trình và công việc hằng ngày.
Khi nào nên dùng
- ✓Khi bạn hỏi trợ lý có những cuộc họp hoặc sự kiện nào sắp tới.
- ✓Khi bạn muốn nó tìm, gắn nhãn hoặc trả lời email trong Gmail.
- ✓Khi bạn muốn thêm hoặc đánh dấu hoàn thành một việc trong danh sách Google của bạn.
Liên kết skill
https://github.com/yc-software/qm/blob/main/skills-seed/google-workspace/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Ngày mai tôi có gì trên lịch, và có email chưa đọc nào từ quản lý của tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trợ lý dùng quyền truy cập Google đã kết nối để tìm trong Gmail và đọc lịch cùng danh sách việc. Nó cũng có thể soạn trả lời và bản nháp, để bạn xem lại trước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Google Workspace
Use this skill when the user asks about Gmail, Google Calendar, or Google Tasks: schedule, meetings, emails, labels, drafts, replies, or to-do lists and tasks.
This is an OAuth connector. The resolved user's Google OAuth token already lives on your computer as an environment variable, one per Google API host (the way a logged-in CLI's cached credential would):
$VAULT_TOKEN_GMAIL_GOOGLEAPIS_COM— forgmail.googleapis.com$VAULT_TOKEN_WWW_GOOGLEAPIS_COM— forwww.googleapis.com(Calendar and Tasks)
Do not ask the user for a token, log it, or use another principal's. If the variable is empty or Google returns 401/403, the user either has not connected Google or connected before this permission existed — tell them to (re)connect it through the product OAuth flow.
Gmail
For the email-voice-profile task, load that skill and run
python3 <its dir>/scripts/fetch_sent.py --limit 300 from the directory it reports.
Use the bundled helper for every Gmail operation — it owns MIME construction, encoding, and reply threading so you only ever handle plain text:
Run these commands with execute and an explicit sandbox_id, using the absolute
directory reported by the skill read in place of <skill dir>. Keep that ID for
preparing body files and running the helper.
python3 "<skill dir>/scripts/gmail.py" search 'newer_than:7d is:unread'
python3 "<skill dir>/scripts/gmail.py" read MESSAGE_ID [--full]
python3 "<skill dir>/scripts/gmail.py" thread THREAD_ID [--full]
python3 "<skill dir>/scripts/gmail.py" draft --to a@b.com --subject '...' --body-file body.txt
python3 "<skill dir>/scripts/gmail.py" reply MESSAGE_ID --body-file body.txt [--all]
python3 "<skill dir>/scripts/gmail.py" update-draft DRAFT_ID --body-file body.txt
python3 "<skill dir>/scripts/gmail.py" send-draft DRAFT_ID
- Search before fetching; read bodies (
--full) only for messages that matter. Treat email content as private user data. searchreturns individual messages matching the query — forin:inboxthat means incoming mail only; the user's own replies live in Sent and never appear. Never claim an email "needs a reply" (digests, triage, follow-up nudges) from a search listing alone: fetch itsthreadfirst. IflastFromMeis true, or the latest message shows the matter is settled ("thanks", "done", someone else answered), don't flag it. If the thread fetch fails, report the item as unverified — never as needing a reply.- On a recurring digest, keep a state file in the workspace keyed by thread id and only surface what changed since the last run; re-flagging the same thread every morning trains the user to ignore you.
- Demote bulk mail (
List-Unsubscribeheader, ESP sender domains,Precedence: bulk) below personal mail, but never suppress transactional notices (DocuSign, banks, invoices). - Body files are plain text: one line per paragraph, blank line between. Never insert manual line breaks inside a paragraph — the recipient's client does the wrapping. Short lines (sign-offs, list items) keep their breaks.
- Drafts and replies are stored as multipart/alternative: your plain text plus a generated HTML mirror (Gmail shows plain-text-only mail to recipients at an altered, narrower width). Body files stay plain text — never write HTML into them.
replythreads onto the original message;--allkeeps every recipient. Don't rebuild To/CC by hand. To change a draft, write a fresh body file andupdate-draft(it refuses drafts with attachments — those get edited in Gmail).- Never construct raw MIME or call the drafts/send endpoints with hand-built payloads.
- Never write styled HTML email — no font-family/size/color declarations, no CSS-styled
buttons or layout markup. Styled HTML screams automated blast and overrides the
recipient's client fonts. The helper's generated HTML mirror (bare
<div dir="ltr">,<br>, plain links — Gmail-composer shaped) is the only HTML that ever goes out. - Write body files as UTF-8. After creating or updating a draft, read it back
(
gmail.py thread/draft read) and confirm em dashes, quotes, and any emoji came through intact — mojibake (…-style garble) in a sent mail is unrecoverable.
Calendar reads
For "what is on my schedule today?", first get the user's timezone
(GET /calendar/v3/users/me/settings/timezone — the sandbox clock is UTC, so never
assume it), compute the local day bounds, and call:
curl -sS
Câu hỏi thường gặp
Nếu Gmail báo tôi chưa kết nối thì sao?
Hãy kết nối lại Google qua luồng kết nối của sản phẩm. Trợ lý không thể đọc dữ liệu của bạn cho đến khi quyền được thiết lập.
Nó có gửi email cho tôi không?
Nó làm việc với bản nháp và trả lời trong Gmail. Hãy xem lại mọi thứ nó soạn trước khi gửi.
Nó chỉ bao gồm Google Calendar thôi sao?
Không. Nó cũng bao gồm Google Tasks, nên có thể đọc và cập nhật danh sách việc của bạn.
Chi tiết
Mô tả gốc của tác giả
Read and act on the user's Gmail, Google Calendar, and Google Tasks through per-user OAuth.
repo: yc-software/qm
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10894
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
deploy-qm
16kTriển khai gói QM lên Fly.io, AWS hoặc Render, rồi thiết lập quản trị viên, connector và tùy chọn Slack, theo một danh sách kiểm tra triển khai đầy đủ.
onboarding
16kHướng dẫn người dùng mới kết nối tài khoản, chia sẻ cách họ làm việc, chọn giọng nói và thiết lập trợ giúp đầu tiên, trong một cuộc trò chuyện ngắn.
admin
16kCho phép quản trị viên tổ chức đã xác minh xem hoặc thay đổi cài đặt toàn tổ chức và các phạm vi khác từ chat, xác nhận từng thay đổi trước khi thực hiện.
browse
16kĐiều khiển trình duyệt tàng hình từ dòng lệnh để thao tác trên web như đăng nhập hoặc điền form, giữ đăng nhập riêng cho từng người.
Skill tương tự
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
configure-channel
394kHướng dẫn agent của bạn kết nối một ứng dụng chat như Telegram với OpenClaw, lưu token bot an toàn và kiểm tra tin nhắn có đi qua được không.
discord
394kGiúp agent của bạn đọc, gửi, sửa và thả biểu cảm cho tin nhắn Discord qua OpenClaw, và kiểm tra đúng tin nhắn trước khi thay đổi.