slack-drafts
Skill này làm gì
Cho phép trợ lý soạn tin nhắn Slack trong ứng dụng Slack của bạn, gắn với bạn và gửi đến kênh hoặc cuộc trò chuyện bạn chọn. Dành cho người muốn được giúp trả lời nhưng tự gửi.
Khi nào nên dùng
- ✓Khi bạn muốn một bản trả lời cho cuộc trò chuyện Slack được soạn để bạn xem lại.
- ✓Khi bạn muốn một tin nhắn được soạn sẵn cho một kênh mà không đăng.
- ✓Khi bạn cần soạn một trả lời trong luồng cho một thảo luận Slack hiện có.
Liên kết skill
https://github.com/yc-software/qm/blob/main/skills-seed/slack-drafts/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
“Soạn trả lời câu hỏi của Priya trong kênh Slack sản phẩm và để tôi tự gửi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trợ lý tạo một bản nháp trong ô soạn Slack của bạn, nhắm đến đúng kênh hoặc người. Không có gì được đăng cho đến khi bạn xem lại và nhấn gửi trong Slack.
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.
Slack drafts
Use this skill when the user wants a Slack message prepared for them to review and send themselves: "draft a reply to X", "prep a message for #general", "write that up as a Slack draft". The draft lands in their own Slack composer, attributed to them, targeted at the conversation you choose — nothing is posted.
This is an OAuth connector. The resolved user's Slack user token lives on your
computer as $VAULT_TOKEN_SLACK_COM. Do not ask the user for a token, log it, or
use another principal's. If the variable is empty or Slack returns 401/403, the user
either has not connected Slack or connected before this permission existed — tell
them to (re)connect it through the product OAuth flow.
Use the bundled helper for every draft — it owns destination resolution, rich-text block construction, and the required draft envelope:
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/slack_drafts.py" create --to '#general' --text 'hello'
python3 "<skill dir>/scripts/slack_drafts.py" create --to '@jane' --text-file body.txt
python3 "<skill dir>/scripts/slack_drafts.py" create --to C0123ABCDEF --thread-ts 1712345678.000100 --text '...'
python3 "<skill dir>/scripts/slack_drafts.py" resolve --to '#general'
--totakes a channel/IM ID (C…/G…/D…), a user ID (U…/W…),#channel-name, or@name(matched against username, display name, real name, or email; ambiguous matches are refused — fall back to a user ID).- Text is plain; URLs become clickable links. Write it exactly as the user would send it — it goes out under their name, in their voice, once they hit send.
--thread-tstargets the draft at a thread reply instead of the channel composer.- Drafts are create-only through this API: you cannot list, edit, or delete a draft once made. To revise, tell the user to discard the old draft in Slack and create a fresh one. Never work around this by posting messages — drafting means the user sends.
- Opening a brand-new DM needs the
im:writescope; tokens connected before that scope existed can only draft into conversations that already exist. On amissing_scopeerror, tell the user to reconnect Slack. - Slack keeps at most one draft per composer: a second draft into the same channel or
thread fails with
attached_draft_exists. Tell the user to send or discard the existing draft, then retry.
Câu hỏi thường gặp
Trợ lý có đăng tin nhắn thay tôi không?
Không. Nó chỉ tạo bản nháp, và bạn tự gửi từ Slack.
Nó có trả lời trong luồng được không?
Có. Nó có thể nhắm đến một luồng để bản nháp trở thành trả lời trong cuộc trò chuyện đó.
Nếu Slack báo thiếu quyền truy cập thì sao?
Hãy kết nối Slack qua luồng kết nối của sản phẩm, vì trợ lý cần quyền Slack của bạn để tạo bản nháp.
Chi tiết
Mô tả gốc của tác giả
Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.
repo: yc-software/qm
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10906
- 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.