Agent skill

Slack Messaging

by haojing8312 in haojing8312/WorkClaw

A skill your agent uses when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line.

Apache-2.0Auto-check passedProductivity & Automation

Install Slack Messaging

skills CLI
$ npx skills add haojing8312/WorkClaw --skill slack-messaging -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install haojing8312/WorkClaw slack-messaging --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/haojing8312/WorkClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/slack-messaging .claude/skills/slack-messaging && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
slack-messaging
GitHub stars
141
Token cost
~897 tokens
SKILL.md length
204 words
Files
2 (incl. scripts)
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line.

  • Read Slack messages
  • SKILL.md covers Installation, Authentication, Finding Channels and Sending Messages, plus 5 more sections
  • Calls curl and jq; reaches github.com and workspace-one.slack.com
  • Check Slack channels

What it does

Slack Messaging is an agent skill from haojing8312/WorkClaw. Use when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts.

It sits in Productivity & Automation, covering Messaging and chat bots. It works with Slack and macOS. The licence is Apache-2.0.

When your agent uses it

  • Read Slack messages
  • Check Slack channels
  • Test Slack integrations
  • Interact with a Slack workspace from the command line

Example prompts

  • “/slack-messaging”

Requirements

  • Pre-approved tools (allowed-tools): Bash(slackcli:*, curl:*)

What it can do on your machine

