/claude-code-tunnels:connect-slackfrom claude-code-tunnels
Guides connecting a Slack channel to a Claude-Code-Tunnels Orchestrator via Socket Mode. Handles Slack App creation, credential collection, and connection verification.
Ships in claude-code-tunnels. 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.
None: SKILL.md is the whole skill.
Adds a Slack channel to an existing Claude-Code-Tunnels Orchestrator. Connects via Socket Mode (WebSocket), so no public IP or callback URL is required.
key : value format (spaces on both sides of the colon)Connecting Slack requires the orchestrator to be installed, pip packages present, and a credentials file. Check each item in order — if any check fails, do not proceed to the next step until it is resolved.
Why it is needed: the Slack adapter reads channel activation status and the ARCHIVE path from orchestrator.yaml. Without this file, adapter initialization will fail.
if [ ! -f "orchestrator.yaml" ]; then
echo "orchestrator.yaml not found."
echo "Please run /claude-code-tunnels:setup-orchestrator first."
# -> stop here
fi
Why it is needed: Slack credentials (app_id, bot_token, etc.) are stored in ARCHIVE/slack/credentials.
ARCHIVE_PATH=$(python3 -c "import yaml; print(yaml.safe_load(open('orchestrator.yaml')).get('archive', 'ARCHIVE'))")
Confirming credential storage path.
[1] $ARCHIVE_PATH <- value read from orchestrator.yaml
[2] Enter manually
Number:
Why they are needed: slack-bolt (Socket Mode handler) and slack-sdk (Web API client) are required. Without them, from slack_bolt import ... will raise an ImportError.
$PYTHON_CMD -c "import slack_bolt" 2>/dev/null # slack-bolt
$PYTHON_CMD -c "import slack_sdk" 2>/dev/null # slack-sdk
If not installed:
The following packages required for Slack connection are not installed:
- slack-bolt (Socket Mode connection and event handling)
- slack-sdk (Slack Web API calls — message sending)
[1] Install now ($PIP_CMD install slack-bolt slack-sdk)
[2] Skip (install manually and continue)
Number:
Why it is needed: if Slack is already configured, the user must decide whether to overwrite the existing setup.
if [ -f "$ARCHIVE_PATH/slack/credentials" ]; then
echo "Existing credentials found"
fi
If an existing file is found:
Existing Slack credentials already exist:
app_id: A0123...
bot_token: xoxb-...
[1] Overwrite (enter new values)
[2] Keep existing values (update configuration only)
[3] Cancel
Number:
If no Slack App exists yet, provide guidance:
Slack App Setup:
1. https://api.slack.com/apps → Create New App → "From scratch"
2. Set a name and select your workspace
3. Settings → Socket Mode → Enable Socket Mode
- Generate an App-level token (xapp-...) — connections:write scope
4. Event Subscriptions → Enable Events
- Subscribe: message.channels, app_mention
5. OAuth & Permissions → Bot Token Scopes:
- chat:write, channels:history, app_mentions:read
6. Install App to Workspace
7. Copy the Bot Token (xoxb-...)
Are you ready? (yes — start entering credentials / no — show detailed guide)
Ask the user for each field one at a time. Empty values are not accepted.
Accompany each field prompt with a one-line explanation of why it is needed:
─────────────────────────────────────────────────────────────────
1. app_id
Shown on the Basic Information page of your Slack App settings.
Format: starts with A (e.g. A0123456789)
Enter:
2. client_id
Shown under Basic Information → App Credentials.
Format: number.number (e.g. 1234567890.1234567890)
Enter:
3. client_secret
Shown in the same App Credentials section. Click Show to copy it.
Enter:
4. signing_secret
Same App Credentials section. Used to verify the integrity of incoming bot requests.
Enter:
5. app_level_token
Generate under Settings → Basic Information → App-Level Tokens.
Used for authentication when establishing the Socket Mode connection.
Format: starts with xapp-
Validation: if it does not start with xapp- → "Invalid format. Please enter the full token starting with xapp-."
Enter:
6. bot_token
Found under OAuth & Permissions → Bot User OAuth Token.
Used to send messages (chat_postMessage).
Format: starts with xoxb-
Validation: if it does not start with xoxb- → "Invalid format."
Enter:
─────────────────────────────────────────────────────────────────
Summary after collection:
Slack Credentials entered:
app_id: A0123456789
client_id: 1234567890.1234567890
client_secret: ****
signing_secret: ****
app_level_token: xapp-1-...
bot_token: xoxb-...
Save with these values? (yes/no)
After user confirmation:
mkdir -p $ARCHIVE_PATH/slack/
cat > $ARCHIVE_PATH/slack/credentials << 'EOF'
app_id : $APP_ID
client_id : $CLIENT_ID
client_secret : $CLIENT_SECRET
signing_secret : $SIGNING_SECRET
app_level_token : $APP_LEVEL_TOKEN
bot_token : $BOT_TOKEN
EOF
Update orchestrator.yaml:
channels:
slack:
enabled: true
cd $PROJECT_ROOT && ./start-orchestrator.sh --fg &
sleep 5
# Confirm "Slack channel starting (Socket Mode)..." in the logs
app_id : A0123456789
client_id : 1234567890.1234567890
client_secret : abcdef1234567890
signing_secret : abcdef1234567890
app_level_token : xapp-1-A0123-1234567890-abcdef
bot_token : xoxb-1234567890-1234567890-abcdef
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/connect-telegramConnect Telegram to an existing Orchestrator. Guides through bot creation via BotFather, bot_token input, and long-polling connection test. Run with /connect-telegram. Use for requests like 'connect telegram', 'add telegram channel'./setup-orchestratorSkill for installing Claude-Code-Tunnels (Project Orchestrator). Installs the PO into the current project directory, registers workspaces, and connects messenger channels — all in one run. Execute with /claude-code-tunnels:setup-orchestrator./setup-remote-projectDeploys a listener to a remote machine (SSH/kubectl) so the Orchestrator can use that machine's project as a workspace. Execute with /claude-code-tunnels:setup-remote-project./setup-remote-workspaceSkill for connecting a single workspace on a remote machine to the Orchestrator. Similar to setup-remote-project but operates at the individual workspace level. Execute with /claude-code-tunnels:setup-remote-workspace.npx claudepluginhub matteblack9/claude-code-clone --plugin claude-tunnelsOther plugins' skills for the same job