slack-web
Skill274 starsChanged 8 months agoMITView on GitHub
Slack web automation via agent-browser. Use when the user asks to check Slack, read messages, send messages, reply in threads, search Slack, check notifications, react to messages, send DMs, or any Slack communication task. Triggers include "check my Slack", "send a message on Slack", "reply to that Slack thread", "search Slack for...", "what's new on Slack", "read my DMs", "react to that message", "check Slack notifications", "message [person] on Slack".
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- autoresearchSkill
- building-native-uiSkill
- expo-api-routesSkill
- expo-cicd-workflowsSkill
- expo-deploymentSkill
- expo-dev-clientSkill
- expo-tailwind-setupSkill
- expo-ui-jetpack-composeSkill
- expo-ui-swift-uiSkill
- just-bashSkill
- nano-bananaSkill
- native-data-fetchingSkill
- qa-device-managementSkill
- qa-scrollSkill
- qa-setupSkill
- qa-state-persistenceSkill
- qa-test-flowsSkill
- qa-webSkill
- upgrading-expoSkill
- use-domSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Every Slack interaction follows this pattern:
- Distinctive: line 24
Interact: Use refs to click, type, navigate
- Distinctive: line 25
Re-snapshot: After every action — Slack's DOM changes constantly
- Very specific: line 105
Use type not fill — Slack's compose box is contenteditable.
- Distinctive: line 187
ALWAYS re-snapshot: after every action — refs invalidate constantly
- Distinctive: line 197
When refs don't match:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Slack Web Automation
Interact with Slack through its web interface using agent-browser.
Core Workflow
Every Slack interaction follows this pattern:
- Restore session:
agent-browser state load ~/.slack-auth-state.json - Open Slack:
agent-browser --headed open "https://app.slack.com" - Snapshot:
agent-browser snapshot -i -c(get refs) - Interact: Use refs to click, type, navigate
- Re-snapshot: After every action — Slack's DOM changes constantly
# Restore and open
agent-browser state load ~/.slack-auth-state.json
agent-browser --headed open "https://app.slack.com"
agent-browser wait --load networkidle
agent-browser set viewport 1920 1080
# Verify logged in (URL should contain /client/)
agent-browser get url
# Navigate with quick switcher
agent-browser press "Meta+k"
agent-browser wait 500
agent-browser snapshot -i
agent-browser fill @eXX "general"
agent-browser wait 1000
agent-browser snapshot -i
agent-browser click @eXX
agent-browser wait --load networkidle
# Read messages
agent-browser snapshot -cAuthentication
First-Time Login (Manual)
agent-browser --headed open "https://app.slack.com"
# PAUSE — tell user to log in manually
# After login confirmed:
agent-browser get url # verify /client/ in URL
agent-browser state save ~/.slack-auth-state.jsonRestore Session
agent-browser state load ~/.slack-auth-state.json
agent-browser --headed open "https://app.slack.com"
agent-browser wait --load networkidle
agent-browser get url
# If URL contains "signin" → session expired, user must re-loginActions
Read Messages
# Navigate to channel (quick switcher is fastest)
agent-browser press "Meta+k"
agent-browser wait 500
agent-browser snapshot -i
agent-browser fill @eXX "channel-name"
agent-browser wait 1000
agent-browser snapshot -i
agent-browser click @eXX
agent-browser wait --load networkidle
# Read
agent-browser snapshot -cSend a Message
# In the target channel, find compose box
agent-browser snapshot -i
# Look for textbox with "Message #channel" placeholder
agent-browser click @eXX # compose area
agent-browser type @eXX "Your message"
agent-browser press "Enter"
agent-browser wait 1000
agent-browser snapshot -c # verify sentUse type not fill — Slack's compose box is contenteditable.
Reply to Thread
agent-browser snapshot -c
agent-browser hover @eXX # hover message to show toolbar
agent-browser snapshot -i
agent-browser click @eXX # reply/thread button
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser click @eXX # thread compose box
agent-browser type @eXX "Thread reply"
agent-browser press "Enter"Send DM
agent-browser press "Meta+k"
agent-browser wait 500
agent-browser snapshot -i
agent-browser fill @eXX "Person Name"
agent-browser wait 1000
agent-browser snapshot -i
agent-browser click @eXX # person result
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser click @eXX # compose box
agent-browser type @eXX "Your DM"
agent-browser press "Enter"Search
agent-browser press "Meta+g" # Slack search
agent-browser wait 500
agent-browser snapshot -i
agent-browser fill @eXX "search query"
agent-browser press "Enter"
agent-browser wait --load networkidle
agent-browser snapshot -cReact with Emoji
agent-browser snapshot -c
agent-browser hover @eXX # hover over message
agent-browser snapshot -i
agent-browser click @eXX # emoji/reaction button (smiley icon)
agent-browser wait 500
agent-browser snapshot -i
agent-browser fill @eXX "thumbsup" # emoji search
agent-browser wait 500
agent-browser snapshot -i
agent-browser click @eXX # emoji resultCheck Notifications
# Click "Activity" in sidebar or navigate:
agent-browser snapshot -i -c
agent-browser click @eXX # Activity link
agent-browser wait --load networkidle
agent-browser snapshot -cCheck Unreads
agent-browser snapshot -i -c
# Look for bold channel names or "Unreads" section
agent-browser click @eXX # Unreads link
agent-browser wait --load networkidle
agent-browser snapshot -cCritical Rules
- ALWAYS re-snapshot after every action — refs invalidate constantly
- Use
--headedmode so user can see and intervene - Set viewport 1920x1080 — Slack hides features at small widths
- Use
Meta+k(quick switcher) as primary navigation - Use
typenotfillfor compose boxes (contenteditable) - Wait after actions:
agent-browser wait --load networkidle - Save auth state often:
agent-browser state save ~/.slack-auth-state.json
Semantic Locator Fallbacks
When refs don't match:
agent-browser find text "general" click
agent-browser find role textbox fill "Hello"
agent-browser find placeholder "Message #general" type "Hello"
agent-browser find role button click --name "Send"Debugging
agent-browser screenshot /tmp/slack-debug.png
agent-browser get url
agent-browser snapshot # full unfiltered treeDeep-Dive References
| Reference | When to Use |
| references/workflows.md | Full workflow examples |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

