본문으로 건너뛰기
cccskills
무료GitHub에 공개

slack

Send messages, read channels, search Slack via its Web API. Use when the user wants to post to a channel, read recent messages, list users/channels, or search a workspace programmatically — no MCP server required.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Slack
설치 방법 보기

포함된 파일(1)

  • SKILL.md6.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Slack

Operates Slack via its public Web API (https://slack.com/api/METHOD). Covers messaging, channels/DMs, users, files, search, reactions, and pins — no MCP server required.

Usage

  • Use for: Posting to channels, reading recent history, listing channels/members, searching messages, managing reactions/pins.
  • Skip for: Interactive back-and-forth (needs Events API / RTM), human approval flows, Enterprise Grid admin ops (SCIM / Admin API).

Credentials check

[ -n "${SLACK_BOT_TOKEN:-$SLACK_USER_TOKEN}" ] && echo "SLACK_TOKEN: PRESENT" || echo "SLACK_TOKEN: MISSING"

Never echo the variable directly — the value would appear in the conversation transcript. Use only the boolean pattern above.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your slack credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key slack

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL: https://slack.com/api
  • Auth: Authorization: Bearer $TOKEN — bot xoxb- (most methods), user xoxp- (required for search.*). Header only, never query param.
  • HTTP 200 on errors. Status alone means nothing — every response is JSON {"ok": true|false, ...}; on false, read .error (channel_not_found, missing_scope, invalid_auth, ratelimited, not_in_channel, no_text). Always branch on .ok.
  • Content-Type: application/json; charset=utf-8 for writes; reads also accept form-encoded / GET query strings.
  • Rate limits: per-method tiers (Tier 1 ~1/min admin → Tier 4 100+/min; Special for chat.postMessage ~1/sec/channel + workspace cap). On 429, honor Retry-After: <seconds> header.

Token scopes

Bot tokens need explicit scopes per method (chat:write, channels:read/:history, users:read(+.email), reactions:write, etc.). Wrong scope → {"ok": false, "error": "missing_scope"}. search.messages requires a user token (xoxp-) with search:read. Scopes are additive-only; downgrading needs revoke + reinstall.

Endpoints

MethodOne-liner
chat.postMessage / .update / .delete / .postEphemeralPost, edit, delete, post-to-one-user
conversations.list / .info / .members / .joinEnumerate / inspect / join channels
conversations.history / .repliesChannel messages / thread replies
users.list / .info / .conversationsMember directory, by ID, user's channels
files.getUploadURLExternal / .completeUploadExternal / .listCurrent upload flow + listing
search.messages / search.filesSearch (user token + search:read)
reactions.add / .removeEmoji reactions
pins.add / .remove / .listPinned messages

Primary workflow — post a message

curl -sL -X POST -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
  -H "Content-Type: application/json; charset=utf-8" \
  "https://slack.com/api/chat.postMessage" \
  -d '{"channel":"C0123ABC","text":"deploy v2.3.1 succeeded"}' \
  | jq '{ok, error, ts}'

Pass a channel ID (C0123ABC), not a name. Always include text as fallback even when sending blocks: [...] (design at Block Kit Builder https://app.slack.com/block-kit-builder). <!-- unverified: check slack docs --> Thread reply: add "thread_ts": "1745520000.000100" (parent's ts).

Secondary workflows

# Read recent messages (Tier 3, reverse chron). Paginate via response_metadata.next_cursor.
curl -sL -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
  "https://slack.com/api/conversations.history?channel=C0123ABC&limit=100" \
  | jq '{ok, has_more, messages: [.messages[] | {user, text, ts}]}'

# List channels (Tier 2). types default is public only.
curl -sL -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
  "https://slack.com/api/conversations.list?types=public_channel,private_channel&exclude_archived=true&limit=200"

# Bot joins public channel before posting (avoids not_in_channel)
curl -sL -X POST -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
  -H "Content-Type: application/json; charset=utf-8" \
  "https://slack.com/api/conversations.join" -d '{"channel":"C0123ABC"}'

Gotchas

  • HTTP 200 lies. Every call can fail with status 200 — always branch on .ok and map .error before surfacing.
  • Channel IDs (C0123ABC), not names (#general). Most endpoints reject names. Resolve once via conversations.list and cache.
  • Bot must be in the channel to post or you get not_in_channel. Fix: conversations.join (public) or admin /invite @bot in UI (private — no self-join).
  • Timestamps are strings with microsecond precision ("1745520000.000100"). Compare as strings or split on . — never parse as float; precision is lost and thread_ts references break.
  • Pagination is cursor-based, not page-number. Read response_metadata.next_cursor, pass back as cursor=. Empty/absent = end.
  • Message Content is a privileged intent once your app is installed in >100 workspaces — must be requested/justified in app settings. <!-- unverified: check slack docs -->
  • files.upload is deprecated. Current flow: (1) files.getUploadURLExternal → URL + file ID, (2) PUT bytes to that URL, (3) files.completeUploadExternal with file ID (+ optional channel_id).
  • Rate limit tiers vary per method — don't assume one tier per family. On 429, sleep Retry-After seconds.

Attribution

When done, state: Used skill: Slack (from teleport catalog).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

context7

무료

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

discord

무료

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

exa

무료

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

figma

무료

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

mnlt의 스킬 모두 보기

이 스킬의 문제 신고