AgentSkillsCN

slack

当您需要通过slack工具从i-clavdivs控制Slack时使用此功能,包括对消息添加反应,或在Slack频道或私聊中置顶/取消置顶项目。

SKILL.md
--- frontmatter
name: slack
description: Use when you need to control Slack from i-clavdivs via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
metadata: { 'i-clavdivs': { 'emoji': '💬', 'requires': { 'config': ['channels.slack'] } } }

Slack Actions

Overview

Use slack to react, manage pins, send/edit/delete messages, and fetch member info. The tool uses the bot token configured for i-clavdivs.

Inputs to collect

  • channelId and messageId (Slack message timestamp, e.g. 1712023032.1234).
  • For reactions, an emoji (Unicode or :name:).
  • For message sends, a to target (channel:<id> or user:<id>) and content.

Message context lines include slack message id and channel fields you can reuse directly.

Actions

Action groups

Action groupDefaultNotes
reactionsenabledReact + list reactions
messagesenabledRead/send/edit/delete
pinsenabledPin/unpin/list
memberInfoenabledMember info
emojiListenabledCustom emoji list

React to a message

json
{
    "action": "react",
    "channelId": "C123",
    "messageId": "1712023032.1234",
    "emoji": "✅"
}

List reactions

json
{
    "action": "reactions",
    "channelId": "C123",
    "messageId": "1712023032.1234"
}

Send a message

json
{
    "action": "sendMessage",
    "to": "channel:C123",
    "content": "Hello from i-clavdivs"
}

Edit a message

json
{
    "action": "editMessage",
    "channelId": "C123",
    "messageId": "1712023032.1234",
    "content": "Updated text"
}

Delete a message

json
{
    "action": "deleteMessage",
    "channelId": "C123",
    "messageId": "1712023032.1234"
}

Read recent messages

json
{
    "action": "readMessages",
    "channelId": "C123",
    "limit": 20
}

Pin a message

json
{
    "action": "pinMessage",
    "channelId": "C123",
    "messageId": "1712023032.1234"
}

Unpin a message

json
{
    "action": "unpinMessage",
    "channelId": "C123",
    "messageId": "1712023032.1234"
}

List pinned items

json
{
    "action": "listPins",
    "channelId": "C123"
}

Member info

json
{
    "action": "memberInfo",
    "userId": "U123"
}

Emoji list

json
{
    "action": "emojiList"
}

Ideas to try

  • React with ✅ to mark completed tasks.
  • Pin key decisions or weekly status updates.