[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EG5EMAVS4G28DBAQP180DG":3,"skill-same:01M6EG5EMAVS4G28DBAQP180DG":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6EG5EMAVS4G28DBAQP180DG","slack-bot-builder",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fslack-bot-builder\u002FSKILL.md",[],[18,19,20,21],"bot","slack","slack bot builder","builder","2026-11-10 10:12:30",false,"# Slack Bot Builder\n\n## Overview\n\nBuilds production-ready Slack bots and integrations using the Bolt framework. Handles app setup, event subscriptions, slash commands, interactive components (buttons, modals, dropdowns), message formatting with Block Kit, and deployment. Covers both simple webhook-based notifications and full conversational bots.\n\n## Instructions\n\n### 1. App Setup\n\nWhen creating a new Slack bot:\n\n1. Guide the user through https:\u002F\u002Fapi.slack.com\u002Fapps → Create New App\n2. Recommend \"From a manifest\" for faster setup\n3. Generate the app manifest YAML based on required scopes and features\n4. Set up the following based on needs:\n   - **Bot Token Scopes**: `chat:write`, `commands`, `app_mentions:read`, `channels:history`, `users:read`\n   - **Event Subscriptions**: `message.channels`, `app_mention`, `message.im`\n   - **Interactivity**: Enable for buttons, modals, dropdowns\n   - **Slash Commands**: Register command names and descriptions\n\n### 2. Project Scaffolding\n\nUse Bolt.js (Node) or Bolt for Python:\n\n```bash\n# Node.js\nnpm init -y && npm install @slack\u002Fbolt dotenv\n\n# Python\npip install slack-bolt python-dotenv\n```\n\nStandard project structure:\n```\nslack-bot\u002F\n├── app.js              # Main entry, Bolt app initialization\n├── listeners\u002F\n│   ├── commands.js     # Slash command handlers\n│   ├── events.js       # Event handlers (messages, mentions)\n│   ├── actions.js      # Interactive component handlers\n│   └── views.js        # Modal submission handlers\n├── services\u002F           # Business logic\n├── blocks\u002F             # Block Kit message templates\n├── .env                # SLACK_BOT_TOKEN, SLACK_SIGNING_SECRET, SLACK_APP_TOKEN\n└── package.json\n```\n\n### 3. Core Patterns\n\n**Sending messages:**\n```javascript\nawait client.chat.postMessage({\n  channel: channelId,\n  blocks: [\u002F* Block Kit blocks *\u002F],\n  text: \"Fallback text for notifications\"\n});\n```\n\n**Slash commands:**\n```javascript\napp.command('\u002Fdeploy', async ({ command, ack, respond }) => {\n  await ack();\n  await respond({\n    blocks: buildDeployConfirmation(command.text),\n    response_type: 'ephemeral'\n  });\n});\n```\n\n**Interactive modals:**\n```javascript\napp.action('button_click', async ({ body, ack, client }) => {\n  await ack();\n  await client.views.open({\n    trigger_id: body.trigger_id,\n    view: buildModalView()\n  });\n});\n```\n\n**Event handling:**\n```javascript\napp.event('app_mention', async ({ event, say }) => {\n  await say(`Hey \u003C@${event.user}>! How can I help?`);\n});\n```\n\n### 4. Block Kit Messages\n\nAlways use Block Kit for rich messages. Key block types:\n- `section` — text with optional accessory (button, image, overflow)\n- `actions` — row of interactive elements\n- `input` — form fields in modals\n- `divider` — visual separator\n- `context` — small metadata text\n- `header` — bold large text\n\nUse https:\u002F\u002Fapp.slack.com\u002Fblock-kit-builder for visual design.\n\n### 5. Socket Mode vs HTTP\n\n- **Socket Mode** (recommended for internal bots): No public URL needed, uses WebSocket\n  - Set `SLACK_APP_TOKEN` (starts with `xapp-`)\n  - `const app = new App({ token, signingSecret, socketMode: true, appToken })`\n- **HTTP mode** (for public apps): Needs public URL, use ngrok for dev\n  - `const app = new App({ token, signingSecret })`\n  - `app.start(3000)`\n\n### 6. Deployment\n\n- **Simple**: Railway, Render, or any Node.js host\n- **Production**: Container on ECS\u002FCloud Run with health checks\n- **Serverless**: AWS Lambda with Slack Bolt's `AwsLambdaReceiver`\n\n### 7. Rate Limits\n\nSlack API rate limits:\n- **Tier 1** (chat.postMessage): ~1 req\u002Fsec per workspace\n- **Tier 2** (conversations.list): ~20 req\u002Fmin\n- **Tier 3** (users.list): ~50 req\u002Fmin\n- **Tier 4** (admin endpoints): varies\n\nHandle 429 responses with exponential backoff. The Bolt framework handles basic retry logic.\n\n## Examples\n\n### Example 1: Daily Standup Bot\n\n**Input:** \"Build a Slack bot that posts daily standup prompts at 9am, collects responses via thread, and summarizes them at 5pm.\"\n\n**Output:** A Bolt.js app with:\n- Cron job (node-cron) posting standup template to #team channel at 9:00\n- Thread listener collecting responses, parsing \"yesterday\u002Ftoday\u002Fblockers\" format\n- 5pm summary job that aggregates all thread replies into a formatted Block Kit message\n- `\u002Fstandup-skip` slash command to mark days off\n\n### Example 2: Incident Alert Bot\n\n**Input:** \"Create a Slack bot that receives PagerDuty webhooks and creates an incident channel with pre-populated runbook links.\"\n\n**Output:** A Bolt.js app with:\n- HTTP endpoint receiving PagerDuty webhook payloads\n- Auto-creates `#incident-{date}-{title}` channel\n- Posts incident details with severity-colored sidebar\n- Pins runbook links based on service name lookup\n- Adds on-call responders to channel automatically\n- `\u002Fincident-resolve` command to archive channel and post timeline\n\n## Guidelines\n\n- Always set `text` fallback alongside `blocks` (for notifications and accessibility)\n- Use ephemeral messages (`response_type: 'ephemeral'`) for user-specific responses\n- Store tokens in environment variables, never in code\n- Implement proper error handling — Slack silently drops unacknowledged interactions after 3 seconds\n- Always `await ack()` within 3 seconds for commands and interactions\n- Use `app.error()` global handler for uncaught errors\n- For long operations, ack immediately, then use `respond()` or `chat.postMessage` later\n- Test with Slack's Socket Mode locally before deploying\n- Keep Block Kit messages under 50 blocks and 3000 characters per text field\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fslack-bot-builder",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill slack-bot-builder",{"tool":41,"command":42},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill slack-bot-builder",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill slack-bot-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fslack-bot-builder\u002FSKILL.md",true,[],[50,59,68,77,83,89],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":22},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[56,57,58],"model","model hierarchy","model hierarchy skill",{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":22},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[65,66,67],"MCP","zoom","zoom mcp",{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":22},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[74,75,76,66],"sdk","zoom apps sdk","apps",{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":22},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[79],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":22},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[85],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":22},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[91]]