Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

slack-automationSlack 自动化

Agent Skill

用于处理 Slack 工作区里的频道、消息、线程、用户和通知信息。它适合让 Agent 查询团队沟通记录、整理上下文、回复线程或辅助协作提醒。使用时需要确认机器人或用户 token 是否具备目标频道访问权,私有频道和历史消息通常有额外权限限制;发送消息、@成员或批量读取对话时,应避免泄露内部讨论和敏感工作信息。

总安装

569

周安装

23

GitHub Stars

52

下载量

178
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slack-automation(Slack 自动化)
来源仓库:https://github.com/aaaaqwq/claude-code-skills
仓库路径:skills/slack-automation
安装命令:
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill slack-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill slack-automation

简介

用于自动化 Slack 工作流,如定时提醒、事件触发通知等。

  • 适合提升团队协作效率,减少重复性人工干预操作。slack-automation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 GitHub 安装,兼容多种 Agent 宿主平台。
  • 需设置可靠的身份认证并限定执行范围,避免误发消息或越权操作。
  • 推荐结合具体用例测试自动化逻辑的准确性与稳定性。

SKILL.md

Slack Automation via Rube MCP

Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Slack connection via RUBE_MANAGE_CONNECTIONS with toolkit slack
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit slack
  3. If connection is not ACTIVE, follow the returned auth link to complete Slack OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Send Messages to Channels

When to use: User wants to post a message to a Slack channel or DM

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel name to channel ID [Prerequisite]
  2. SLACK_LIST_ALL_CHANNELS - Fallback if FIND_CHANNELS returns empty/ambiguous results [Fallback]
  3. SLACK_FIND_USERS - Resolve user for DMs or @mentions [Optional]
  4. SLACK_OPEN_DM - Open/reuse a DM channel if messaging a user directly [Optional]
  5. SLACK_SEND_MESSAGE - Post the message with resolved channel ID [Required]
  6. SLACK_UPDATES_A_SLACK_MESSAGE - Edit the posted message if corrections needed [Optional]

Key parameters:

  • channel: Channel ID or name (without '#' prefix)
  • markdown_text: Preferred field for formatted messages (supports headers, bold, italic, code blocks)
  • text: Raw text fallback (deprecated in favor of markdown_text)
  • thread_ts: Timestamp of parent message to reply in a thread
  • blocks: Block Kit layout blocks (deprecated, use markdown_text)

Pitfalls:

  • SLACK_FIND_CHANNELS requires query param; missing it errors with "Invalid request data provided"
  • SLACK_SEND_MESSAGE requires valid channel plus one of markdown_text/text/blocks/attachments
  • Invalid block payloads return error=invalid_blocks (max 50 blocks)
  • Replies become top-level posts if thread_ts is omitted
  • Persist response.data.channel and response.data.message.ts from SEND_MESSAGE for edit/thread operations

2. Search Messages and Conversations

When to use: User wants to find specific messages across the workspace

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel for scoped search with in:#channel [Optional]
  2. SLACK_FIND_USERS - Resolve user for author filter with from:@user [Optional]
  3. SLACK_SEARCH_MESSAGES - Run keyword search across accessible conversations [Required]
  4. SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION - Expand threads for relevant hits [Required]

