Agent skill
slack
Post a question to Slack and wait for a reply, or post a reply into a thread using scripts/slack.py.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/slack-motoya0118-pavlok-cli-agent
SKILL.md
Slack Ask + Thread Reply
Use scripts/slack.py to post a question and wait for the first reply, or to post a reply into an existing thread.
Run
bash
uv run scripts/slack.py "Did you finish the task?" --timeout 120 --interval 2
bash
uv run scripts/slack.py --mode reply --thread-ts 1700000000.000000 "Reply text"
Inputs
questionis the message text (question inaskmode, reply inreplymode).--modechooses behavior (askdefault,replyposts into a thread).--no-reply-hintskips appending "Reply in thread."askmode:--timeoutsets max wait time in seconds (default: 60).--intervalsets polling interval in seconds (default: 2).--thread-tsand--channelare not required.
replymode:--thread-tsis required.--channeloverridesSLACK_CHANNEL(accepts name or ID).--timeoutand--intervalare not used.
Outputs
Ask mode prints a single line:
{assistant_question: ..., user_answer: ..., is_answer: true|false}
If no reply arrives before timeout, user_answer is empty and is_answer is false.
Reply mode prints a single line:
{action: reply, channel: ..., thread_ts: ..., message_ts: ...}
Notes
- Requires
SLACK_BOT_USER_OAUTH_TOKEN. - Optional
SLACK_USER_OAUTH_TOKENis used for reading replies; if unset, the bot token is reused. - Missing history scopes will cause
missing_scopeerrors; addchannels:history,groups:history,im:history, andmpim:historyas needed.
Didn't find tool you were looking for?