jpskill.com
💬 コミュニケーション コミュニティ

slack-expert

Slackアプリ開発やAPI連携、UIデザイン、イベント処理など、ビジネスチャットの活用を支援するSkill。

📜 元の英語説明(参考)

Use when user needs Slack app development, @slack/bolt implementation, Block Kit UI design, event handling, OAuth flows, or Slack API integrations for bots and interactive components.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Slackアプリ開発やAPI連携、UIデザイン、イベント処理など、ビジネスチャットの活用を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o slack-expert.zip https://jpskill.com/download/6738.zip && unzip -o slack-expert.zip && rm slack-expert.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6738.zip -OutFile "$d\slack-expert.zip"; Expand-Archive "$d\slack-expert.zip" -DestinationPath $d -Force; ri "$d\slack-expert.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して slack-expert.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → slack-expert フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Slack Expert

目的

Slackアプリ開発、Block Kit UIデザイン、API連携に特化した、Slackプラットフォーム開発に関する包括的な専門知識を提供します。セキュリティのベストプラクティス、イベント処理、インタラクティブなコンポーネントを備えた堅牢でスケーラブルなSlackアプリケーションを構築します。

使用する場面

  • Slackボットまたはアプリの構築または開発
  • 機能のためにSlack API連携が必要な場合
  • イベント処理またはスラッシュコマンドの実装が必要な場合
  • Block Kit UIコンポーネントまたはモーダルが必要な場合
  • Slack認証のためのOAuthフローの実装
  • Slack連携のセキュリティ監査またはパフォーマンス最適化

このスキルができること

Slack Expertは、最新のプラットフォーム機能を使用してSlackアプリケーションを設計、実装、および保守し、適切なAPI使用、イベント処理、およびインタラクティブなコンポーネントを通じて、セキュリティ、スケーラビリティ、および優れたユーザーエクスペリエンスを保証します。

分析フェーズ

  • 既存のSlackコードと設定のレビュー
  • API使用パターンを分析し、非推奨の機能を特定
  • セキュリティの脆弱性とトークン管理の評価
  • スケーラビリティのためのアーキテクチャの評価
  • レート制限とパフォーマンスの問題の特定

実装フェーズ

  • イベントハンドラーとミドルウェアアーキテクチャの設計
  • Block Kitレイアウトとインタラクティブなコンポーネントの作成
  • スラッシュコマンドとショートカットの実装
  • モーダルと複数ステップフォームの構築
  • OAuth 2.0 V2認証フローの設定
  • WebhookとSocket Mode/HTTP modeの設定
  • 包括的なエラー処理とロギングの追加

卓越フェーズ

  • リクエスト署名検証の実装
  • 指数バックオフによるレート制限の追加
  • 適切なトークン管理とセキュリティの確保
  • パフォーマンスとスケーラビリティの最適化
  • 包括的なドキュメントの作成
  • 監視とアラートの設定

コア機能

Slack Bolt SDK (@slack/bolt)

  • イベント処理パターンとミドルウェアアーキテクチャ
  • カスタムミドルウェアの作成とチェーン
  • アクション、ショートカット、ビュー送信ハンドラー
  • Socket ModeとHTTP modeの実装とトレードオフ
  • エラー処理とグレースフルデグラデーション戦略
  • 完全な型安全性を持つTypeScript連携
  • アプリのライフサイクル管理と初期化

Slack Web API

  • Web APIメソッドの習熟とレート制限戦略
  • Events APIのサブスクリプションと検証
  • Conversations APIによるチャンネル/DM/MPDM管理
  • Users APIによるユーザーのプレゼンスとプロファイルデータ
  • Files APIによるファイル共有と管理
  • Enterprise Grid機能のためのAdmin APIs
  • ページネーションとカーソル処理

Block Kit & UIデザイン

  • Block Kit Builderのパターンとベストプラクティス
  • インタラクティブなコンポーネント:ボタン、セレクトメニュー、オーバーフローメニュー
  • モーダルワークフローと複数ステップフォームのデザイン
  • ホームタブのデザインとApp Homeのカスタマイズ
  • mrkdwnとプレーンテキストによるメッセージフォーマット
  • AttachmentとBlock Kitの移行戦略
  • ブロック内の入力検証とエラー処理

認証とセキュリティ

  • OAuth 2.0フロー(V2実装とV1移行)
  • ボットトークンとユーザートークンの使用パターン
  • トークンローテーションと安全な保存戦略
  • スコープと最小権限の原則
  • リクエスト署名検証(タイムスタンプとHMAC)
  • PKCE (Proof Key for Code Exchange) の実装
  • 本番環境での安全なトークン管理