Key parameters:

  • query: Search string supporting modifiers (in:#channel, from:@user, before:YYYY-MM-DD, after:YYYY-MM-DD, has:link, has:file)
  • count: Results per page (max 100), or total with auto_paginate=true
  • sort: 'score' (relevance) or 'timestamp' (chronological)
  • sort_dir: 'asc' or 'desc'

Pitfalls:

  • Validation fails if query is missing/empty
  • ok=true can still mean no hits (response.data.messages.total=0)
  • Matches are under response.data.messages.matches (sometimes also response.data_preview.messages.matches)
  • match.text may be empty/truncated; key info can appear in matches[].attachments[]
  • Thread expansion via FETCH_MESSAGE_THREAD can truncate when response.data.has_more=true; paginate via response_metadata.next_cursor

3. Manage Channels and Users

When to use: User wants to list channels, users, or workspace info

Tool sequence:

  1. SLACK_FETCH_TEAM_INFO - Validate connectivity and get workspace identity [Required]
  2. SLACK_LIST_ALL_CHANNELS - Enumerate public channels [Required]
  3. SLACK_LIST_CONVERSATIONS - Include private channels and DMs [Optional]
  4. SLACK_LIST_ALL_USERS - List workspace members [Required]
  5. SLACK_RETRIEVE_CONVERSATION_INFORMATION - Get detailed channel metadata [Optional]
  6. SLACK_LIST_USER_GROUPS_FOR_TEAM_WITH_OPTIONS - List user groups [Optional]

Key parameters:

  • cursor: Pagination cursor from response_metadata.next_cursor
  • limit: Results per page (default varies; set explicitly for large workspaces)
  • types: Channel types filter ('public_channel', 'private_channel', 'im', 'mpim')

Pitfalls:

  • Workspace metadata is nested under response.data.team, not top-level
  • SLACK_LIST_ALL_CHANNELS returns public channels only; use SLACK_LIST_CONVERSATIONS for private/IM coverage
  • SLACK_LIST_ALL_USERS can hit HTTP 429 rate limits; honor Retry-After header
  • Always paginate via response_metadata.next_cursor until empty; de-duplicate by id

4. React to and Thread Messages

When to use: User wants to add reactions or manage threaded conversations

Tool sequence:

  1. SLACK_SEARCH_MESSAGES or SLACK_FETCH_CONVERSATION_HISTORY - Find the target message [Prerequisite]
  2. SLACK_ADD_REACTION_TO_AN_ITEM - Add an emoji reaction [Required]
  3. SLACK_FETCH_ITEM_REACTIONS - List reactions on a message [Optional]
  4. SLACK_REMOVE_REACTION_FROM_ITEM - Remove a reaction [Optional]
  5. SLACK_SEND_MESSAGE - Reply in thread using thread_ts [Optional]
  6. SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION - Read full thread [Optional]

Key parameters:

  • channel: Channel ID where the message lives
  • timestamp / ts: Message timestamp (unique identifier like '1234567890.123456')
  • name: Emoji name without colons (e.g., 'thumbsup', 'wave::skin-tone-3')
  • thread_ts: Parent message timestamp for threaded replies

Pitfalls:

  • Reactions require exact channel ID + message timestamp pair
  • Emoji names use Slack's naming convention without colons
  • SLACK_FETCH_CONVERSATION_HISTORY only returns main channel timeline, NOT threaded replies
  • Use SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION with parent's thread_ts to get thread replies

5. Schedule Messages

When to use: User wants to schedule a message for future delivery

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel ID [Prerequisite]
  2. SLACK_SCHEDULE_MESSAGE - Schedule the message with post_at timestamp [Required]

Key parameters:

  • channel: Resolved channel ID
  • post_at: Unix timestamp for delivery (up to 120 days in advance)
  • text / blocks: Message content

Pitfalls:

  • Scheduling is limited to 120 days in advance
  • post_at must be a Unix timestamp, not ISO 8601

Common Patterns

ID Resolution

Always resolve display names to IDs before operations:

  • Channel name -> Channel ID: SLACK_FIND_CHANNELS with query param
  • User name -> User ID: SLACK_FIND_USERS with search_query or email
  • DM channel: SLACK_OPEN_DM with resolved user IDs

Pagination

Most list endpoints use cursor-based pagination:

  • Follow response_metadata.next_cursor until empty
  • Set explicit limit values (e.g., 100-200) for reliable paging
  • De-duplicate results by id across pages

Message Formatting

  • Prefer markdown_text over text or blocks for formatted messages
  • Use <@USER_ID> format to mention users (not @username)
  • Use \n for line breaks in markdown_text

Known Pitfalls

  • Channel resolution: SLACK_FIND_CHANNELS can return empty results if channel is private and bot hasn't been invited
  • Rate limits: SLACK_LIST_ALL_USERS and other list endpoints can hit HTTP 429; honor Retry-After header
  • Nested responses: Results may be nested under response.data.results[0].response.data in wrapped executions
  • Thread vs channel: SLACK_FETCH_CONVERSATION_HISTORY returns main timeline only; use SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION for thread replies
  • Message editing: Requires both channel and original message ts; persist these from SEND_MESSAGE response
  • Search delays: Recently posted messages may not appear in search results immediately
  • Scope limitations: Missing OAuth scopes can cause 403 errors; check with SLACK_GET_APP_PERMISSION_SCOPES

Quick Reference

TaskTool SlugKey Params
Find channelsSLACK_FIND_CHANNELSquery
List all channelsSLACK_LIST_ALL_CHANNELSlimit, cursor, types
Send messageSLACK_SEND_MESSAGEchannel, markdown_text
Edit messageSLACK_UPDATES_A_SLACK_MESSAGEchannel, ts, markdown_text
Search messagesSLACK_SEARCH_MESSAGESquery, count, sort
Get threadSLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATIONchannel, ts
Add reactionSLACK_ADD_REACTION_TO_AN_ITEMchannel, name, timestamp
Find usersSLACK_FIND_USERSsearch_query or email
List usersSLACK_LIST_ALL_USERSlimit, cursor
Open DMSLACK_OPEN_DMuser IDs
Schedule messageSLACK_SCHEDULE_MESSAGEchannel, post_at, text
Get channel infoSLACK_RETRIEVE_CONVERSATION_INFORMATIONchannel ID
Channel historySLACK_FETCH_CONVERSATION_HISTORYchannel, oldest, latest
Workspace infoSLACK_FETCH_TEAM_INFO(none)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.27%
按下载量换算57

Claude

31.75%
按下载量换算57

Cursor

20.57%
按下载量换算37

Gemini CLI

10.22%
按下载量换算18

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills