From 2879b318f962d3d850c65c65ad9f65e7e565b299 Mon Sep 17 00:00:00 2001 From: zlei9 Date: Sun, 22 Mar 2026 11:43:49 +0800 Subject: [PATCH] Initial commit: slack skill --- SKILL.md | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++ _meta.json | 6 +++ 2 files changed, 149 insertions(+) create mode 100644 SKILL.md create mode 100644 _meta.json diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..df04f85 --- /dev/null +++ b/SKILL.md @@ -0,0 +1,143 @@ +--- +name: slack +description: Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs. +--- + +# 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 Clawdbot. + +## 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:` or `user:`) and `content`. + +Message context lines include `slack message id` and `channel` fields you can reuse directly. + +## Actions + +### Action groups + +| Action group | Default | Notes | +| --- | --- | --- | +| reactions | enabled | React + list reactions | +| messages | enabled | Read/send/edit/delete | +| pins | enabled | Pin/unpin/list | +| memberInfo | enabled | Member info | +| emojiList | enabled | Custom 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 Clawdbot" +} +``` + +### 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. diff --git a/_meta.json b/_meta.json new file mode 100644 index 0000000..f42ad71 --- /dev/null +++ b/_meta.json @@ -0,0 +1,6 @@ +{ + "ownerId": "kn70pywhg0fyz996kpa8xj89s57yhv26", + "slug": "slack", + "version": "1.0.0", + "publishedAt": 1767545378002 +} \ No newline at end of file