/claude-code-status:slack-setupfrom claude-code-status
Set up Slack integration — register token and select channels to monitor. Use when user wants to connect Slack to the status line.
Ships in claude-code-status. 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.
Set up Slack integration for the status line.
The user needs a Slack User OAuth Token (xoxp-...) with these scopes:
channels:read — public channel list + unreadgroups:read — private channel list + unreadim:read — DM unreadmpim:read — group DM unreadGuide them to create one:
channels:read, groups:read, im:read, mpim:readxoxp-...)Ask the user to provide their Slack User OAuth Token (xoxp-...).
If they already have one configured, show the masked version (first 10 chars + ...) and ask if they want to replace it.
Read the existing config, merge the token, and write back:
CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugins/data/claude-code-status-claude-code-status}"
CONFIG="$CLAUDE_PLUGIN_DATA/config.json"
Use node -e to merge:
CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugins/data/claude-code-status-claude-code-status}" node -e "
const fs = require('fs');
const p = process.env.CLAUDE_PLUGIN_DATA + '/config.json';
let c = {};
try { c = JSON.parse(fs.readFileSync(p,'utf8')); } catch {}
if (!c.slack) c.slack = {};
c.slack.token = '<TOKEN>';
fs.writeFileSync(p, JSON.stringify(c, null, 2));
console.log('Token saved.');
"
Test the token by calling the Slack API:
curl -s -H "Authorization: Bearer <TOKEN>" "https://slack.com/api/auth.test" | node -e "
const chunks = []; process.stdin.on('data', c => chunks.push(c)); process.stdin.on('end', () => {
const r = JSON.parse(Buffer.concat(chunks).toString());
if (r.ok) console.log('Authenticated as: ' + r.user + ' (team: ' + r.team + ')');
else console.log('ERROR: ' + r.error);
});
"
If the token is invalid, tell the user and ask for a correct one.
Fetch all channels the user is a member of:
curl -s -H "Authorization: Bearer <TOKEN>" "https://slack.com/api/conversations.list?types=public_channel,private_channel&exclude_archived=true&limit=200" | node -e "
const chunks = []; process.stdin.on('data', c => chunks.push(c)); process.stdin.on('end', () => {
const r = JSON.parse(Buffer.concat(chunks).toString());
if (!r.ok) { console.log('ERROR: ' + r.error); return; }
const channels = (r.channels || []).filter(c => c.is_member);
channels.sort((a,b) => a.name.localeCompare(b.name));
channels.forEach((ch, i) => {
const prefix = ch.is_private ? '🔒' : '#';
console.log((i+1) + '. ' + prefix + ch.name + ' (ID: ' + ch.id + ')');
});
console.log('\nTotal: ' + channels.length + ' channels');
});
"
Present the numbered list and ask the user which channels they want to monitor.
They can specify:
1, 3, 51-5allnone (DM only)CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugins/data/claude-code-status-claude-code-status}" node -e "
const fs = require('fs');
const p = process.env.CLAUDE_PLUGIN_DATA + '/config.json';
let c = {};
try { c = JSON.parse(fs.readFileSync(p,'utf8')); } catch {}
if (!c.slack) c.slack = {};
c.slack.channels = [<CHANNEL_IDS>];
fs.writeFileSync(p, JSON.stringify(c, null, 2));
console.log('Channels saved:', c.slack.channels);
"
Make sure slack is enabled in the services config:
CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugins/data/claude-code-status-claude-code-status}" node -e "
const fs = require('fs');
const p = process.env.CLAUDE_PLUGIN_DATA + '/config.json';
let c = {};
try { c = JSON.parse(fs.readFileSync(p,'utf8')); } catch {}
if (!c.services) c.services = {};
c.services.slack = true;
fs.writeFileSync(p, JSON.stringify(c, null, 2));
console.log('Slack enabled in status line.');
"
CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA:-$HOME/.claude/plugins/data/claude-code-status-claude-code-status}" node "$CLAUDE_PLUGIN_DATA/runtime/dist/collect.js" --service slack --force 2>&1
Then read and display the result:
cat "$CLAUDE_PLUGIN_DATA/cache/slack.json"
Tell the user:
slack <count> on next refreshIf $CLAUDE_PLUGIN_DATA is not set, derive it:
CLAUDE_PLUGIN_DATA="$HOME/.claude/plugins/data/claude-code-status-claude-code-status"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub seojaewan/claude-code-status --plugin claude-code-status9 skills in this plugin
/github-checkShow cached GitHub PR notification details, diagnose errors, guide authentication, and optionally force a fresh fetch. Use when status line shows github count or error./gmail-checkShow cached Gmail unread details, diagnose errors, and optionally force a fresh fetch. Use when status line shows Gmail count or error./init-statuslineOne-command full setup — bootstrap data directory, wire settings.json, and populate cache. No restart required./jira-checkShow cached Jira open issue details, diagnose errors, guide authentication, and optionally force a fresh fetch. Use when status line shows jira count or error.