slack-expert
БесплатноЗапускает вложенные скриптыНе проверенExpert-level Slack platform development using Bolt SDK — build Slack apps with slash commands, interactive components (buttons, modals, shortcuts), home tabs…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Slack Expert Skill
Overview
Full-platform Slack development using the Bolt SDK. Covers interactive app development beyond basic messaging — slash commands, modals, shortcuts, home tabs, event subscriptions, workflow steps, and multi-workspace OAuth.
Related skill: slack-notifications — use that skill for simple one-way messaging/alerts. Use slack-expert when building interactive Slack apps or bots.
Requirements
| Variable | Purpose | Required |
|---|---|---|
SLACK_BOT_TOKEN |
Bot OAuth token (xoxb-...) |
Yes (single workspace) |
SLACK_SIGNING_SECRET |
Request signature verification | Yes |
SLACK_APP_TOKEN |
Socket Mode app-level token (xapp-...) |
Socket Mode only |
SLACK_CLIENT_ID |
OAuth client ID | Multi-workspace only |
SLACK_CLIENT_SECRET |
OAuth client secret | Multi-workspace only |
SLACK_STATE_SECRET |
OAuth state token | Multi-workspace only |
Quick Start — Bolt App (Node.js)
const { App } = require('@slack/bolt');
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
// For Socket Mode, add:
socketMode: true,
appToken: process.env.SLACK_APP_TOKEN,
});
// Slash command
app.command('/hello', async ({ command, ack, respond }) => {
await ack();
await respond(`Hello <@${command.user_id}>!`);
});
// Button click
app.action('approve_button', async ({ body, ack, client }) => {
await ack();
await client.views.open({
trigger_id: body.trigger_id,
view: confirmationModal,
});
});
// Event subscription
app.event('app_mention', async ({ event, say }) => {
await say({ text: `Hello <@${event.user}>!`, thread_ts: event.ts });
});
(async () => {
await app.start(process.env.PORT || 3000);
console.log('Bolt app running');
})();
Core Concepts
Listeners
// Message listener with regex
app.message(/deploy/, async ({ message, say }) => {
await say('Triggering deployment...');
});
// Slash command — MUST ack() within 3 seconds
app.command('/status', async ({ ack, respond, command }) => {
await ack();
// Long-running: defer actual work
respond({ text: 'Checking status...', response_type: 'ephemeral' });
const status = await fetchStatus(); // async work after ack
await respond({ text: `Status: ${status}` });
});
// Shortcut (global or message)
app.shortcut('create_ticket', async ({ shortcut, ack, client }) => {
await ack();
await client.views.open({
trigger_id: shortcut.trigger_id,
view: ticketModal,
});
});
Modals (Views)
const modal = {
type: 'modal',
callback_id: 'ticket_submission',
title: { type: 'plain_text', text: 'Create Ticket' },
submit: { type: 'plain_text', text: 'Submit' },
close: { type: 'plain_text', text: 'Cancel' },
blocks: [
{
type: 'input',
block_id: 'title_block',
element: {
type: 'plain_text_input',
action_id: 'title_input',
placeholder: { type: 'plain_text', text: 'Ticket title' },
},
label: { type: 'plain_text', text: 'Title' },
},
{
type: 'input',
block_id: 'priority_block',
element: {
type: 'static_select',
action_id: 'priority_select',
options: [
{ text: { type: 'plain_text', text: 'High' }, value: 'high' },
{ text: { type: 'plain_text', text: 'Medium' }, value: 'medium' },
{ text: { type: 'plain_text', text: 'Low' }, value: 'low' },
],
},
label: { type: 'plain_text', text: 'Priority' },
},
],
};
// Handle modal submission
app.view('ticket_submission', async ({ ack, view, client, body }) => {
await ack();
const title = view.state.values.title_block.title_input.value;
const priority = view.state.values.priority_block.priority_select.selected_option.value;
await createTicket({ title, priority, userId: body.user.id });
});
Block Kit — Rich Messages
const richMessage = {
blocks: [
{
type: 'header',
text: { type: 'plain_text', text: 'Deployment Ready' },
},
{
type: 'section',
fields: [
{ type: 'mrkdwn', text: '*Service:*\napi-gateway' },
{ type: 'mrkdwn', text: '*Version:*\nv1.2.3' },
{ type: 'mrkdwn', text: '*Environment:*\nProduction' },
{ type: 'mrkdwn', text: '*Requested by:*\n<@U1234567>' },
],
},
{ type: 'divider' },
{
type: 'actions',
block_id: 'deploy_actions',
elements: [
{
type: 'button',
text: { type: 'plain_text', text: 'Approve' },
style: 'primary',
action_id: 'approve_deploy',
value: 'v1.2.3',
confirm:
Установить slack-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditWebFetchВложенные файлы
FAQ
Что делает скилл slack-expert?
Expert-level Slack platform development using Bolt SDK — build Slack apps with slash commands, interactive components (buttons, modals, shortcuts), home tabs, event subscriptions, workflows, Socket Mode, and Block Kit. Use for building Slack bots, workflow automation, and rich interactive Slack experiences.
Как установить скилл slack-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл slack-expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic