setup-spa

Setup instructions for SPA, a Slack bot that sends mentioned conversation threads to Claude Code sessions and streams the replies back into Slack.

In plain words
What is it for?
Use it to configure the Slack app, enable Socket Mode, install the bot, invite it to a channel, and connect threads to Claude Code runs.
Why use it?
It removes the manual work of copying a Slack thread into a coding-agent session and supports continued work when people reply in tracked threads.

Skill for Claude CodeCodex

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/openrouterlabs/spawn/setup-spa
Any agent
npx skills add OpenRouterLabs/spawn --skill setup-spa
Clone the repo
git clone --depth 1 https://github.com/OpenRouterLabs/spawn

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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 $0.00021 $0.01185
Opus 5 $0.00010 $0.00593
Sonnet 5 $0.00004 $0.00237
Haiku 4.5 $0.00002 $0.00119

Measured 2d ago against content hash 9d7de16ad39a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup-spa scanned grade B with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (helpers.ts, main.ts, spa.test.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

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

sudo systemctl daemon-reload
.claude/skills/setup-spa/SKILL.md · 129 lines

How it starts

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

SPA — Spawn's Personal Agent

Slack bot that listens in #proj-spawn via Socket Mode. When @mentioned, it collects the full thread, pipes it into a claude -p session, and streams Claude Code's responses back to the Slack thread in real-time.

Subsequent thread replies in tracked threads auto-trigger new Claude Code runs.

Slack App Setup

Option A: Create from manifest (recommended)

  1. Go to https://api.slack.com/apps
  2. Click Create New App > From a manifest
  3. Select your workspace
  4. Paste the contents of slack-manifest.yml from this directory
  5. Click Create
  6. Socket Mode: Settings > Basic Information > scroll to "App-Level Tokens" > Generate Token and Scopes > add connections:write scope > copy the xapp-... token
  7. Install to Workspace: Features > OAuth & Permissions > Install > copy the xoxb-... Bot User OAuth Token
  8. Invite the bot to the target channel: /invite @spa
  9. Get the channel ID: Right-click channel name > View channel details > copy the ID (starts with C)

Option B: Manual setup

  1. Go to https://api.slack.com/apps > Create New App > From scratch
  2. Name it SPA, select the workspace
  3. Socket Mode: Settings > Socket Mode > Enable > generate app-level token with connections:write scope > save xapp-...
  4. Event Subscriptions: Features > Event Subscriptions > Enable > subscribe to bot events: app_mention, message.channels, message.groups
  5. OAuth Scopes: Features > OAuth & Permissions > Bot Token Scopes: app_mentions:read, channels:history, channels:read, groups:history, groups:read, chat:write, reactions:write
  6. Install to Workspace > save xoxb-... token
  7. Invite bot to channel, get channel ID

Env Vars

Var Description
SLACK_BOT_TOKEN Bot User OAuth Token (xoxb-...)
SLACK_APP_TOKEN App-Level Token for Socket Mode (xapp-...)
SLACK_CHANNEL_ID Channel ID to listen in (e.g. C0123456789)
GITHUB_REPO Target repo context (default: OpenRouterLabs/spawn)
REPO_ROOT Working directory for Claude Code (default: cwd)

Read the full file on GitHub · 129 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 129 lines · 21 tokens per session scan B 9d7de16ad39a

Subscribe to this mod's changes

setup-spa is a skill published in the GitHub repository OpenRouterLabs/spawn (233 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 1,185 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.