spawn: Skill for Claude Code

.claude/skills/setup-spa/SKILL.md

setup-spa is a skill for Claude Code from OpenRouterLabs/spawn. It costs 21 tokens per session (1,185 once invoked), scanned B, original, Apache-2.0.

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 Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is OpenRouterLabs/spawn's own configuration. It tells Claude Code how to work on spawn itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spawn configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/lab/spawn/.claude/skills/setup-spa/start-spa.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to OpenRouterLabs/spawn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/OpenRouterLabs/spawn/main/.claude/skills/setup-spa/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/OpenRouterLabs/spawn

Made for: Claude Code.

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 setup-spa

README.md
[![agentmods](https://agentmods.dev/badge/skills/openrouterlabs/spawn/setup-spa/github.svg)](https://agentmods.dev/skills/openrouterlabs/spawn/setup-spa)
Your own site
<a href="https://agentmods.dev/skills/openrouterlabs/spawn/setup-spa"><img src="https://agentmods.dev/badge/skills/openrouterlabs/spawn/setup-spa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-spa

Your own site · 80×15
<a href="https://agentmods.dev/skills/openrouterlabs/spawn/setup-spa"><img src="https://agentmods.dev/badge/skills/openrouterlabs/spawn/setup-spa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.00021 $0.01185
Opus 5.5 $0.00008 $0.00474
Sonnet 5.5 $0.00004 $0.00237
Haiku 4.5 $0.00002 $0.00119

Measured 2mo ago against content hash 9d7de16ad39a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (250 stars, last pushed 3d 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.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.

Related

setup-spa compared with skills from other repositories

setup-spa next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-spaOpenRouterLabs/spawnSkill2503d agoApache-2.0B21Claude Code
officecli-pitch-deckiOfficeAI/OfficeCLISkill33k7d agoApache-2.0A163Claude Code, Codex
morph-pptiOfficeAI/OfficeCLISkill33k7d agoApache-2.0A169Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill33k7d agoApache-2.0A141Claude Code, Codex
officecli-financial-modeliOfficeAI/OfficeCLISkill33k7d agoApache-2.0A222Claude Code, Codex
officecli-pptxiOfficeAI/OfficeCLISkill33k7d agoApache-2.0A106Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill33k7d agoApache-2.0A56Claude Code, Codex