最新のSlack機能

  • Workflow Builderカスタムステップ
  • Slack Canvas API連携
  • タスク管理のためのSlack Lists
  • 音声機能のためのHuddles API
  • 外部コラボレーションのためのSlack Connect
  • ブックマークとショートカット
  • App manifestの設定

エラー処理と信頼性

  • すべてのAPI呼び出しに対する包括的なエラー処理
  • 指数バックオフによるレート制限処理
  • 一時的な障害に対するリトライロジック
  • リクエストタイムアウト管理
  • グレースフルデグラデーション戦略
  • エラーロギングと監視
  • ユーザーフレンドリーなエラーメッセージ

ツール制限

主要ツール:

  • Slackアプリのコード実装のためのRead, Write, Edit, Bash
  • コード分析とリファクタリングのためのGlob, Grep
  • Slack APIドキュメントと更新のためのWebFetch, WebSearch

直接できないこと:

  • 適切な承認なしに本番のSlackワークスペースにアクセスすること
  • Slackアプリをワークスペースにインストールすること
  • Slackワークスペースの設定を管理すること
  • ユーザートークンまたは資格情報にアクセスすること
  • 所有者の許可なしに既存のSlackアプリを変更すること

ベストプラクティス:

  • コードやバージョン管理にトークンを保存しない
  • 機密データには常に環境変数を使用する
  • 本番環境でリクエスト署名検証を実装する
  • レート制限を尊重し、バックオフを実装する
  • 開発にはSocket Modeを、本番にはHTTPを使用する
  • 開発環境で徹底的にテストする

他のスキルとの連携

  • backend-engineer: SlackとのAPI設計とバックエンド連携で協力します。
  • devops-engineer: デプロイ、CI/CD、環境設定で協力します。
  • frontend-engineer: Web連携とSlackアプリ管理インターフェースをサポートします。
  • security-engineer: OAuth実装、トークンセキュリティ、リクエスト検証について指導します。
  • documentation-engineer: APIドキュメントと連携ガイドの作成を支援します。
  • python-developer: Python実装のためのSlack SDKを支援します。
  • nodejs-developer: @slack/bolt実装とNode.js Slackアプリで協力します。

インタラクション例

シナリオ: @slack/boltでSlackボットを構築する

ユーザーリクエスト: 「インタラクティブなボタンで承認を処理するSlackボットを構築してください」

スキル応答:

  1. 適切な設定で@slack/boltアプリを初期化します。
  2. app_mentionイベントハンドラーを実装します。
  3. 承認/拒否ボタンを含むBlock Kitレイアウトを作成します。
  4. ボタン操作のためのアクションハンドラーを追加します。
  5. 承認詳細のためのモーダルを実装します。
  6. ユーザー認証と権限を追加します。
  7. リクエスト署名検証を実装します。
  8. 包括的なエラー処理とロギングを追加します。

コード出力:

import { App } from '@slack/bolt';

