/dev10x-comm:slack-setupfrom dev10x-comm
Guides through first-time Slack integration setup: creates Slack app, configures scopes, stores token in system keyring, and generates slack-config.yaml. Auto-detects existing tokens and validates them.
Ships in dev10x-comm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Announce: "Using dev10x-comm:slack-setup to configure Slack integration."
The skill accepts a single optional argument:
/dev10x-comm:slack-setup [xoxb-...]
When a token is passed, skip Step 2 entirely (no token-source prompt) and go directly to validation in Step 1c.
REQUIRED: Create tasks before ANY work. Execute at startup:
TaskCreate(subject="Detect and validate Slack state", activeForm="Detecting state")TaskCreate(subject="Acquire bot token (if missing)", activeForm="Acquiring token")TaskCreate(subject="Store token in keyring", activeForm="Storing token")TaskCreate(subject="Generate slack-config.yaml", activeForm="Generating config")Verification is folded into Step 1 — auth.test is the test.
A separate "Verify setup" task is created only when the user
opts into a test message in Step 4.
The goal of this step is to short-circuit setup whenever the existing state is already valid. Prompts MUST NOT fire while state is still discoverable from the environment.
Probe sources in priority order — stop at the first hit:
xoxb-...)secret-tool lookup service slack key bot_token
(Linux) or security find-generic-password -s slack -a bot_token -w
(macOS)SLACK_TOKEN env varRecord where the token came from (source: arg|keyring|env) so
later steps know whether to persist it.
Check for ~/.config/Dev10x/slack-config.yaml. If present,
load it — fields already filled there are reused, not re-prompted.
If a token was located in 1a, call Slack auth.test:
curl -sS -X POST https://slack.com/api/auth.test \
-H "Authorization: Bearer <TOKEN>"
Parse the JSON response:
ok | Action |
|---|---|
true | Persist bot_username ← user, bot_user_id ← user_id, team_id ← team_id into the in-memory config. Skip Step 2. Proceed to Step 3 only if the token still needs to be stored (`source: arg |
false | Read the error field. Treat invalid_auth / token_revoked / account_inactive as unrecoverable for this token — discard it and fall through to Step 2 with a diagnostic line ("token validation failed: "). |
When no token is found in 1a, fall through to Step 2.
Before any prompts fire, summarize what is already configured:
Token: found (keyring) — auth.test ok
Bot: <user> (<user_id>) in team <team_id>
Config: present at ~/.config/Dev10x/slack-config.yaml
Result: setup already complete — nothing to do
If the report covers all required fields (bot_username,
self_user_id, user_groups, token reachable), exit with that
message. No AskUserQuestion fires in this branch.
Skip this step entirely when Step 1c reported ok: true.
When the user passed a token via arguments and auth.test
rejected it, report the diagnostic and fall through here.
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
Skip this prompt when a token argument was passed (the source is already "existing token"; only validation in Step 1c failed).
Point the user at references/token-discovery.md
when they ask "where is my token?". Re-run Step 1c after the
user pastes a token; reject anything that fails auth.test.
See references/new-bot-creation.md
for the full workspace-setup guide (app creation, required and
optional OAuth scopes, install + token copy steps). Walk the user
through it, then loop back to Step 1c with the pasted token to
validate before storing.
Skip when source: keyring (already stored).
Run platform detection silently — do NOT prompt yet.
Linux:
command -v secret-tool >/dev/null 2>&1 && \
pgrep -f 'gnome-keyring-daemon|kwalletd' >/dev/null 2>&1
If both succeed → the keyring backend is available. Default to
keyring storage without an AskUserQuestion.
macOS:
command -v security >/dev/null 2>&1
If it succeeds → default to Keychain storage without an
AskUserQuestion.
Store the token:
| Platform | Command |
|---|---|
| Linux | secret-tool store --label="Slack Bot Token" service slack key bot_token (token piped in) |
| macOS | security add-generic-password -s slack -a bot_token -w "<token>" |
Only when 3a fails to detect a working keyring backend:
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
export SLACK_TOKEN=... to shell profileProvide the export line for the env-var option:
export SLACK_TOKEN="xoxb-your-token-here"
Generate ~/.config/Dev10x/slack-config.yaml. Each field
is derived first, prompted only on derivation failure.
| Field | Derivation | Fallback |
|---|---|---|
bot_username | auth.test.user (already in memory from Step 1c) | Prompt only if absent |
bot_user_id | auth.test.user_id | Prompt only if absent |
team_id | auth.test.team_id | Prompt only if absent |
self_user_id | users.lookupByEmail?email=$(git config user.email) against the same token | See 4b |
user_groups | {} (empty default — managed in dev10x-comm:slack later) | None — never prompts |
users.lookupByEmail call:
curl -sS -G \
--data-urlencode "email=$(git config user.email)" \
-H "Authorization: Bearer <TOKEN>" \
https://slack.com/api/users.lookupByEmail
On ok: true, take user.id. On ok: false with
users_not_found, missing_scope, or unset git email, fall to 4b.
Only when at least one required field could not be derived,
issue a single batched AskUserQuestion listing the fields to
collect (e.g., self_user_id because the git email did not match
a workspace member). Never prompt for fields that were derived
successfully.
When all fields are derived (the common case), write the file without any prompt:
self_user_id: "U0123456789"
bot_username: "Claude AI"
bot_user_id: "U9876543210"
team_id: "T01234567"
user_groups: {}
auth.test is the verification. The skill marks setup verified
on ok: true from Step 1c — no separate verification prompt
fires by default.
Only when the user explicitly asked for a verification message
(e.g., passed --test or asked "send a test message" inline)
should the skill fire:
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
self_user_idDelegate the actual send to dev10x-comm:slack.
| Scenario | Prompts before this change | Prompts after |
|---|---|---|
| Token already in keyring, valid | 3–5 | 0 |
| User pastes existing token | 3–5 | 1 (token paste) |
| User passes token as argument | 3–5 | 0 |
| New Slack Bot creation | 3–5 | ~2 (app guidance + token paste) |
All other prompts fire only on detection failure — never as a default.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
7 skills in this plugin
/busdev10x-comm:busLet this session exchange messages with other Claude sessions on the same machine through a local Maildir bus — other Claude Code sessions, and Claude Desktop / claude.ai chats (text or voice) whose Cowork agent writes the files via Desktop Commander. Opens a mailbox under /tmp/claude-bus/<name>/, announces it in the registry, watches it with a background watch.py --once, and replies to each sender's Reply-To mailbox. TRIGGER when: the user says "connect to the bus", "start the bus", "listen for Desktop / Cowork / voice", "send <session> a message via the bus", or asks for the instructions a Desktop chat needs. DO NOT TRIGGER when: messaging a session SendMessage can already reach and no Desktop chat is involved, or sending Slack / Google Chat (use dev10x-comm:slack / dev10x-comm:gchat).
/gchatdev10x-comm:gchatSend notifications to a Google Chat space via a private Chat bot (service-account app auth). Mirrors dev10x-comm:slack. TRIGGER when: sending a message to a Google Chat space. DO NOT TRIGGER when: posting a review request (use dev10x-coding:gchat-review-request), or sending to Slack (use dev10x-comm:slack).
/gogdev10x-comm:gogReach Google Workspace from the command line through the `gog` CLI — Drive, Google Chat, YouTube, Gmail, Calendar — including the OAuth setup that every one of those areas shares and that fails in the same four ways for everybody. TRIGGER when: reading or writing Google Workspace data from a session (fetching a Chat thread, listing Drive files, publishing to YouTube), or when a `gog auth` grant is missing, refused, or needs re-authorizing. DO NOT TRIGGER when: publishing a recording (use dev10x-qa:yt-upload, which owns token borrowing and channel assertion), posting to a Chat space via the notification bot (use dev10x-comm:gchat), or sending Slack (use dev10x-comm:slack).
/overwatchdev10x-comm:overwatchRun the localhost Overwatch page that lists every local Claude Code session with its state, queues the questions sessions wait on, and lets the supervisor answer them in one place — or run the relay session that carries those answers back into the right session with SendMessage. TRIGGER when: the user says "start overwatch", "open the Overwatch page", "start the relay", or asks for one page showing which sessions need them. DO NOT TRIGGER when: the user wants a spoken status turn (use dev10x-comm:voice-channel), or only needs the bus wiring (use dev10x-comm:bus).
/slackdev10x-comm:slackSend notifications to Slack channels with support for threads, file uploads, message updates, and user group mentions. TRIGGER when: sending messages, uploading files, or updating messages in Slack channels. DO NOT TRIGGER when: setting up Slack integration (use dev10x-comm:slack-setup), or posting review requests (use dev10x-coding:slack-review-request).
/voice-channeldev10x-comm:voice-channelUse when one voice conversation (a Claude Desktop Cowork chat or a Claude Code hub session) supervises several coding sessions and the supervisor listens instead of reading — so each spoken turn names work in words a listener can hold, asks for at most one decision, and leaves code reviews and diffs for when they are at a screen. TRIGGER when: the user drives several sessions by voice, asks "what needs me?" / "what's next?" across sessions, or a bus request carries `Voice: yes` from a hub. DO NOT TRIGGER when: the user reads a single session in a terminal, or only needs the bus wiring (use dev10x-comm:bus).
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-comm