Aller au contenu
Skillpedia
E-mail et messagerie16k · #10906

slack-drafts

Ce qu’il fait

Permet à l'assistant de préparer un message Slack dans votre application Slack, en votre nom et à destination du chat de votre choix. Elle s'adresse aux personnes qui veulent de l'aide pour leurs réponses, mais qui préfèrent les envoyer elles-mêmes.

Quand l’utiliser

  • ✓Quand vous voulez une réponse à une conversation Slack rédigée pour que vous la relisiez.
  • ✓Quand vous voulez qu'un message soit préparé pour un canal sans être publié.
  • ✓Quand vous avez besoin d'une réponse dans un fil existant de Slack.

Lien du skill

https://github.com/yc-software/qm/blob/main/skills-seed/slack-drafts/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/yc-software/qm/blob/main/skills-seed/slack-drafts/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Rédige une réponse à la question de Priya dans le canal Slack produit et laisse-la-moi pour que je l'envoie.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'assistant crée un brouillon dans votre éditeur Slack, dirigé vers le bon canal ou la bonne personne. Rien n'est publié tant que vous ne l'avez pas relu et que vous n'avez pas appuyé sur envoyer dans Slack.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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'
  • --to takes 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-ts targets 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:write scope; tokens connected before that scope existed can only draft into conversations that already exist. On a missing_scope error, 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.
Questions fréquentes

L'assistant publiera-t-il le message à ma place ?

Non. Il crée seulement un brouillon, et vous l'envoyez vous-même depuis Slack.

Peut-il répondre dans un fil ?

Oui. Il peut viser un fil pour que le brouillon soit une réponse dans cette conversation.

Que faire si Slack indique qu'un accès manque ?

Connectez Slack depuis le flux de connexion du produit, car l'assistant a besoin de votre autorisation Slack pour créer des brouillons.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
16k
Position au classement
#10906
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires