slack

Retrieve Slack channel messages, thread conversations, and messages from links via bot token.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/treenod-IDQ/treenod-market --skill slack-treenod-idq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slack
Source: https://github.com/treenod-IDQ/treenod-market/tree/main/plugins/util/skills/slack
Command: npx skills add https://github.com/treenod-IDQ/treenod-market --skill slack-treenod-idq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Slack messages across channels and threads are scattered across interfaces; this skill centralizes retrieval and formatting using a bot token to fetch recent messages, entire threads, or messages from a specific link, saving time and reducing context-switching.

Core Features & Use Cases

  • Read channel messages by ID or auto-detect input with a single command.
  • Retrieve all messages within a thread, including parent context.
  • Read messages starting from a specific message link and continue forward.
  • Use cases: quickly audit channel conversations, summarize thread discussions, or reproduce a conversation for reporting.

Quick Start

Run uv run --no-project --with requests python scripts/slack_api.py read G4CDARPJ7 to fetch the latest messages.

Frequently Asked Questions about slack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve Slack channel history using a bot token?

Retrieve Slack channel history by executing the Python script with the read command and channel ID, using the configured SLACK_BOT_TOKEN environment variable to authenticate API calls. This fetches the latest messages from channels where the bot is invited.

Can I fetch Slack thread replies starting from a specific message permalink?

Yes, you can fetch Slack thread replies from a specific message permalink. The script parses the link, retrieves the parent message context, and continues forward to retrieve all subsequent thread conversation replies using the bot token.

What Slack bot token scopes are required to read messages from private channels?

Reading messages from private channels requires the SLACK_BOT_TOKEN environment variable and configured Slack scopes. The bot must be explicitly invited to both public and private channels to successfully retrieve channel history and thread conversations.

Do I need to install Python requests to read Slack messages?

Yes, the requests dependency is required to read Slack messages. You can execute the script using uv run --no-project --with requests to automatically manage the environment and handle the API calls to Slack.

Why does my Slack bot token fail to read messages from a channel?

A Slack bot token fails to read messages if the required Slack scopes are not configured or the bot is not explicitly invited to the target channel. Both public and private channels require prior bot invitation for successful message retrieval.