Read from SKILL.md and the folder at commit 81ae074. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(slackcli:*
    • curl:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com
    • workspace-one.slack.com
    • workspace-two.slack.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Slack Messaging loads about 897 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 204 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~897

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from haojing8312/WorkClaw at commit 81ae074, republished under its Apache-2.0 licence (© haojing8312). 204 words, ~897 tokens.

Download SKILL.mdSave it as .claude/skills/slack-messaging/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
slack-messaging
description
Use when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line.
allowed-tools
Bash(slackcli:*, curl:*)
user-invocable
false

Slack Messaging via slackcli

Send and read Slack messages from the command line using slackcli (shaharia-lab/slackcli).

Installation

Download the binary:

bash
curl -sL -o /usr/local/bin/slackcli \
  "https://github.com/shaharia-lab/slackcli/releases/download/v0.1.1/slackcli-linux"
chmod +x /usr/local/bin/slackcli

macOS (Intel): replace slackcli-linux with slackcli-macos macOS (Apple Silicon): replace with slackcli-macos-arm64

Authentication

slackcli uses browser session tokens (xoxc + xoxd) - no Slack app creation required.

Interactive Setup
bash
./scripts/extract-tokens <workspace-url>

This walks the user through extracting tokens from browser DevTools.

Manual Setup
bash
slackcli auth login-browser \
  --xoxd="xoxd-..." \
  --xoxc="xoxc-..." \
  --workspace-url=https://your-workspace.slack.com
Verify Auth
bash
slackcli auth list

Finding Channels

Use slackcli conversations list to discover channels and their IDs:

bash
# List all channels
slackcli conversations list

# Filter output
slackcli conversations list | grep -i "channel-name"

Sending Messages

bash
# Send to a channel (use channel ID from conversations list)
slackcli messages send --recipient-id=C0XXXXXXXX --message="Hello from CLI"

# Send to a DM (use user's DM channel ID)
slackcli messages send --recipient-id=D0XXXXXXXX --message="Hey"

# Reply in a thread
slackcli messages send --recipient-id=C0XXXXXXXX --message="Thread reply" --thread-ts=1769756026.624319

The --recipient-id is always a channel ID (C...) or DM channel ID (D...).

Reading Messages

bash
# Read last N messages from a channel
slackcli conversations read C0XXXXXXXX --limit=10

# Read as JSON (for parsing)
slackcli conversations read C0XXXXXXXX --limit=10 --json

# Read a thread
slackcli conversations read C0XXXXXXXX --thread-ts=1769756026.624319

Listing Channels

bash
slackcli conversations list

Returns all public channels, private channels, and DMs with their IDs.

Testing Slack Integrations

To verify a bot or integration posted a message correctly:

bash
# Read the channel, check for the expected message
slackcli conversations read CHANNEL_ID --limit=5 --json | jq '.messages[] | select(.text | contains("expected text"))'

To send a test message and verify the round-trip:

bash
# Send
slackcli messages send --recipient-id=CHANNEL_ID --message="integration test $(date +%s)"

# Read back
slackcli conversations read CHANNEL_ID --limit=1 --json

Multiple Workspaces

slackcli supports multiple workspaces. Run the auth flow for each workspace you need:

bash
# Add first workspace
./scripts/extract-tokens https://workspace-one.slack.com

# Add second workspace
./scripts/extract-tokens https://workspace-two.slack.com

# List all authenticated workspaces
slackcli auth list

When sending messages, slackcli automatically routes to the correct workspace based on the channel ID.

Token Notes

  • Browser tokens (xoxc/xoxd) act as the logged-in user, not a bot
  • Messages sent appear as the user, not an app
  • Tokens expire when the user logs out of the browser session
  • To refresh: re-extract tokens from a logged-in browser session
  • All workspace credentials are stored at ~/.config/slackcli/workspaces.json

© haojing8312, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .claude/skills/slack-messaging of haojing8312/WorkClaw.

  • SKILL.md
  • scripts/extract-tokens

Open the folder on GitHubat commit 81ae074

Compare with similar skills

Slack Messaging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Slack Messaging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Slack Messaging this skillhaojing8312/WorkClaw141—~897Automated safety check: PassApache-2.0
Slackhuangruiteng/CS-Notes4k10 repos~578Automated safety check: PassMIT
Message Push0xranx/golembot323—~984Automated safety check: PassMIT
Imsggeezerrrr/motive1158 repos~273Automated safety check: PassMIT
ImessageRedWoodOG/Hermes-Desktop1774 repos~606Automated safety check: PassMIT
Prismer ImessagePrismer-AI/PrismerCloud1.6k—~962Automated safety check: PassMIT

Similar skills

  • Slack

    huangruiteng/CS-Notes

    A skill your agent uses 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.

    4k GitHub starsUsed in 10 repos~578 tokens
    Productivity & AutomationAuto-check passed
  • Message Push

    0xranx/golembot

    Send proactive messages to IM groups or individual users via the gateway Send API.

    323 GitHub stars~984 tokensUpdated 10 days ago
    Productivity & AutomationAuto-check passed
  • Imsg

    geezerrrr/motive

    iMessage/SMS CLI for listing chats, history, watch, and sending.

    115 GitHub starsUsed in 8 repos~273 tokens
    Productivity & AutomationAuto-check passed
  • Imessage

    RedWoodOG/Hermes-Desktop

    Send and receive iMessages/SMS via the imsg CLI on macOS. An agent skill from RedWoodOG/Hermes-Desktop.

    177 GitHub starsUsed in 4 repos~606 tokens
    Productivity & AutomationAuto-check passed
  • Prismer Imessage

    Prismer-AI/PrismerCloud

    Send and receive iMessages/SMS via the imsg CLI on macOS. An agent skill from Prismer-AI/PrismerCloud.

    1.6k GitHub stars~962 tokensUpdated 9 days ago
    Productivity & AutomationAuto-check passed
  • Icloud Pp CLI

    mvanhorn/printing-press-library

    Query your Apple iCloud data from the command line — Photos library storage analysis, iMessage history search and export, largest-file finder, and delete via AppleScript.

    2.1k GitHub stars~1.9k tokensUpdated today
    Productivity & AutomationAuto-check: notes

More from haojing8312/WorkClaw

All 14 skills in this repo
  • Design Style Skill

    haojing8312/WorkClaw

    Select a consistent visual design system for PPT slides using radius/spacing style recipes.

    141 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Ppt Editing Skill

    haojing8312/WorkClaw

    Edit existing PowerPoint files or templates with XML-safe workflows.

    141 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Slide Making Skill

    haojing8312/WorkClaw

    Implement single-slide PowerPoint pages with PptxGenJS. An agent skill from haojing8312/WorkClaw.

    141 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Workclaw Change Verification

    haojing8312/WorkClaw

    A skill your agent uses when changes affect runtime code, tests, skill assets, or build and test behavior in WorkClaw and verification is required before claiming completion.

    141 GitHub stars~555 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when changing runtime behavior, routing, provider integration, tool permissions, sidecar protocols, or vendor sync boundaries in WorkClaw before editing code.

    141 GitHub stars~575 tokensUpdated 4 mo ago
    Auto-check passed
  • Workclaw Release Prep

    haojing8312/WorkClaw

    A skill your agent uses when preparing a WorkClaw desktop release and you need AI to recommend the next version number, summarize changes since the last tag, and draft bilingual Chinese plus English…

    141 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Slack Messaging

What does Slack Messaging do?

A skill your agent uses when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line. Slack Messaging is an agent skill from haojing8312/WorkClaw. Use when asked to send or read Slack messages, check Slack channels, test Slack integrations, or interact with a Slack workspace from the command line.

When should I use Slack Messaging?

Slack Messaging fits situations like: read Slack messages; check Slack channels; test Slack integrations; interact with a Slack workspace from the command line.

How do I install Slack Messaging in Claude Code?

Run `npx skills add haojing8312/WorkClaw --skill slack-messaging -a claude-code`. Or copy the skill folder (.claude/skills/slack-messaging in haojing8312/WorkClaw) into .claude/skills/slack-messaging in your project. Claude Code loads it when a task matches its description.

How do I install Slack Messaging in Codex?

Run `npx skills add haojing8312/WorkClaw --skill slack-messaging -a codex`. Or copy the skill folder (.claude/skills/slack-messaging in haojing8312/WorkClaw) into .agents/skills/slack-messaging in your project. Codex loads it when a task matches its description.

Can I use Slack Messaging in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add haojing8312/WorkClaw --skill slack-messaging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/slack-messaging, .gemini/skills/slack-messaging, .github/skills/slack-messaging and .opencode/skills/slack-messaging in your project.

What does Slack Messaging need to run?

Going by SKILL.md and its folder, Slack Messaging needs the command-line tools its instructions call (curl and jq). Its frontmatter pre-approves these tools: Bash(slackcli:*, curl:*).

Does Slack Messaging access the network?

SKILL.md names 3 domains. In commands or code: github.com, workspace-one.slack.com and workspace-two.slack.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Slack Messaging safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Slack Messaging use?

Slack Messaging is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Slack Messaging use?

About 897 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Slack Messaging?

Skills that share tags, products or a category with Slack Messaging: Slack (huangruiteng/CS-Notes, 4k stars), Message Push (0xranx/golembot, 323 stars), Imsg (geezerrrr/motive, 115 stars) and Imessage (RedWoodOG/Hermes-Desktop, 177 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Slack Messaging?

haojing8312 (a GitHub user) maintains it in haojing8312/WorkClaw, which has 141 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on May 27, 2026.

Source: haojing8312/WorkClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.