slack-automation by casper-studios/casper-marketplace
npx skills add https://github.com/casper-studios/casper-marketplace --skill slack-automation与 Slack 工作区交互,进行频道管理、消息读取和内容分析。除非创建频道,否则所有操作均为只读。
What do you need?
│
├── Search for channels by name
│ └── references/search.md
│ └── Script: scripts/slack_search.py search
│
├── Read messages from a channel
│ └── references/fetch-news.md
│ └── Script: scripts/fetch_slack_news.py
│
├── Create a new channel
│ └── references/create-channel.md
│ └── Script: scripts/create_slack_channel.py
│
└── Categorize/analyze messages
└── references/categorize.md
└── Script: scripts/categorize_slack_messages.py
# Required in .env
SLACK_BOT_TOKEN=xoxb-your-bot-token
| 权限范围 | 用途 |
|---|---|
channels:read | 列出公开频道 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
channels:history |
| 读取公开频道消息 |
groups:read | 列出私有频道 |
groups:history | 读取私有频道消息 |
channels:manage | 创建频道 |
python scripts/slack_search.py search "internal" --limit 10
python scripts/slack_search.py read "internal-client" --days 7
python scripts/create_slack_channel.py "project-alpha" --private
对于客户频道:internal-{client-name}
internal-microsoft, internal-acme-corp免费 - Slack API 没有按请求收费。速率限制约为每分钟 50 个请求。
SLACK_BOT_TOKEN 存储在 .env 文件中(切勿提交到 git)xoxb- 开头 - 切勿在日志或输出中暴露channels:read - 列出公开频道(只读)channels:history - 读取公开频道消息(只读)groups:read - 列出机器人所在的私有频道(只读)groups:history - 读取私有频道消息(只读)channels:manage - 创建频道(写访问权限)症状: 读取或发布时出现 "channel_not_found" 错误 原因: 无效的频道 ID、机器人不在频道中,或是私有频道 解决方案:
slack_search.py search)/invite @botname)症状: "missing_scope" 或 "not_allowed_token_type" 错误 原因: 机器人令牌缺少所需的 OAuth 权限范围 解决方案:
channels:read、channels:history 等xoxb- 开头)症状: "invalid_auth" 或 "token_revoked" 错误 原因: OAuth 令牌过期、被撤销或配置不正确 解决方案:
.env 文件中 SLACK_BOT_TOKEN 的值是否正确症状: "ratelimited" 错误或 429 状态码 原因: 短时间内 API 请求过多 解决方案:
症状: 尽管拥有权限范围,但无法读取私有频道 原因: 机器人未被添加到私有频道 解决方案:
/invite @botnamegroups:read 和 groups:history 权限范围技能: slack-automation → content-generation 用例: 为每周新闻简报总结内部新闻 流程:
技能: slack-automation → transcript-search 用例: 在研究 Slack 讨论时查找相关会议 流程:
技能: slack-automation → google-workspace 用例: 将分类的 Slack 摘要存档到 Google Drive 流程:
每周安装数
91
仓库
GitHub 星标数
9
首次出现
14 天前
安全审计
安装于
cline91
github-copilot91
codex91
kimi-cli91
gemini-cli91
cursor91
Interact with Slack workspaces for channel management, message reading, and content analysis. All operations are read-only unless creating channels.
What do you need?
│
├── Search for channels by name
│ └── references/search.md
│ └── Script: scripts/slack_search.py search
│
├── Read messages from a channel
│ └── references/fetch-news.md
│ └── Script: scripts/fetch_slack_news.py
│
├── Create a new channel
│ └── references/create-channel.md
│ └── Script: scripts/create_slack_channel.py
│
└── Categorize/analyze messages
└── references/categorize.md
└── Script: scripts/categorize_slack_messages.py
# Required in .env
SLACK_BOT_TOKEN=xoxb-your-bot-token
| Scope | Purpose |
|---|---|
channels:read | List public channels |
channels:history | Read public channel messages |
groups:read | List private channels |
groups:history | Read private channel messages |
channels:manage | Create channels |
python scripts/slack_search.py search "internal" --limit 10
python scripts/slack_search.py read "internal-client" --days 7
python scripts/create_slack_channel.py "project-alpha" --private
For client channels: internal-{client-name}
internal-microsoft, internal-acme-corpFree - Slack API has no per-request cost. Rate limited to ~50 requests/minute.
SLACK_BOT_TOKEN in .env file (never commit to git)xoxb- - never expose in logs or outputchannels:read - List public channels (read-only)channels:history - Read public channel messages (read-only)groups:read - List private channels bot is in (read-only)groups:history - Read private channel messages (read-only)channels:manage - Create channels (write access)Symptoms: "channel_not_found" error when reading or posting Cause: Invalid channel ID, bot not in channel, or private channel Solution:
slack_search.py search)/invite @botname)Symptoms: "missing_scope" or "not_allowed_token_type" error Cause: Bot token missing required OAuth scopes Solution:
channels:read, channels:history, etc.xoxb-)Symptoms: "invalid_auth" or "token_revoked" error Cause: OAuth token expired, revoked, or incorrectly configured Solution:
.env for correct SLACK_BOT_TOKEN valueSymptoms: "ratelimited" error or 429 status code Cause: Too many API requests in short period Solution:
Symptoms: Can't read private channel despite having scopes Cause: Bot not added to the private channel Solution:
/invite @botnamegroups:read and groups:history scopes are addedSkills: slack-automation → content-generation Use case: Summarize internal news for weekly newsletter Flow:
Skills: slack-automation → transcript-search Use case: Find related meetings when researching Slack discussions Flow:
Skills: slack-automation → google-workspace Use case: Archive categorized Slack summaries to Google Drive Flow:
Weekly Installs
91
Repository
GitHub Stars
9
First Seen
14 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cline91
github-copilot91
codex91
kimi-cli91
gemini-cli91
cursor91
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
43,100 周安装
Excel自动化技能:使用xlwings实现高级实时交互、VBA执行与报表生成
3,500 周安装
Astro 使用指南:内容驱动型网站框架快速上手与核心配置
3,500 周安装
Apify Actor化教程:将现有软件转换为无服务器应用 | 快速部署指南
3,400 周安装
Claude Opus 4.5 迁移指南:从Sonnet/Opus旧版一键升级,解决工具过度触发等问题
3,500 周安装
Clerk 身份验证快速设置指南:支持 Next.js、React、Vue 等主流框架
3,500 周安装
Spring Boot 开发模式与架构指南:构建可扩展的REST API与生产级服务
3,400 周安装