slack

slack is a skill for Claude Code from sepehr500/skills. It costs 36 tokens per session (1,221 once invoked), scanned A, original, MIT.

An integration for reading and sending Slack messages and moving files in Slack conversations. Slack is a workplace chat service used by teams and organisations.

In plain words
What is it for?
Use it to search messages, read direct messages or channels, reply to people, and download or upload conversation files.
Why use it?
It helps an agent search conversations, retrieve shared files, and communicate in Slack without switching between tools.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to search messages, read direct messages or channels, reply to people, and download or upload conversation files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sepehr500/skills/slack
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 sepehr500/skills --skill slack
Clone the repo
git clone --depth 1 https://github.com/sepehr500/skills

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sepehr500/skills/slack.svg)](https://agentmods.dev/skills/sepehr500/skills/slack)
Your own site
<a href="https://agentmods.dev/skills/sepehr500/skills/slack"><img src="https://agentmods.dev/badge/skills/sepehr500/skills/slack.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,221 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.
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.00036 $0.01221
Opus 5 $0.00018 $0.00611
Sonnet 5 $0.00007 $0.00244
Haiku 4.5 $0.00004 $0.00122

Measured 8d ago against content hash 27be272b9a67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

slack 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/slack_client.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/slack/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slack Integration

Interact with Slack on the user's behalf using the Python Slack SDK - read messages, send replies, download and upload files.

Setup

Ensure the Python Slack SDK is installed:

pip install slack-sdk

Authentication

Use the Slack token from $SLACK_TOKEN environment variable. If not available, ask the user to provide it.

Required scopes (add via https://api.slack.com/apps -> OAuth & Permissions -> User Token Scopes):

  • search:read - search messages and files (preferred method)
  • users:read - look up users (required for users.list)
  • users:read.email - access email addresses in user profiles (optional)
  • im:history, im:read - read DMs
  • im:write, chat:write - send messages
  • channels:history, channels:read - read channels (optional)
  • files:read - download files
  • files:write - upload files

Python Slack SDK Client

A reusable client module is available at ~/.claude/skills/slack/scripts/slack_client.py.

CLI Usage

# Test authentication
python ~/.claude/skills/slack/scripts/slack_client.py auth

# Search messages
python ~/.claude/skills/slack/scripts/slack_client.py search "from:me to:username" --count 5

# List users
python ~/.claude/skills/slack/scripts/slack_client.py users

# Find a user by name
python ~/.claude/skills/slack/scripts/slack_client.py find-user "Alice"

# List conversations (DMs)
python ~/.claude/skills/slack/scripts/slack_client.py conversations --types im

# Get DM channel with user
python ~/.claude/skills/slack/scripts/slack_client.py dm-channel U12345

# Read messages from channel
python ~/.claude/skills/slack/scripts/slack_client.py read D67890 --limit 10

# Send a message
python ~/.claude/skills/slack/scripts/slack_client.py send D67890 "Hello there!"

Module Usage (inline Python)

import sys
sys.path.insert(0, str(Path.home() / ".claude/skills/slack/scripts"))
from slack_client import (
    test_auth, search_messages, list_users, find_user,
    get_dm_channel, read_messages, send_message,
    get_file_info, download_file, upload_file
)

# Test auth
auth = test_auth()
print(f"Authenticated as {auth['user']}")

# Search messages
messages = search_messages("from:me to:alice", count=5)
for msg in messages:
    print(f"{msg['ts']}: {msg['text']}")

# Find user and send message
user = find_user("Alice")
if user:
    channel = get_dm_channel(user['id'])
    result = send_message(channel, "Hello Alice!")
    print(f"Sent message: {result['ts']}")

Read the full file on GitHub · 159 lines

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. 8d ago First seen · 159 lines · 36 tokens per session scan A 27be272b9a67

Subscribe to this mod's changes

slack is a skill published in the GitHub repository sepehr500/skills (2 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 1,221 once invoked, about $0.0002 per session on Opus 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-31.