executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
configureConfigure Slack channel tokens (bot token + app-level token). Use when writing or rotating the Slack bot and app-level tokens for the slack-channel plugin. Trigger with "/slack-channel:configure", "configure slack tokens", or "set up my slack bot token".
Independent GitHub snapshot · Automated classification · Original documentation governs
Configure the Slack channel with your bot token and app-level token. This is
the single place tokens touch disk: the skill validates both token prefixes,
writes them to the state directory's .env, and locks the file to owner-only
permissions. It never echoes tokens back. The install walkthrough
(/slack-channel:install Step 3) delegates here.
/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:
/slack-channel:configure <xoxb-bot-token> <xapp-app-token>
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:
~/.claude/channels/slack/
Write the .env file at ~/.claude/channels/slack/.env:
SLACK_BOT_TOKEN=<bot-token>
SLACK_APP_TOKEN=<app-token>
Set file permissions to owner-only:
chmod 600 ~/.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 written 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 overwrites it in place; this is the
supported token-rotation path (Slack tokens are reusable; rotation happens
at api.slack.com/apps)./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 (tokens copied from api.slack.com/apps)
/slack-channel:configure xoxb-1234567890-EXAMPLE xapp-1-A0EXAMPLE
# Rotation after regenerating tokens in the Slack UI — same command, overwrites .env
/slack-channel:configure xoxb-NEW-TOKEN xapp-NEW-TOKEN
.env.env fileskills/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 alternatives