agentleFS
tuannv14tuannv14/claude-team-toolkit/skills/slack/SKILL.md

slack

Skill1 starsChanged 7 months agoMITView on GitHub

Use when user references Slack, *.slack.com/archives/ URLs, channel mentions like #deploys, or asks to post/thread/upload-file/fetch-history/send deploy or incident alert. Multi-workspace via SLACK_PROFILE.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use goplaces, bluebubbles and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    goplaces

    Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.

    Also in 5 projects that use this

  • seedprodSkill

    bluebubbles

    Build or update the BlueBubbles external channel plugin for OpenClaw (extension package, REST send/probe, webhook inbound).

    Also in 4 projects that use this

  • +10 more from seedprod

The file

Files
SKILL.md

/slack — Slack Web API (multi-workspace)

REST against https://slack.com/api/. Bearer auth with bot OAuth token. Profiles isolate workspaces. Profile resolution: --profile → SLACK_PROFILE → ~/.slack/active_profile → [default].

Overview

REST against Slack Web API with bot OAuth tokens (xoxb-). Profiles isolate workspaces. Default to bot tokens — never use user tokens (xoxp-) which carry the user's full permissions.

When to Use

  • Posting deploy / incident alerts to channels
  • Threaded replies to existing messages (incident timelines)
  • Block Kit rich messages (status dashboards, deploy summaries)
  • File uploads (logs, screenshots) for incident triage
  • Fetching channel history for context

When NOT to Use

  • Real-time event consumption → use Events API + your own server, not REST
  • Slash command handlers → that's an HTTP webhook, not API client
  • Complex workflows → Slack Workflow Builder or Bolt SDK
  • Direct messages to users at scale → looks spammy, against TOS

Dependencies

curl, jq.

Profile config

~/.slack/credentials (mode 600):

[default]
bot_token = xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
default_channel = #general

[work]
bot_token = xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
default_channel = #engineering
require_confirm = true                   # gate every post

Get a bot token:

  1. https://api.slack.com/apps → Create New App → From scratch
  2. OAuth & Permissions → add bot scopes (least privilege): chat:write, channels:read, users:read, files:write
  3. Install to Workspace → copy "Bot User OAuth Token" (starts with xoxb-)
  4. Invite the bot to channels: /invite @YourBot

Never use xoxp- user tokens unless absolutely necessary.

Helpers

Shared profile/INI/ctt_* pattern reference: profiles-and-credentials.

source "$HOME/.claude-team-toolkit/lib/credentials.sh"
source "$HOME/.claude-team-toolkit/lib/confirm.sh"
ctt_load_creds slack "$PROFILE"

slack_api() wrapper and full dispatch implementations live in recipes.md — load when user invokes a specific verb.

VerbMutating?Confirm
channels, history, usersno—
post, post-blocks, threadyesctt_audit_log; ctt_confirm if profile require_confirm
uploadyesctt_audit_log

Reference files (load on demand)

  • recipes.md — full curl + jq implementations for every verb above. Load when user invokes a specific dispatch verb.

Common Mistakes

  • Using xoxp- user tokens "to make it work" → security risk. Re-install bot with proper scopes.
  • Posting before inviting bot to channel → not_in_channel error. /invite @YourBot first.
  • Block Kit JSON syntax errors → validate at block-kit-builder before posting
  • Old upload API (files.upload) → deprecated. Use 2-step getUploadURLExternal flow.
  • Ignoring 429 rate limits → workspace-wide cooldown affects all apps
  • Posting to #general without confirmation → most workspaces have it on ALL channel

Safety

  • Slack messages are public to channel members — confirm channel name before posting, especially for #general or external/shared channels.
  • The require_confirm profile flag enforces confirmation for ANY post.
  • Bot tokens have scope — if 401/missing_scope, re-install app with the needed scope, don't escalate to user token.
  • Channel content read via history may contain sensitive info — treat as confidential.
  • Rate limits: Tier 4 (chat.postMessage = 100/min). Honor Retry-After on 429.

Token-saving tip

Bot tokens are per-app-per-workspace. Create one Slack app per use case (deploy notifier, on-call alerter, etc.) so revoking one doesn't kill others.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.