{"slug":"slack","title":"slack","summary":"Operate Slack workspaces from a terminal or agent: list channels, read messages, follow threads, search message history, list files, and verify inbound webhook signatures — with a bundled slack-cli script that is read-only by default and gates every send behind a --dry-run/--yes ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-12T11:15:00.178428Z","repo":{"url":"https://github.com/magnus919/agent-skills","stars":182,"forks":21,"license":"MIT","updatedAt":"2026-11-20T20:39:36Z"},"bodyHtml":"<h1>Slack — Read and Post to Slack from the Terminal</h1>\n<p>Operate a Slack workspace without leaving your terminal or your agent's tool loop: list channels, read messages, follow threads, search history, find files, and verify that inbound webhook events are authentic.</p>\n<h2>Why Install This Skill</h2>\n<p>Most agents have no way to answer the basic question \"what did the team say about X in Slack?\" — so they guess, or you paste screenshots. This skill gives your agent a real, bounded read path into a workspace (channels, messages, threads, search, files) plus a safe write path: sending a message is a guarded mutation that requires a preview and an explicit confirmation, so the agent can triage and answer without ever posting by accident.</p>\n<p>It ships <code>slack-cli</code>, a small Python script that speaks the Slack Web API with no third-party dependencies. Reads are capped (<code>--limit</code>), output is clean JSON for the agent or readable text for you, and <code>--help</code> works with no token and no network. Webhook verification is built in: any event endpoint can prove a request really came from Slack using the standard HMAC-SHA256 signature check.</p>\n<h2>What You Get</h2>\n<table>\n<thead>\n<tr>\n<th>Directory</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>SKILL.md</code></td>\n<td>Agent-facing operating contract, mutation gates, and verification boundaries</td>\n</tr>\n<tr>\n<td><code>references/</code></td>\n<td>Dated source index and a web API operations reference (methods, scopes, pagination, webhook verification)</td>\n</tr>\n<tr>\n<td><code>scripts/slack-cli</code></td>\n<td>Bounded, stdlib-only CLI: channels, messages, threads, search, files, webhook verify; <code>--json</code>, <code>--limit</code>, sends gated by <code>--dry-run</code>/<code>--yes</code></td>\n</tr>\n<tr>\n<td><code>tests/</code></td>\n<td>16 deterministic tests against a stub Slack API, covering the mutation gate and read-only contract</td>\n</tr>\n<tr>\n<td><code>evals/evals.json</code></td>\n<td>Six output-quality evaluation cases for agent runs</td>\n</tr>\n</tbody>\n</table>\n<h2>Quick Start</h2>\n<pre><code># Help works with no token and no network\nslack/scripts/slack-cli --help\n\n# Find the channel ID from a name (reads are capped at --limit)\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli --json --limit 10 channels list\n\n# Read the latest messages in a channel\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli --json messages list --channel C12345\n\n# Follow a thread (parent ts from the message list)\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli --json threads list --channel C12345 --ts 1712345678.000001\n\n# Search history, bounded\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli --json search messages --query \"incident\"\n\n# Send only with a preview first, then explicit confirmation\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli messages send --channel C12345 --text \"on it\" --dry-run\nSLACK_TOKEN=xoxb-... slack/scripts/slack-cli messages send --channel C12345 --text \"on it\" --yes\n\n# Verify an inbound webhook before trusting it\nslack/scripts/slack-cli webhook verify --body-file body.json --signature \"v0=...\" --timestamp 1712345678\n</code></pre>\n<h2>Triggers</h2>\n<p>Load this skill for <code>slack</code> operations: \"what was said in #channel\", reading or listing messages and channels, following or summarizing threads, searching Slack history, finding shared files, posting a message or thread reply (with confirmation), and verifying <code>X-Slack-Signature</code> webhook events. Do not load it for building Slack apps or bots, workspace administration (user provisioning, org settings), or other chat platforms like Discord or Teams.</p>\n<h2>Requirements</h2>\n<ul>\n<li>Python 3.9+ for <code>slack-cli</code> (stdlib only; <code>--help</code> and webhook verification need nothing else).</li>\n<li>A Slack bot or user token (<code>SLACK_TOKEN</code>) with the scopes the read needs: <code>channels:read</code>, <code>channels:history</code>, <code>groups:read</code>, <code>groups:history</code>, <code>search:read</code>, <code>files:read</code>, and <code>chat:write</code> for sending. For <code>webhook verify</code>, the app signing secret (<code>SLACK_WEBHOOK_SECRET</code>).</li>\n<li>Network access to <code>api.slack.com</code> for live reads and sends.</li>\n</ul>\n","files":[{"path":"evals/evals.json","sizeBytes":6028,"isText":true},{"path":"README.md","sizeBytes":3732,"isText":true},{"path":"references/00-source-index.md","sizeBytes":1259,"isText":true},{"path":"references/01-web-api-operations.md","sizeBytes":3783,"isText":true},{"path":"scripts/slack-cli","sizeBytes":16900,"isText":false},{"path":"SKILL.md","sizeBytes":9554,"isText":true},{"path":"tests/test_slack_cli.py","sizeBytes":11235,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-12T11:15:57.990032Z","sha256":"B356DC9707170C52D001EC1C09153E4158BCA36F129689A1CBD1F5A07FDF2554","sizeBytes":18445},"review":null,"source":{"repositoryUrl":"https://github.com/magnus919/agent-skills","path":"slack","license":"MIT","commit":"ade3385468d8211c6263b082acc059a5c84ad55f","subtreeSha":"F0646B9BBAE75AC67E7F057D6C5557B32C0D9747AD9B1577EB642C5F76548E42","lastSyncedAt":"2026-11-20T20:45:57.39838Z"},"reviewedAt":"2026-09-12T11:17:32.649504Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/magnus919/agent-skills/tree/main/slack"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/magnus919/agent-skills.git"}]}