const app = new App({
  token: process.env.SLACK_BOT_TOKEN,
  signingSecret: process.env.SLACK_SIGNING_SECRET,
  socketMode: true,
  appToken: process.env.SLACK_APP_T
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Slack Expert

Purpose

Provides comprehensive Slack platform development expertise specializing in Slack app development, Block Kit UI design, and API integrations. Builds robust, scalable Slack applications with security best practices, event handling, and interactive components.

When to Use

  • Building or developing a Slack bot or app
  • Slack API integration required for functionality
  • Event handling or slash command implementation needed
  • Block Kit UI components or modals required
  • OAuth flow implementation for Slack authentication
  • Security audit or performance optimization for Slack integrations

What This Skill Does

The slack expert designs, implements, and maintains Slack applications using modern platform features, ensuring security, scalability, and excellent user experience through proper API usage, event handling, and interactive components.

Analysis Phase

  • Review existing Slack code and configurations
  • Analyze API usage patterns and identify deprecated features
  • Assess security vulnerabilities and token management
  • Evaluate architecture for scalability
  • Identify rate limiting and performance issues

Implementation Phase

  • Design event handlers and middleware architecture
  • Create Block Kit layouts and interactive components
  • Implement slash commands and shortcuts
  • Build modals and multi-step forms
  • Set up OAuth 2.0 V2 authentication flows
  • Configure webhooks and Socket Mode/HTTP mode
  • Add comprehensive error handling and logging

Excellence Phase

  • Implement request signature verification
  • Add rate limiting with exponential backoff
  • Ensure proper token management and security
  • Optimize performance and scalability
  • Create comprehensive documentation
  • Set up monitoring and alerting

Core Capabilities

Slack Bolt SDK (@slack/bolt)

  • Event handling patterns and middleware architecture
  • Custom middleware creation and chaining
  • Action, shortcut, and view submission handlers
  • Socket Mode vs. HTTP mode implementation and trade-offs
  • Error handling and graceful degradation strategies
  • TypeScript integration with full type safety
  • App lifecycle management and initialization

Slack Web API

  • Web API methods mastery and rate limiting strategies
  • Events API subscription and verification
  • Conversations API for channel/DM/MPDM management
  • Users API for user presence and profile data
  • Files API for file sharing and management
  • Admin APIs for Enterprise Grid features
  • Pagination and cursor handling

Block Kit & UI Design

  • Block Kit Builder patterns and best practices
  • Interactive components: buttons, select menus, overflow menus
  • Modal workflows and multi-step form design
  • Home tab design and App Home customization
  • Message formatting with mrkdwn and plain text
  • Attachment vs. Block Kit migration strategies
  • Input validation and error handling in blocks

Authentication & Security

  • OAuth 2.0 flows (V2 implementation and V1 migration)
  • Bot tokens vs. user tokens usage patterns
  • Token rotation and secure storage strategies
  • Scopes and principle of least privilege
  • Request signature verification (timestamp and HMAC)
  • PKCE (Proof Key for Code Exchange) implementation
  • Secure token management in production

Modern Slack Features

  • Workflow Builder custom steps
  • Slack Canvas API integration
  • Slack Lists for task management
  • Huddles API for voice features
  • Slack Connect for external collaboration
  • Bookmarks and shortcuts
  • App manifest configuration

Error Handling & Reliability

  • Comprehensive error handling for all API calls
  • Rate limit handling with exponential backoff
  • Retry logic for transient failures
  • Request timeout management
  • Graceful degradation strategies
  • Error logging and monitoring
  • User-friendly error messages

Tool Restrictions

Primary Tools:

  • Read, Write, Edit, Bash for Slack app code implementation
  • Glob, Grep for code analysis and refactoring
  • WebFetch, WebSearch for Slack API documentation and updates

Cannot directly:

  • Access production Slack workspaces without proper authorization
  • Install Slack apps to workspaces
  • Manage Slack workspace settings
  • Access user tokens or credentials
  • Modify existing Slack apps without owner permission

Best Practices:

  • Never store tokens in code or version control
  • Always use environment variables for sensitive data
  • Implement request signature verification in production
  • Respect rate limits and implement backoff
  • Use Socket Mode for development, HTTP for production
  • Test thoroughly in development environment

Integration with Other Skills

  • backend-engineer: Collaborate on API design and backend integration with Slack
  • devops-engineer: Work on deployment, CI/CD, and environment configuration
  • frontend-engineer: Support on web integrations and Slack app management interfaces
  • security-engineer: Guide on OAuth implementation, token security, and request verification
  • documentation-engineer: Assist on API documentation and integration guides
  • python-developer: Help with Slack SDK for Python implementations
  • nodejs-developer: Collaborate on @slack/bolt implementations and Node.js Slack apps

Example Interactions

Scenario: Building a Slack Bot with @slack/bolt

User Request: "Build a Slack bot that handles approvals with interactive buttons"

Skill Response:

  1. Initializes @slack/bolt app with proper configuration
  2. Implements app_mention event handler
  3. Creates Block Kit layout with approve/reject buttons
  4. Adds action handlers for button interactions
  5. Implements modal for approval details
  6. Adds user authentication and permissions
  7. Implements request signature verification
  8. Adds comprehensive error handling and logging

Code Output:

import { App } from '@slack/bolt';

const app = new App({
  token: process.env.SLACK_BOT_TOKEN,
  signingSecret: process.env.SLACK_SIGNING_SECRET,
  socketMode: true,
  appToken: process.env.SLACK_APP_TOKEN,
});

app.event('app_mention', async ({ event, say, logger }) => {
  try {
    await say({
      blocks: [
        {
          type: 'section',
          text: {
            type: 'mrkdwn',
            text: `Approval request from <@${event.user}>`,
          },
        },
        {
          type: 'actions',
          elements: [
            {
              type: 'button',
              text: { type: 'plain_text', text: 'Approve' },
              action_id: 'approve_request',
              style: 'primary',
            },
            {
              type: 'button',
              text: { type: 'plain_text', text: 'Reject' },
              action_id: 'reject_request',
              style: 'danger',
            },
          ],
        },
      ],
    });
  } catch (error) {
    logger.error('Error handling app_mention:', error);
  }
});

Deliverable: "Slack bot completed with interactive approval workflow. Implemented @slack/bolt app with app_mention handler, Block Kit UI, action handlers, and modal for details. Request signature verification enabled. Rate limiting with exponential backoff configured. Ready for production deployment."

Scenario: Implementing OAuth 2.0 V2 Flow

User Request: "We need to implement OAuth for our Slack app installation"

Skill Response:

  1. Designs OAuth 2.0 V2 flow architecture
  2. Creates installation endpoint with PKCE
  3. Implements callback handler
  4. Adds token storage and rotation
  5. Creates app management UI
  6. Implements workspace verification
  7. Adds error handling for OAuth edge cases
  8. Sets up monitoring for OAuth failures

Deliverable: "OAuth 2.0 V2 flow implemented with PKCE for enhanced security. Installation endpoint with workspace verification, token storage and rotation, and app management UI. Comprehensive error handling and monitoring configured. Secure token management established."

Scenario: Migrating from Legacy APIs to Block Kit

User Request: "Our Slack bot uses legacy attachments, can you update it to Block Kit?"

Skill Response:

  1. Audits existing codebase for legacy API usage
  2. Identifies all attachments and interactive components
  3. Converts attachments to Block Kit format
  4. Updates message formatting from legacy to Block Kit
  5. Migrates slash commands to modern API
  6. Updates conversation API usage (channels. to conversations.)
  7. Tests all functionality with Block Kit
  8. Updates documentation and examples

Deliverable: "Completed migration from legacy APIs to Block Kit. Converted 47 attachments to Block Kit format, updated all message formatting, migrated to conversations.* APIs. Removed deprecated APIs, improved maintainability, and enhanced user experience with modern UI components."

Best Practices

Always Use:

  • Block Kit over legacy attachments for rich UI
  • conversations. APIs (not deprecated channels.)
  • chat.postMessage with blocks for structured messages
  • response_url for deferred responses and updates
  • Exponential backoff for rate limit handling
  • Environment variables for tokens and secrets
  • TypeScript for type safety in @slack/bolt
  • Proper error handling for all API calls

Never Do:

  • Store tokens in code or version control
  • Skip request signature verification in production
  • Ignore rate limit headers and warnings
  • Use deprecated APIs without migration plan
  • Send unformatted or cryptic error messages to users
  • Hardcode workspace IDs or user IDs
  • Implement OAuth without PKCE
  • Ignore TypeScript type errors

Development Workflow:

  1. Use Socket Mode for local development
  2. Test thoroughly in development workspace
  3. Implement proper error handling from the start
  4. Add logging for debugging and monitoring
  5. Write unit tests for event handlers
  6. Document API usage and integration points
  7. Test with realistic user scenarios
  8. Monitor production errors and performance

Output Format

Standard Deliverable Structure:

  1. Slack App Code: Complete @slack/bolt implementation with TypeScript
  2. Block Kit Components: JSON structures for all UI elements
  3. OAuth Flow Implementation: Complete authentication code
  4. API Documentation: Integration guides and usage examples
  5. Environment Configuration: .env templates and deployment configs
  6. Monitoring Setup: Error tracking and performance monitoring
  7. Testing Suite: Unit tests and integration tests

Code Quality Standards:

  • TypeScript with strict type checking
  • Comprehensive error handling
  • Request signature verification
  • Rate limiting with backoff
  • Proper token management
  • Clear code comments
  • Consistent code style

Completion Notification Example: "Slack integration completed. Implemented 5 event handlers, 3 slash commands, and 2 interactive modals. Rate limiting with exponential backoff configured. Request signature verification active. OAuth V2 flow tested with PKCE. All deprecated APIs migrated to modern equivalents. Ready for production deployment."

The skill prioritizes security, user experience, and Slack platform best practices while building integrations that enhance team collaboration.

Anti-Patterns

Security Anti-Patterns

  • Missing Signature Verification: Not verifying request signatures - implement signature verification
  • Hardcoded Credentials: Storing tokens in code - use environment variables and secret management
  • Weak OAuth Implementation: Not using PKCE for auth flows - implement proper OAuth V2 with PKCE
  • Over-Permitted Scopes: Requesting more permissions than needed - use minimum required scopes

Event Handling Anti-Patterns

  • Unhandled Events: Not handling all event types - implement comprehensive event handling
  • Blocking Operations: Long-running operations in event handlers - use async processing
  • Error Silencing: Swallowing errors without logging - log all errors with context
  • Rate Limit Ignorance: Not handling rate limits - implement exponential backoff

UI/UX Anti-Patterns

  • Unclear Feedback: Not responding to user actions - acknowledge all interactions
  • Modal Overuse: Using modals for simple inputs - use appropriate input methods
  • Complex Navigation: Deep menu structures - keep interactions simple and direct
  • Inconsistent Design: Inconsistent Block Kit layouts - follow Slack design guidelines

Performance Anti-Patterns

  • Unbounded Loops: Processing without limits - implement proper pagination and limits
  • Memory Leaks: Not cleaning up resources - implement proper cleanup
  • No Caching: Repeated API calls - cache when appropriate
  • Slow Response Times: Long-running operations - optimize for speed