slack-drafts

slack-drafts is a skill for Claude Code, Codex from yc-software/qm. It costs 38 tokens per session (690 once invoked), scanned A, original, MIT.

A way to prepare Slack messages in the user's own Slack composer for review. Slack is a team messaging service, and these drafts are not posted automatically.

In plain words
What is it for?
Use it to draft a reply, prepare a message for a channel, or write into a specific Slack conversation or thread.
Why use it?
It saves the user from composing the message manually while leaving them in control of the final wording and sending.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to draft a reply, prepare a message for a channel, or write into a specific Slack conversation or thread.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yc-software/qm/slack-drafts
About the project

QM is a shared work environment for coding agents that gives each employee and conversation an isolated workspace while allowing collaboration in Slack and on the web. Startups use it to run agents for individuals, teams, and company operations, with selectable harnesses and models. The catalogue entries extend QM with skills, instructions, and settings.

yc-software/qm · 16,126 stars · on GitHub · labs.ycombinator.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yc-software/qm --skill slack-drafts
Clone the repo
git clone --depth 1 https://github.com/yc-software/qm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slack-drafts

README.md
[![agentmods](https://agentmods.dev/badge/skills/yc-software/qm/slack-drafts/github.svg)](https://agentmods.dev/skills/yc-software/qm/slack-drafts)
Your own site
<a href="https://agentmods.dev/skills/yc-software/qm/slack-drafts"><img src="https://agentmods.dev/badge/skills/yc-software/qm/slack-drafts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slack-drafts

Your own site · 80×15
<a href="https://agentmods.dev/skills/yc-software/qm/slack-drafts"><img src="https://agentmods.dev/badge/skills/yc-software/qm/slack-drafts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 690 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 16
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00690
Opus 5.5 $0.00015 $0.00276
Sonnet 5.5 $0.00008 $0.00138
Haiku 4.5 $0.00004 $0.00069

Measured 1mo ago against content hash 7d646baf2f5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

slack-drafts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/slack_drafts.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills-seed/slack-drafts/SKILL.md · 51 lines

What it actually says

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.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines 7d646baf2f5a
  2. 3mo ago First seen · 47 lines · 38 tokens per session scan A e819a883fef7

Subscribe to this mod's changes

slack-drafts is a skill published in the GitHub repository yc-software/qm (16,126 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 690 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

slack-drafts compared with skills from other repositories

slack-drafts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slack-draftsyc-software/qmSkill16ktodayMITA38Claude Code, Codex
node-inspect-debuggeropenclaw/openclawSkill395ktodayMITA28Claude Code, Codex
lobsteropenclaw/openclawSkill395ktodayMITA16Claude Code, Codex
knowledge-captureopenclaw/openclawSkill395ktodayMITA60Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill395ktodayMITA80Claude Code, Codex
knowledge-recallopenclaw/openclawSkill395ktodayMITA40Claude Code, Codex
migrating-openai-agents-sdk-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA87Codex