slack

slack is a skill for Claude Code, Codex from drn/dots. It costs 33 tokens per session (1,012 once invoked), scanned A, original, MIT.

A read-only tool for searching Slack messages, reading channel history and threads, and looking up users.

In plain words
What is it for?
Use it to search messages, inspect channels and threads, and retrieve user information.
Why use it?
It lets you find relevant team conversations and people without manually browsing every channel.

Skill for Claude CodeCodex

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

Good fit Use it to search messages, inspect channels and threads, and retrieve user…

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drn/dots/slack.svg)](https://agentmods.dev/skills/drn/dots/slack)
Your own site
<a href="https://agentmods.dev/skills/drn/dots/slack"><img src="https://agentmods.dev/badge/skills/drn/dots/slack.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,012 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.00033 $0.01012
Opus 5 $0.00016 $0.00506
Sonnet 5 $0.00007 $0.00202
Haiku 4.5 $0.00003 $0.00101

Measured 3d ago against content hash 33780b898f90, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 3d ago.

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.

agents/skills/slack/SKILL.md · 125 lines

How it starts

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

Slack (Read-Only)

Query Slack channels, search messages, and fetch user information using the slack CLI.

Instructions

You are helping query Slack data. Auth is handled via environment variables loaded from ~/.dots/sys/env:

  • SLACK_XOXP_TOKEN — user token for search, history, thread, dms
  • SLACK_XOXB_TOKEN — bot token for channels, users

Operations

# Test authentication
slack auth-test

# Channel operations
slack channels                                # List all channels
slack find-channel releases                   # Find channel by name

# Message history
slack history C04M5PG7P7T                     # By channel ID
slack history releases --limit 50             # By name, limit 50
slack history releases --days 7               # Last 7 days

# Thread replies
slack thread C04M5PG7P7T 1234567890.123456

# Search messages
slack search "deployment failed"              # Full search
slack search "urgent" --days 1                # Last 24 hours
slack search "from:@darren" --days 7 --full   # Full message text

# User operations
slack users                                   # List all users
slack find-user darren                        # Find by name

# DMs
slack dms                                     # List DM conversations

# JSON output (for programmatic use)
slack channels --json

Common Tasks

Get recent channel history
slack history releases --days 7
Search for mentions of a topic
slack search "outage" --days 7
Find who posted about something
slack search "from:@darren deployment" --days 30
Get activity from a specific person
# First find their user ID
slack find-user "john"
# Then search their messages
slack search "from:@john" --days 7
Full-Text Search

By default, search truncates messages to 200 chars. Use --full for complete message text:

slack search "from:@aaron" --days 7 --full

Token Types & Required Scopes

Token Env Var Used For
User (xoxp) SLACK_XOXP_TOKEN search, dms, history, thread
Bot (xoxb) SLACK_XOXB_TOKEN channels, users, find-user, find-channel

Read the full file on GitHub · 125 lines

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. 3d ago First seen · 125 lines · 33 tokens per session scan A 33780b898f90

Subscribe to this mod's changes

slack is a skill published in the GitHub repository drn/dots (23 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 1,012 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-09-03.