This is a comprehensive reference for building production Slack apps with the Bolt framework across Python, JavaScript, and Java. It covers the essentials: Block Kit for rich UIs, slash commands, event handling, OAuth flows for multi-workspace distribution, and interactive components like modals and buttons. The patterns are practical and include concrete details like Block Kit's 50-block message limit and the reminder that 70% of users abandon installations with excessive permissions. If you're moving beyond webhook experiments to actual Slack integrations, this gives you the architectural patterns and security handling you need without having to piece together docs.

skills.sh installs
205
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill slack-bot-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Slack Bot Builder

Patterns

Bolt App Foundation Pattern

The Bolt framework is Slack's recommended approach for building apps. It handles authentication, event routing, request verification, and HTTP request processing so you can focus on app logic.

Key benefits:

  • Event handling in a few lines of code
  • Security checks and payload validation built-in
  • Organized, consistent patterns
  • Works for experiments and production

Available in: Python, JavaScript (Node.js), Java

When to use: ['Starting any new Slack app', 'Migrating from legacy Slack APIs', 'Building production Slack integrations']

# Python Bolt App
from slack_bolt import App
from slack_bolt.adapter.socket_mode import SocketModeHandler
import os

# Initialize with tokens from environment
app = App(
    token=os.environ["SLACK_BOT_TOKEN"],
    signing_secret=os.environ["SLACK_SIGNING_SECRET"]
)

# Handle messages containing "hello"
@app.message("hello")
def handle_hello(message, say):
    """Respond to messages containing 'hello'."""
    user = message["user"]
    say(f"Hey there <@{user}>!")

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Security, DevOps & CI/CD, Automation & Workflows, Python, Java & JVM
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

More Security
1martinholovsky avatarcloud-api-integrationmartinholovsky/claude-skills-generatorExpert skill for integrating cloud AI APIs (Claude, GPT-4, Gemini). Covers secure API key management, prompt injection prevention, rate limiting, cost optimizat201skills.sh installs
2markpitt avatarazure-devopsmarkpitt/claude-skillsComprehensive skill for working with Azure DevOps REST API across all services including Boards (work items, queries, backlogs), Repos (Git, pull requests, comm191skills.sh installs
3personamanagmentlayer avatarcode-review-expertpersonamanagmentlayer/pclExpert-level code review focusing on quality, security, performance, and maintainability. Use this skill for conducting thorough code reviews, identifying issue189skills.sh installs
4martinholovsky avatarkanidm-expertmartinholovsky/claude-skills-generatorExpert in Kanidm modern identity management system specializing in user/group management, OAuth2/OIDC, LDAP, RADIUS, SSH key management, WebAuthn, and MFA. Deep188skills.sh installs
5josiahsiegel avatardocker-2025-featuresjosiahsiegel/claude-plugin-marketplaceLatest Docker features (2025-2026) including Docker AI, Enhanced Container Isolation, BuildKit improvements, and Moby. PROACTIVELY activate for: (1) Docker AI /178skills.sh installs
6personamanagmentlayer avatarcloudflare-expertpersonamanagmentlayer/pclExpert-level Cloudflare Workers, CDN, edge computing, and security services171skills.sh installs