slack-bridge

slack-bridge is a skill for Claude Code, Codex from treylom/ThisCodex. It costs 91 tokens per session (9,779 once invoked), scanned F, original, MIT.

A workflow for building a Slack bot that sends messages to local Claude Code or Codex command-line engines and replies in Slack threads.

In plain words
What is it for?
It helps create and verify a Slack bot, route messages to different local engines, load separate bot instructions, and keep conversations tied to their Slack threads.
Why use it?
It removes the need to manually connect Slack messages, local AI tools, bot identities, and thread-based conversation history.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also runs codex exec. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the thiscodex plugin — 7 skills, 4 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/treylom/thiscodex/slack-bridge
Any agent
npx skills add treylom/ThisCodex --skill slack-bridge
Clone the repo
git clone --depth 1 https://github.com/treylom/ThisCodex

Made for: Claude Code, Codex.

Or install thiscodex, the plugin that ships this one along with the rest of its 7 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slack-bridge

README.md
[![agentmods](https://agentmods.dev/badge/skills/treylom/thiscodex/slack-bridge.svg)](https://agentmods.dev/skills/treylom/thiscodex/slack-bridge)
Your own site
<a href="https://agentmods.dev/skills/treylom/thiscodex/slack-bridge"><img src="https://agentmods.dev/badge/skills/treylom/thiscodex/slack-bridge.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,779 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 6 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.09779
Opus 5 $0.00046 $0.04889
Sonnet 5 $0.00018 $0.01956
Haiku 4.5 $0.00009 $0.00978

Measured 6d ago against content hash 55b96e26ba9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade F, and why

slack-bridge scanned grade F with 6 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

env = dict(os.environ)

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- 🔴 **패키지 매니저(apt/dnf 등 sudo 동반) 경유로 짜지 않는다** — 대상 환경이 무-sudo 일 수 있다(WSL 실측). 공식 설치기는 sudo 를 요구하지 않고 전부 홈 디렉토리 아래에 설치한다.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **claude**: `bot-home/.claude/settings.json` 에 `SessionStart` 훅을 등록하고, `bot-home/.claude/hooks/notice.sh` 가 `additionalContext` JSON 을 표준출력으로 반환한다.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

p = subprocess.run([*cmd, prompt], capture_output=True, text=True,
skills/slack-bridge/SKILL.md · 488 lines

How it starts

The opening of the file, as written. The whole thing — 488 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slack Agent Bridge — Slack 봇 ↔ 로컬 엔진(claude/codex) 연결

claude-우선 짝 문서 = ThisCode skills/slack-bridge/SKILL.md. 두 문서는 프로토콜과 코드가 다르다(ThisCode = 공식 claude/channel MCP·TypeScript, ThisCodex = Slack Bolt Python·로컬 엔진 호출). 교차 갱신 계약: Slack scope의 선언↔실부여·재설치 의미, 검증 급, 보안 경계처럼 공유되는 사실은 양쪽에 동시에 반영하고, 구현 고유 코드·실행 환경(엔진별 샌드박스·플래그 등)은 각 소유 문서에만 둔다.

Slack 워크스페이스에 봇을 만들고, 메시지를 로컬 AI 엔진(Claude Code claude -p / Codex CLI codex exec)으로 라우팅해 스레드로 답하게 하는 전 공정. 2026-08-05 macOS 에서 전 단계 실측 검증됨(왕복·페르소나 로딩 포함). Windows 는 설치 명령만 다르고 공정은 동일하다 — Windows 실측은 아직 없으므로 어긋나는 단계가 나오면 그 단계를 기록하고 멈춘다.

전제

  • Slack CLI v4.6+ — 사용자에게 설치 명령을 떠넘기지 않는다. 아래 0단계가 탐지하고, 없으면 host 변경 동의 뒤 엔진이 설치·현재 셸 PATH 보정·확인까지 수행한다. Windows 네이티브(WSL 아님)만 예외: https://tools.slack.dev/slack-cli 의 공식 Windows 안내 사용
  • Slack 워크스페이스 = 본인이 앱을 설치할 권한이 있는 곳이어야 한다 — 수강생 실습은 본인 무료 워크스페이스 신설로 충분(생성자 = 관리자). ⚠️ 회사 워크스페이스는 관리자 승인 정책에 걸릴 수 있다.
  • 로컬에 claude(Claude Code) 또는 codex(Codex CLI) 중 최소 1개 설치·로그인 상태 — 엔진 1개만으로도 전 과정 재현 가능: codex 미설치 상태에서 codex: 접두사 메시지는 스레드에 오류 답변으로 돌아올 뿐, claude 만으로 왕복 검증(5단계)·스레드 연속 대화(6단계) 모두 재현된다.
  • Slack 워크스페이스에 로그인된 브라우저 (자동화 시: 브라우저 조작 도구)

포털(api.slack.com)에서 앱을 만들지 마세요 — 이 공정은 Slack CLI 가 앱 생성·설치·토큰 발급을 전부 처리합니다(slack createslack run). 웹에 흔한 '봇 토큰 복사' 방식 튜토리얼과 다른 공식 경로라, 토큰을 직접 다룰 일이 없습니다.

회사 워크스페이스의 관리자 승인이 필요하면 바로 안내하지 말고 아래 게이트를 먼저 실행한다. 새 OAuth scope를 승인하는 재설치 직전에도 두 번째 게이트를 실행한다. 두 이름은 자동화 불편이 아니라 소유권 경계다.

thiscodex automation-gate --gate slack_workspace_admin_approval \
  --status human_required --surface consent --flow slack-app \
  --operation review-slack-workspace-admin --terminal human_security_gate \
  --reason-code admin_approval_required
thiscodex automation-gate --gate slack_app_reinstall_approval \
  --status human_required --surface consent --flow slack-scope \
  --operation review-oauth-scope-grant --terminal human_security_gate \
  --reason-code admin_approval_required

0단계 — Slack CLI 확보 [자동 탐지·승인 후 설치]

사용자가 설치 명령을 칠 필요가 없다. 엔진은 PATH와 실파일을 먼저 탐지한다. 이미 설치돼 있으면 아무것도 바꾸지 않는다. 없으면 host 변경 직전에 아래 게이트로 동의를 받은 뒤 공식 설치기를 직접 실행한다:

Read the full file on GitHub · 488 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 488 lines · 91 tokens per session scan F 55b96e26ba9b

Subscribe to this mod's changes

slack-bridge is a skill published in the GitHub repository treylom/ThisCodex (18 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 9,779 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it F with 6 findings (harvests environment variables, asks for root, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

omni-mcp

Connect to the OmniRoute MCP server (110 tools, 3 transports: SSE/stdio/HTTP). Covers routing, cache, compression, memory, skills, providers, and audit tools across 33 permission scopes.

diegosouzapw/OmniRoute · 48 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens