slack-notifications
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMode: Cognitive/Prompt-Driven — No standalone utility script; use via agent context.
模式:认知/提示驱动 — 无独立实用脚本,需通过Agent上下文使用。
Slack Notifications Skill
Slack Notifications Skill
Overview
概述
This skill provides Slack API operations with progressive disclosure for optimal context usage.
Context Savings: ~90% reduction
- MCP Mode: ~15,000 tokens always loaded (30+ tools)
- Skill Mode: ~500 tokens metadata + on-demand loading
本Skill提供Slack API操作能力,采用渐进式披露实现最优上下文使用。
上下文节省:降低约90%
- MCP模式:始终加载约15,000 tokens(30+工具)
- Skill模式:约500 tokens元数据 + 按需加载
Requirements
要求
- SLACK_BOT_TOKEN environment variable (required)
- SLACK_SIGNING_SECRET environment variable (optional, for event verification)
- SLACK_APP_TOKEN environment variable (optional, for Socket Mode)
- SLACK_BOT_TOKEN 环境变量(必填)
- SLACK_SIGNING_SECRET 环境变量(选填,用于事件验证)
- SLACK_APP_TOKEN 环境变量(选填,用于Socket模式)
Setting up Slack Bot Token
配置Slack Bot Token
- Create a Slack App at https://api.slack.com/apps
- Navigate to "OAuth & Permissions"
- Add required bot token scopes:
- - Send messages
chat:write - - List channels
channels:read - - Read channel history
channels:history - - List users
users:read - - Upload files
files:write - - Add reactions
reactions:write
- Install app to workspace
- Copy "Bot User OAuth Token" to environment variable
SLACK_BOT_TOKEN
- 在 https://api.slack.com/apps 创建Slack应用
- 导航到「OAuth & Permissions」页面
- 添加所需的Bot令牌权限范围:
- - 发送消息
chat:write - - 列出频道
channels:read - - 读取频道历史
channels:history - - 列出用户
users:read - - 上传文件
files:write - - 添加反应
reactions:write
- 将应用安装到工作区
- 复制「Bot User OAuth Token」到 环境变量
SLACK_BOT_TOKEN
Tools
工具
The skill provides 14 tools across 5 categories:
| Category | Tools | Confirmation Required |
|---|---|---|
| Messaging | post-message, post-thread, update-message, delete-message | Yes (all) |
| Channels | list-channels, get-channel, channel-history | No |
| Users | list-users, get-user, user-presence | No |
| Files | upload-file, list-files | Yes (upload only) |
| Reactions | add-reaction, get-reactions | No |
本Skill提供5个分类下的14个工具:
| 分类 | 工具列表 | 是否需要确认 |
|---|---|---|
| 消息发送 | post-message, post-thread, update-message, delete-message | 全部需要 |
| 频道管理 | list-channels, get-channel, channel-history | 不需要 |
| 用户管理 | list-users, get-user, user-presence | 不需要 |
| 文件管理 | upload-file, list-files | 仅上传需要 |
| 表情反应 | add-reaction, get-reactions | 不需要 |
Quick Reference
快速参考
bash
undefinedbash
undefinedPost message to channel
发送消息到频道
curl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{"channel": "C1234567890", "text": "Hello from Claude!"}'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{"channel": "C1234567890", "text": "Hello from Claude!"}'
curl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{"channel": "C1234567890", "text": "Hello from Claude!"}'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{"channel": "C1234567890", "text": "Hello from Claude!"}'
List channels
列出频道
curl -X GET "https://slack.com/api/conversations.list"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
curl -X GET "https://slack.com/api/conversations.list"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
Upload file
上传文件
curl -X POST https://slack.com/api/files.upload
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-F "channels=C1234567890"
-F "file=@report.pdf"
-F "title=Weekly Report"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-F "channels=C1234567890"
-F "file=@report.pdf"
-F "title=Weekly Report"
undefinedcurl -X POST https://slack.com/api/files.upload
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-F "channels=C1234567890"
-F "file=@report.pdf"
-F "title=Weekly Report"
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-F "channels=C1234567890"
-F "file=@report.pdf"
-F "title=Weekly Report"
undefinedTool Details
工具详情
Messaging Tools (Confirmation Required)
消息工具(需确认)
post-message
post-message
Send a message to a Slack channel.
Parameters:
- (required): Channel ID or name (e.g., "C1234567890" or "#general")
channel - (required): Message text (supports Slack markdown)
text - (optional): Parent message timestamp for threading
thread_ts - (optional): Rich message blocks (JSON array)
blocks
Example:
bash
curl -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"text": "Deployment successful!",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment Status*\n:white_check_mark: Production deployed successfully"
}
}
]
}'发送消息到Slack频道。
参数:
- (必填):频道ID或名称(例如:"C1234567890" 或 "#general")
channel - (必填):消息内容(支持Slack markdown)
text - (选填):消息所属父线程的时间戳,用于回复线程
thread_ts - (选填):富消息块(JSON数组)
blocks
示例:
bash
curl -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"text": "Deployment successful!",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment Status*\n:white_check_mark: Production deployed successfully"
}
}
]
}'post-thread
post-thread
Reply to a message in a thread.
Parameters:
- (required): Channel ID
channel - (required): Parent message timestamp
thread_ts - (required): Reply text
text
Example:
bash
curl -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"thread_ts": "1234567890.123456",
"text": "Thread reply here"
}'回复线程中的消息。
参数:
- (必填):频道ID
channel - (必填):父消息时间戳
thread_ts - (必填):回复内容
text
示例:
bash
curl -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"thread_ts": "1234567890.123456",
"text": "Thread reply here"
}'update-message
update-message
Update an existing message.
Parameters:
- (required): Channel ID
channel - (required): Message timestamp
ts - (required): New message text
text
Example:
bash
curl -X POST https://slack.com/api/chat.update \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"ts": "1234567890.123456",
"text": "Updated message"
}'更新已发送的消息。
参数:
- (必填):频道ID
channel - (必填):消息时间戳
ts - (必填):新的消息内容
text
示例:
bash
curl -X POST https://slack.com/api/chat.update \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"ts": "1234567890.123456",
"text": "Updated message"
}'delete-message
delete-message
Delete a message.
Parameters:
- (required): Channel ID
channel - (required): Message timestamp
ts
Example:
bash
curl -X POST https://slack.com/api/chat.delete \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"ts": "1234567890.123456"
}'删除消息。
参数:
- (必填):频道ID
channel - (必填):消息时间戳
ts
示例:
bash
curl -X POST https://slack.com/api/chat.delete \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"ts": "1234567890.123456"
}'Channel Tools
频道工具
list-channels
list-channels
List all channels in workspace.
Parameters:
- (optional): Comma-separated channel types (default: "public_channel")
types- Options: "public_channel", "private_channel", "mpim", "im"
- (optional): Max channels to return (default: 100)
limit
Example:
bash
curl -X GET "https://slack.com/api/conversations.list?types=public_channel,private_channel" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"列出工作区所有频道。
参数:
- (选填):逗号分隔的频道类型(默认:"public_channel")
types- 可选值:"public_channel", "private_channel", "mpim", "im"
- (选填):返回的最大频道数量(默认:100)
limit
示例:
bash
curl -X GET "https://slack.com/api/conversations.list?types=public_channel,private_channel" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"get-channel
get-channel
Get channel information.
Parameters:
- (required): Channel ID
channel
Example:
bash
curl -X GET "https://slack.com/api/conversations.info?channel=C1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"获取频道信息。
参数:
- (必填):频道ID
channel
示例:
bash
curl -X GET "https://slack.com/api/conversations.info?channel=C1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"channel-history
channel-history
Get channel message history.
Parameters:
- (required): Channel ID
channel - (optional): Max messages to return (default: 100)
limit - (optional): Start of time range (Unix timestamp)
oldest - (optional): End of time range (Unix timestamp)
latest
Example:
bash
curl -X GET "https://slack.com/api/conversations.history?channel=C1234567890&limit=50" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"Security Note: Channel history may contain sensitive information. Use with caution.
获取频道消息历史。
参数:
- (必填):频道ID
channel - (选填):返回的最大消息数量(默认:100)
limit - (选填):时间范围起始值(Unix时间戳)
oldest - (选填):时间范围结束值(Unix时间戳)
latest
示例:
bash
curl -X GET "https://slack.com/api/conversations.history?channel=C1234567890&limit=50" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"安全提示:频道历史可能包含敏感信息,请谨慎使用。
User Tools
用户工具
list-users
list-users
List all users in workspace.
Parameters:
- (optional): Max users to return (default: 100)
limit
Example:
bash
curl -X GET "https://slack.com/api/users.list" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"列出工作区所有用户。
参数:
- (选填):返回的最大用户数量(默认:100)
limit
示例:
bash
curl -X GET "https://slack.com/api/users.list" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"get-user
get-user
Get user profile information.
Parameters:
- (required): User ID
user
Example:
bash
curl -X GET "https://slack.com/api/users.info?user=U1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"获取用户资料信息。
参数:
- (必填):用户ID
user
示例:
bash
curl -X GET "https://slack.com/api/users.info?user=U1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"user-presence
user-presence
Get user online status.
Parameters:
- (required): User ID
user
Example:
bash
curl -X GET "https://slack.com/api/users.getPresence?user=U1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"获取用户在线状态。
参数:
- (必填):用户ID
user
示例:
bash
curl -X GET "https://slack.com/api/users.getPresence?user=U1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"File Tools
文件工具
upload-file (Confirmation Required)
upload-file(需确认)
Upload a file to Slack channel.
Parameters:
- (required): Comma-separated channel IDs
channels - (required): File path to upload
file - (optional): File title
title - (optional): Message text
initial_comment
Example:
bash
curl -X POST https://slack.com/api/files.upload \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-F "channels=C1234567890" \
-F "file=@C:\reports\weekly.pdf" \
-F "title=Weekly Report" \
-F "initial_comment=Here is this week's report"上传文件到Slack频道。
参数:
- (必填):逗号分隔的频道ID
channels - (必填):待上传文件路径
file - (选填):文件标题
title - (选填):附带的消息内容
initial_comment
示例:
bash
curl -X POST https://slack.com/api/files.upload \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-F "channels=C1234567890" \
-F "file=@C:\reports\weekly.pdf" \
-F "title=Weekly Report" \
-F "initial_comment=Here is this week's report"list-files
list-files
List files in channel.
Parameters:
- (optional): Channel ID to filter by
channel - (optional): User ID to filter by
user - (optional): Max files to return (default: 100)
count
Example:
bash
curl -X GET "https://slack.com/api/files.list?channel=C1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"列出频道中的文件。
参数:
- (选填):用于过滤的频道ID
channel - (选填):用于过滤的用户ID
user - (选填):返回的最大文件数量(默认:100)
count
示例:
bash
curl -X GET "https://slack.com/api/files.list?channel=C1234567890" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"Reaction Tools
表情反应工具
add-reaction
add-reaction
Add emoji reaction to a message.
Parameters:
- (required): Channel ID
channel - (required): Message timestamp
timestamp - (required): Emoji name (without colons, e.g., "thumbsup")
name
Example:
bash
curl -X POST https://slack.com/api/reactions.add \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"timestamp": "1234567890.123456",
"name": "thumbsup"
}'为消息添加emoji反应。
参数:
- (必填):频道ID
channel - (必填):消息时间戳
timestamp - (必填):emoji名称(不需要加冒号,例如:"thumbsup")
name
示例:
bash
curl -X POST https://slack.com/api/reactions.add \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "C1234567890",
"timestamp": "1234567890.123456",
"name": "thumbsup"
}'get-reactions
get-reactions
Get reactions on a message.
Parameters:
- (required): Channel ID
channel - (required): Message timestamp
timestamp
Example:
bash
curl -X GET "https://slack.com/api/reactions.get?channel=C1234567890×tamp=1234567890.123456" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"获取消息上的反应列表。
参数:
- (必填):频道ID
channel - (必填):消息时间戳
timestamp
示例:
bash
curl -X GET "https://slack.com/api/reactions.get?channel=C1234567890×tamp=1234567890.123456" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN"Agent Integration
Agent集成
Primary Agents
主要适用Agent
- devops: Infrastructure alerts, deployment notifications, monitoring
- incident-responder: Incident alerts, status updates, escalations
- devops:基础设施告警、部署通知、监控提醒
- incident-responder:事件告警、状态更新、升级通知
Secondary Agents
次要适用Agent
- pm: Sprint notifications, milestone updates, team announcements
- developer: Build notifications, PR alerts, test results
- qa: Test failure alerts, quality reports
- security-architect: Security alerts, vulnerability notifications
- pm:迭代通知、里程碑更新、团队公告
- developer:构建通知、PR提醒、测试结果推送
- qa:测试失败告警、质量报告推送
- security-architect:安全告警、漏洞通知
Common Use Cases
常见用例
Deployment Notifications
部署通知
bash
undefinedbash
undefinedNotify channel of successful deployment
通知频道部署成功
curl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#deployments", "text": ":rocket: Production deployment completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Production Deployment\n:white_check_mark: v1.2.3 deployed successfully\nDuration: 5m 23s" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#deployments", "text": ":rocket: Production deployment completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Production Deployment\n:white_check_mark: v1.2.3 deployed successfully\nDuration: 5m 23s" } } ] }'
undefinedcurl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#deployments", "text": ":rocket: Production deployment completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Production Deployment\n:white_check_mark: v1.2.3 deployed successfully\nDuration: 5m 23s" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#deployments", "text": ":rocket: Production deployment completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Production Deployment\n:white_check_mark: v1.2.3 deployed successfully\nDuration: 5m 23s" } } ] }'
undefinedIncident Alerts
事件告警
bash
undefinedbash
undefinedAlert on-call team of incident
告警值班团队发生事件
curl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#incidents", "text": "<!channel> :rotating_light: High severity incident detected", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Incident INC-1234\n:rotating_light: Severity: P1\nService: API Gateway\nStatus: 503 errors increasing" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#incidents", "text": "<!channel> :rotating_light: High severity incident detected", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Incident INC-1234\n:rotating_light: Severity: P1\nService: API Gateway\nStatus: 503 errors increasing" } } ] }'
undefinedcurl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#incidents", "text": "<!channel> :rotating_light: High severity incident detected", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Incident INC-1234\n:rotating_light: Severity: P1\nService: API Gateway\nStatus: 503 errors increasing" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#incidents", "text": "<!channel> :rotating_light: High severity incident detected", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Incident INC-1234\n:rotating_light: Severity: P1\nService: API Gateway\nStatus: 503 errors increasing" } } ] }'
undefinedTest Results
测试结果
bash
undefinedbash
undefinedPost test results
推送测试结果
curl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#qa", "text": "Test suite completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Test Results\n:white_check_mark: 245 passed\n:x: 3 failed\n:warning: 2 skipped" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#qa", "text": "Test suite completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Test Results\n:white_check_mark: 245 passed\n:x: 3 failed\n:warning: 2 skipped" } } ] }'
undefinedcurl -X POST https://slack.com/api/chat.postMessage
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#qa", "text": "Test suite completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Test Results\n:white_check_mark: 245 passed\n:x: 3 failed\n:warning: 2 skipped" } } ] }'
-H "Authorization: Bearer $SLACK_BOT_TOKEN"
-H "Content-Type: application/json"
-d '{ "channel": "#qa", "text": "Test suite completed", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Test Results\n:white_check_mark: 245 passed\n:x: 3 failed\n:warning: 2 skipped" } } ] }'
undefinedSecurity Considerations
安全注意事项
Token Security
令牌安全
- NEVER expose bot token in logs or error messages
- Store token in environment variable, not in code
- Use least-privilege scopes for bot token
- Rotate tokens periodically
- 绝对不要在日志或错误信息中暴露Bot令牌
- 将令牌存储在环境变量中,不要硬编码在代码里
- 为Bot令牌配置最小权限范围
- 定期轮换令牌
Message Security
消息安全
- All message operations require confirmation
- Channel history may contain sensitive information (PII, credentials, etc.)
- Validate channel permissions before posting
- Use private channels for sensitive communications
- 所有消息操作都需要确认
- 频道历史可能包含敏感信息(PII、凭证等)
- 发送消息前验证频道权限
- 敏感沟通使用私有频道
Data Privacy
数据隐私
- Comply with workspace data retention policies
- Avoid posting PII or credentials in messages
- Use Slack's data export features for compliance
- Respect user privacy and online status
- 遵守工作区数据保留政策
- 不要在消息中发送PII或凭证信息
- 使用Slack的数据导出功能满足合规要求
- 尊重用户隐私和在线状态
Error Handling
错误处理
Common Errors
常见错误
| Error | Cause | Solution |
|---|---|---|
| Missing or invalid token | Check |
| Invalid channel ID | Verify channel ID with |
| Bot lacks required permission | Add scope in Slack App settings |
| Too many requests | Implement exponential backoff |
| Invalid timestamp | Check message timestamp is correct |
| 错误码 | 原因 | 解决方案 |
|---|---|---|
| 令牌缺失或无效 | 检查 |
| 无效的频道ID | 通过 |
| Bot缺少所需权限 | 在Slack应用设置中添加对应的权限范围 |
| 请求过多 | 实现指数退避重试策略 |
| 无效的时间戳 | 检查消息时间戳是否正确 |
Retry Strategy
重试策略
For rate limiting errors, implement exponential backoff:
- Wait 1 second, retry
- Wait 2 seconds, retry
- Wait 4 seconds, retry
- Wait 8 seconds, retry
- Give up after 5 attempts
针对速率限制错误,实现指数退避重试:
- 等待1秒后重试
- 等待2秒后重试
- 等待4秒后重试
- 等待8秒后重试
- 5次尝试失败后终止重试
Rate Limits
速率限制
Slack API rate limits:
- Tier 1: 1 request per second
- Tier 2: 20 requests per minute
- Tier 3: 50 requests per minute
- Tier 4: 100 requests per minute
Methods by tier:
- : Tier 3 (50/min)
chat.postMessage - : Tier 2 (20/min)
conversations.list - : Tier 2 (20/min)
users.list - : Tier 4 (100/min)
files.upload
Slack API速率限制:
- Tier 1:每秒1次请求
- Tier 2:每分钟20次请求
- Tier 3:每分钟50次请求
- Tier 4:每分钟100次请求
各接口所属层级:
- :Tier 3(50次/分钟)
chat.postMessage - :Tier 2(20次/分钟)
conversations.list - :Tier 2(20次/分钟)
users.list - :Tier 4(100次/分钟)
files.upload
Related
相关链接
- Slack API Documentation: https://api.slack.com/docs
- Block Kit Builder: https://app.slack.com/block-kit-builder
- Slack App Management: https://api.slack.com/apps
- Slack API文档:https://api.slack.com/docs
- Block Kit构建器:https://app.slack.com/block-kit-builder
- Slack应用管理:https://api.slack.com/apps
Memory Protocol (MANDATORY)
内存协议(强制要求)
Before starting:
Read
.claude/context/memory/learnings.mdAfter completing:
- New pattern ->
.claude/context/memory/learnings.md - Issue found ->
.claude/context/memory/issues.md - Decision made ->
.claude/context/memory/decisions.md
ASSUME INTERRUPTION: If it's not in memory, it didn't happen.
开始前:
阅读
.claude/context/memory/learnings.md完成后:
- 新的模式 -> 写入
.claude/context/memory/learnings.md - 发现的问题 -> 写入
.claude/context/memory/issues.md - 做出的决策 -> 写入
.claude/context/memory/decisions.md
假设存在中断风险:未记录在内存中的内容等同于未发生。