/slack-channel:configure <bot-token> <app-token>from slack-channel
Configures Slack bot and app-level tokens for the slack-channel plugin. Validates token prefixes and writes them to a secure .env file with owner-only permissions.
Ships in slack-channel. 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.
Configure the Slack channel with its bot and app-level tokens. This is the only
token-writing path: validate prefixes, write .env with owner-only
permissions, never echo secrets, and return control to the install walkthrough.
/slack-channel:install Step 1 or
manually at api.slack.com/apps) with:
xoxb-...) from OAuth & Permissions, andxapp-..., scope connections:write) from
Socket Mode settings.~/.claude/channels/slack/.Pass both tokens as arguments, bot token first. Obtain them directly from the Slack app dashboard and avoid shell history or shared transcripts:
/slack-channel:configure <xoxb-bot-token> <xapp-app-token>
xoxb- Bot User OAuth Token represents the installed bot and authorizes
Web API calls within its granted bot scopes.xapp- app-level token represents the Slack app and requires
connections:write to open the Socket Mode WebSocket.install doctor verifies
liveness against Slack without printing the credential.~/.claude/channels/slack/.env; never commit them or
include them in output, logs, screenshots, or issue reports.Read references/official-auth.md when creating,
rotating, revoking, or diagnosing either token type.
Parse the two arguments from $ARGUMENTS:
xoxb- (Bot User OAuth Token)xapp- (App-Level Token)If either token is missing or has the wrong prefix, show this error and stop:
Error: Two tokens required.
- Bot token (starts with xoxb-) from OAuth & Permissions
- App token (starts with xapp-) from Socket Mode settings
Usage: /slack-channel:configure xoxb-... xapp-...
Create the state directory if it doesn't exist, then make the directory owner-only before writing any secret-bearing file:
mkdir -p ~/.claude/channels/slack
# 0700 = owner may read/write/traverse; no group or other access
chmod 700 ~/.claude/channels/slack
Pre-create the fixed candidate path with owner-only permissions, then use
Write to replace its complete contents. This makes the file 0600 from
the instant it exists, independent of the process umask:
# 0600 = owner read/write; no group or other access
install -m 600 /dev/null ~/.claude/channels/slack/.env.tmp
Write this complete content to ~/.claude/channels/slack/.env.tmp:
SLACK_BOT_TOKEN=<bot-token>
SLACK_APP_TOKEN=<app-token>
Set the candidate file to owner-only, then atomically replace .env. If
Write, chmod, or mv fails before replacement, remove only the exact
candidate path ~/.claude/channels/slack/.env.tmp; leave the prior .env
untouched.
# 0600 = owner read/write; no group or other access
chmod 600 ~/.claude/channels/slack/.env.tmp
mv ~/.claude/channels/slack/.env.tmp ~/.claude/channels/slack/.env
Confirm success:
Slack channel configured.
Start Claude with the Slack channel:
claude --channels plugin:slack-channel@claude-code-plugins
Or for development:
claude --dangerously-load-development-channels server:slack
Next: opt in a channel and pick its interaction mode with
/slack-channel:access channel <id> (defaults to mention-to-engage;
pass --ambient for a dedicated bot channel). See ACCESS.md "Interaction modes".
~/.claude/channels/slack/.env atomically replaced with both
tokens and mode 0600, plus the confirmation block above (server start
command and the pointer to channel opt-in). Tokens are never echoed.xoxb-, app tokens with
xapp-..env — re-running atomically replaces it; this is the
supported token-rotation path (rotation happens at api.slack.com/apps).~/.claude/channels/slack/.env.tmp, leave the previous .env intact, and
report only the failed stage without printing values./slack-channel:install doctor (checks 4–5 test both tokens live against
the Slack API).Both flows are the same command — the second run simply overwrites .env:
# First-time setup (illustrative placeholders, not live credentials)
/slack-channel:configure xoxb-WORKSPACE-EXAMPLE xapp-APP-EXAMPLE
# Rotation after regenerating tokens in the Slack UI — same command, overwrites .env
/slack-channel:configure xoxb-NEW-TOKEN xapp-NEW-TOKEN
.env0700 before writing the candidate0600 on the candidate before atomically moving it into placerm is permitted only to clean the single fixed candidate path
~/.claude/channels/slack/.env.tmp after a failed rotation. Never pass a
variable, glob, directory, recursive flag, or any other path to rm; never
remove the previous .env.
skills/install/SKILL.md — the full install lifecycle that delegates to this skill (Step 3) and the doctor that verifies token livenessskills/access/SKILL.md — the next step after configuring: channel opt-in and pairingACCESS.md — interaction modes referenced in the confirmation messageREADME.md — quick start, including Node.js and Docker server alternativesWhat SKILL.md sets; muted values are Claude Code's defaults
inheritmediumGenerated from the plugin's indexed repository (jeremylongshore/claude-code-slack-channel) — no native marketplace selected
npx claudepluginhub p/jeremylongshore-slack-channel2 plugins ship this exact skill · first indexed Sep 9, 2026
4 skills in this plugin
/accessManage Slack channel access control — pairing, allowlist, channel opt-in. Use when approving a pairing code, changing the DM policy, editing the user allowlist, or opting a channel in or out. Trigger with "/slack-channel:access", "pair my slack account", "add user to slack allowlist", or "opt in a slack channel"./installDetect installation failures and install, verify, repair, reset, or uninstall the CCSC Slack channel. Use when setting up the Slack channel, checking an existing installation, exporting its Slack app manifest, or safely tearing it down. Trigger with "/slack-channel:install", "install the slack channel", "slack channel doctor", or "uninstall the slack channel"./policyAnalyze and author MCP tool-call policy rules without hand-editing access.json. Use when adding, linting, or removing auto_approve/deny/require_approval rules for the Slack channel's policy engine. Trigger with "/slack-channel:policy", "add a policy rule", "lint my slack policy", or "remove a policy rule".Other plugins' skills for the same job