Skip to content
Back to skills

Slack

ASecurity

Slack APIs enable custom apps, bots, and slash commands. This skill covers the `@slack/web-api` and `@slack/bolt` frameworks.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsbashgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill slack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Slack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Slack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-slack/badge)](https://www.skillsdirectory.com/skills/ashish7802-slack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Slack API Skill

## Overview
Slack APIs enable custom apps, bots, and slash commands. This skill covers the `@slack/web-api` and `@slack/bolt` frameworks.

## Installation
```bash
npm install @slack/bolt
pip install slack_bolt
```

## Authentication
Uses Bot User OAuth Tokens (`xoxb-`) for sending messages, and Signing Secrets to verify incoming requests from Slack.

## Core Concepts
- **Block Kit**: A JSON-based UI framework for building rich messages.
- **Events API**: Webhooks for real-time Slack activity.
- **Conversations**: Channels, DMs, or Private Groups.

## Common Workflows
1. Initialize Bolt `App` with token and signing secret.
2. Use `app.message()` to listen to text.
3. Use `app.client.chat.postMessage` to send messages.

## Error Handling
Catch `WebAPIPlatformError`. Check `error.data.error` (e.g., `channel_not_found`, `not_in_channel`).

## Security
You MUST verify the signature of incoming Slack requests using your Signing Secret. The Bolt framework does this automatically.

## Rate Limits
Tier 1 endpoints are 1 request per second. Tier 4 endpoints (like chat.postMessage) are 1 request per second per channel.

## Best Practices
Use Block Kit Builder to design UIs. Store state in your database rather than trying to pass complex state through Slack modal `private_metadata`.

## Troubleshooting
If your app can't post to a channel, ensure you have invited the bot to the channel first.

## References
- [API Reference](https://api.slack.com/apis)

## Why use this skill
Use this when your agent works with **slack** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Using outdated SDK or API versions from training data
- Inventing environment variable names
- Omitting error handling and retry logic

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- [`github-actions`](../github-actions/SKILL.md) — integrates with
- [`sentry`](../sentry/SKILL.md) — integrates with

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md2.1 KB
  • examples/example.py79 B
  • examples/example.ts103 B
  • prompts/post-message.md117 B
  • tests/skill.test.ts28 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.