AGENT SKILL

Slack MCP 机器人配置

slackbots-setup

从历史记录中恢复先前的 Slack MCP Mail 机器人配置,执行由 browserclaw 引导的 OAuth/重新安装流程,并验证 userscope 与 bot 令牌。

适用职业IT 管理员
License 许可
MIT
最近更新
2026-11-14
Stars
★ 6
Forks
0

01 前言 Front Matter

name
slackbots-setup
type
workflow
scope
user
description
Recover prior Slack MCP Mail bot setup from history, run browserclaw-guided OAuth/reinstall flow, and verify userscope/bot tokens.

02 资源文件 3

03 SKILL.md 正文

Slackbots Setup (MCP Mail)

Triage pointer (added 2026-07-13): This skill is for scope repair — reinstalling the Slack app to add missing OAuth scopes. If your sweep symptom is "bot is in 0 channels" but chat.postMessage still succeeds (e.g. the bot can post in DMs but can't read any channel), the issue is channel-membership, not scope. Load ~/.hermes/skills/devops/slack-mcp-mail-bot-reinstall/SKILL.md §6 for the slack.getClient() re-invite recipe — reinstalling will NOT auto-rejoin the bot to channels it was removed from.

1) Recover prior setup context via /history

Before changing anything, gather prior context:

  • /history "A0A3WSV6BM1"
  • /history "mcp mail"
  • /history "SLACK_MCP_XOXP_TOKEN"
  • /history "Slack bot reinstall"

Use the results to confirm whether this is a new install, scope refresh, or token drift.

2) Pull latest identity state

TOKEN=$(python3 - <<'PY'
import json
with open('$HOME/.mcp_mail/credentials.json') as f:
    print(json.load(f).get('SLACK_BOT_TOKEN',''))
PY)

curl -s https://slack.com/api/auth.test -H "Authorization: Bearer ${TOKEN}"

3) Browser flow with /browserclaw

Use headless browserclaw capture first (for a reproducible auth path):

browserclaw learn --url https://api.slack.com/apps/A0A3WSV6BM1/oauth \
  --output-dir /tmp/slackbots-browserclaw \
  --headless \
  --manual \
  --goal "Capture OAuth + permissions surfaces for MCP Mail reinstall"

Then perform the real reinstall in the interactive browser flow from that session output:

  1. Open https://api.slack.com/apps/A0A3WSV6BM1/oauth
  2. In OAuth & Permissions, ensure these bot scopes are present:
    • channels:write, groups:write, mpim:write, im:write
  3. In User Token Scopes, include any required user scopes for your flows (current profile includes channels/groups/ims/mpim read/write/history + chat:write + users:read).
  4. Click Reinstall to Workspace and allow the OAuth prompt.

4) Verify userscope/bot behavior

Run:

  • chat.postMessage against #ai-slack-test and your DM target.
  • conversations.mark to validate read-state scope path.
  • conversations.history against a visible channel.

Success criteria:

  • Existing slack_post path still posts as mcp_agent_mail.
  • Mark/read and history/permission checks succeed with current userscope.

5) Persist evidence

Store the verification snippet and timestamp in ~/roadmap or a daily memory note before closing the setup task.

04 同仓库更多 Skills

jleechanorg
jleechanorg/jleechan-skills

disk-reclaim-playbook

Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.

★ 6
jleechanorg
jleechanorg/jleechan-skills

claudea-bench

Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr

Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).

★ 6
jleechanorg
jleechanorg/jleechan-skills

whisper

OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.

★ 6
jleechanorg
jleechanorg/jleechan-skills

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr-report

This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.

★ 6