/atlas-slack:atlas-slack-setupfrom atlas-slack
Set up, check or repair the atlas-slack plugin for the person in this session — create the Slack app from the manifest, place the tokens, write the profile with `init`, verify with `doctor`, run the first send, read a refusal. Use when the person says "set up atlas-slack", "install the Slack door", "create the Slack app", "configure the profile", "doctor says …", "identity_mismatch", "missing_scope", "the gate asks on every call", "add a second workspace / profile", "update the plugin", when any slack_api call fails before reaching Slack with a profile, token, identity or decision code (`no_decision`, `permission_mode_unsafe`), when Slack answers `not_in_channel`, when a send refuses `check_missing` or `policy_invalid`, or when the person wants to attach or re-pin a policy file ("attach the policy", "re-pin the policy", "init --policy-path"), or to change the marks under the messages ("turn on the cc", "cc me on the bot's messages", "change Sent via", "attribution_label", "cc_person", "init --set"). Not for sending or reading Slack — that is the `atlas-slack` skill.
Trending skills
7-day visitors to each skill page
Ships in atlas-slack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The person does the Slack side (a browser, their account); you do the local side (shell, files, checks). One command decides every step: python3 -m atlas_slack doctor ends with a line next: <code> — <what to do>. Do what that line says. Then run doctor again. When it says next: send, go to step 4. init prints its own then: hint; only doctor's next: line is the verdict. The full guide for humans is docs/setup.md in the clone.
The clone is the repository checkout: claude plugin list prints Read from: <clone>/plugins/atlas-slack, so cut /plugins/atlas-slack off that path. Without an installed plugin the clone is wherever the person cloned the repository; without a clone, git clone https://github.com/dkushnikov/atlas-slack.git first.
<name> is the profile: what the person names («for acme», «the test app») when they name one; else $ATLAS_SLACK_PROFILE when it is set in this session; else default. Pass --profile <name> to init and doctor whenever it is not default.
curl or the SDK directly. The checks are doctor and init; a read or a send in a session goes through slack_api.doctor, init, claude plugin list or the import check.init --force rewrites the four identity fields (workspace_id, person_user_id, bot_user_id, person_bot_dm_id), rewrites token_sources when --user-var/--bot-var are given, adds language: en when absent, and keeps every other key; comments in the file are not kept. Before you run it, say what it rewrites. Run it only when doctor's next: line names it, when step 4 names it, or when the person asks.init --policy-path <path> [--pin | --no-pin] writes policy_path (and, with --pin, policy_sha256; --no-pin removes it) into an existing profile and no other key (no tokens, no network; an invalid file or a stale pin writes nothing; --no-pin on the profile's own policy file removes a broken pin even when that file is invalid or gone). The replaced lines become plain key: value lines — a comment on them is not kept; a file whose layout a line edit cannot handle is rewritten as a whole, and the command says so on stderr (then its comments are gone — tell the person). Never edit the profile file by hand to set policy_path or policy_sha256 — this command does it, after the person named the file.init --set KEY=VALUE [--set …] (0.8.0) writes a setting — attribution_label (the footer's label, default Sent via), cc_person (true / false: the cc to the person on the bot's messages to others), cc_label (default cc) — into an existing profile and no other key (no tokens, no network; a value the loader refuses writes nothing; the answer is one marks: line, the same line doctor prints). Never edit the profile file by hand to set a mark — this command does it, after the person named the value. A 0.8.0 server reads the profile at every call, so the value applies to the next send; only a session started before the 0.8.0 update needs a restart (its server reads the new key as profile_invalid). Step 5 offers it.python3 --version && python3 -c "import atlas_slack, slack_sdk, yaml; print(atlas_slack.__version__)"
claude plugin list 2>/dev/null | grep -A4 "atlas-slack@"
python3 below 3.12 → the person installs Python 3.12+ (python.org or Homebrew) and starts Claude Code from a shell where it is python3; then come back here.python3 -m pip install -e <clone> with that same python3. If pip answers externally-managed-environment (Homebrew or Debian Python), ask the person which of two: a virtualenv (python3 -m venv ~/.atlas-slack-venv && ~/.atlas-slack-venv/bin/python -m pip install -e <clone>; Debian/Ubuntu without python3-venv → the person installs that package first; then the person adds export PATH="$HOME/.atlas-slack-venv/bin:$PATH" to the same start-up file as the tokens — this session's shell cannot see it: a new terminal and a restart follow, step 3's «new terminal», and the re-entry lands here, on step 0, where the import line runs again), or python3 -m pip install --break-system-packages -e <clone> on the system interpreter when it is their own install — then re-run the import line now. Never run --break-system-packages unasked.atlas-slack@ block → claude plugin marketplace add <clone> then claude plugin install atlas-slack@atlas-slack; a session restart will be needed (remember it for step 4).Status: ✘ disabled → claude plugin enable atlas-slack@atlas-slack; a restart will be needed (remember it for step 4).If the person reports that the gate asks on every call, reads included («gate unavailable»): the import fails under plain python3 — the pip line above, with the interpreter Claude Code's shell uses.
doctor, and the next: linepython3 -m atlas_slack doctor --profile <name>
Read the whole output to the person in one or two sentences (which profile, both tokens' state, the rights table's gist), then do what the last line says:
next: | What you do |
|---|---|
init — … | no profile file for <name> (for default: and no ATLAS_BOT_USER_ID in the environment): step 2 (<VAR> placeholders in the line: the person names the two variables, step 3) |
fix-profile — … | the line quotes the problem and the one fix: a bad ATLAS_SLACK_PROFILE → the person fixes it; an unknown key → remove it from the file (--force would keep it); another bad value or an unparsable file → the hand edit or the init … --force the line names (<VAR> placeholders: the person names the two variables, step 3) |
set-token — <VAR> … | step 3 for that variable |
new-token — <VAR>: … | Slack rejected the token: the person first checks the variable's value (the whole token, no quotes, no newline); if it is clean, reinstalls the app (OAuth & Permissions → Reinstall) and puts the fresh token into the variable → step 3's «new terminal» part |
retry — … | transient (network, rate limit): doctor again in a minute; if it persists, the person checks the variable's value for stray characters → doctor again |
swap-tokens — … | the variables hold the wrong kind of token: the line says which — swapped values → the person swaps them; the same token in both → the person pastes the missing one (xoxp- user, xoxb- bot) → step 3's «new terminal» part |
decide — … | the token and the profile disagree: ask the person which is right, then do the half of the line that applies (the init … --force the line names for the token — <VAR> placeholders: the person names the two variables, step 3; a fresh variable for the profile) |
add-scope — <VAR>: … | the app lacks a scope the first session uses: the person adds the named scope(s) under OAuth & Permissions → Scopes, reinstalls (the tokens change), updates the variable → step 3's «new terminal» part |
frozen — … | the person's emergency stop. Say so. If they want it lifted, the person sets freeze: false in the file; otherwise stop here |
fix-policy — … / fix-journal — … | quote the line; the fix is in the file or directory it names. A stale pin (sha256 mismatch) after the person edited the policy: the line names init --profile <name> --policy-path <path> --pin — run it only after the person says the new version is theirs (the pin is their ratification) |
send — … | consistent, with the channel for the first message: step 4 — a · scopes: unknown line under a token line means the first-session scopes were not checked (no scope header from Slack): say so, it is not a pass — unless the hello was already sent and the line names the bot DM: then the setup is done, no second hello. If · lines under the token lines said fields are unset (an env-only profile), the identity check compares only what is set — say so |
After every fix, doctor again. A ✗ or · line that is not the next: line is context, not an instruction — mention it once (the · hygiene scopes chat:write.customize / incoming-webhook: suggest dropping them from the app).
initpython3 -m atlas_slack init # the default profile: SLACK_USER_TOKEN / SLACK_BOT_TOKEN
python3 -m atlas_slack init --profile acme --user-var ACME_SLACK_USER --bot-var ACME_SLACK_BOT # a second workspace or a test app
A non-default profile must name both its variables (upper-case letters, digits, underscores) — in the options, or in the file's token_sources for an existing file; without them init refuses (names no token variables), with one alone it refuses (name both variables) — never a copy of the first workspace's identities or of its other variable. A named profile that really shares the default tokens says so: --user-var SLACK_USER_TOKEN --bot-var SLACK_BOT_TOKEN (the file then declares them, so later init --force runs need no flags).
init prints either wrote <path> … or one refusal on stderr. If it printed a line starting with note:, that existing file's content was not kept — tell the person. Then:
wrote … → for a non-default <name>, first the selection below; then step 1 again with --profile <name> (init's own then: hint says the same; doctor decides). A trailing bot DM not found: … is fine; step 4 opens the DM.cannot read the identities behind the tokens: → step 3 (the lines under it name the variable and the reason; … is not set = unset, a Slack error code = reinstall for a fresh token, <SomethingError>: = network).is a bot token / is not a bot token / different workspaces → the variables hold the wrong tokens → step 3.profile name … is not valid / is not an environment variable name / names no token variables / name both variables → fix the command, run again.… exists — edit it, or run init --force → step 1 (doctor says what, if anything, is wrong).Selection (non-default <name> only). Put "ATLAS_SLACK_PROFILE": "<name>" into the project's .claude/settings.json → "env" (show the JSON) — that reaches the hook and the MCP server after a restart (remember it for step 4). Without it the session keeps using default; slack_api("_rights")'s first line shows which profile a session runs.
Point the person to docs/setup.md § 1 and § 2 and say the gist: create the app from slack-app-manifest.json (in the clone), install it to the workspace, copy the two tokens, put the two export lines into the start-up file of the shell they launch Claude Code from. Before they start: the app and its bot user are named Atlas and can be renamed; a workspace with app approval makes the install wait for the admin (the button reads Request to Install): no tokens until then, so init and doctor wait, nothing to do here; what to tell the admin is in docs/setup.md § 1.4 (an internal app for one person, created from the manifest; the scope list is the manifest). A second workspace or a test app gets its own variable names (ACME_SLACK_USER, ACME_SLACK_BOT); step 2 records them. Tokens stay in the shell file, never in settings.json (it is often committed).
New terminal. Variables set now are not in this session's environment; no command from inside the session can add them. When the person says the file is saved, they do three things. They open a new terminal. They restart Claude Code from it, in the same project. They type «set up atlas-slack: run doctor --profile , variables <USER_VAR> and <BOT_VAR>» (the real names; default and the variables may be omitted when they are the defaults) — that re-enters this skill at step 0 (the two check lines, then doctor) with the same profile and the same variables.
If the plugin, the tokens, the profile or its selection changed in this session, a restart comes first; if nothing changed, the send happens in this session. Either way, give the person this sentence — it carries the step across a restart:
«Read the last ten messages of a channel I am in, then post "hello from the door" to me in the bot's voice, then record the bot DM (atlas-slack setup).»
The atlas-slack skill handles the two Slack calls. Before the send, slack_api("_rights"): its first line must name <name> as the profile (if it names another, the Selection did not reach this session — step 2's Selection, restart); its identities: line names the person, the bot and the bot DM. bot DM D… → that is the post's channel. bot DM none yet → the post's channel is the person's user id (from that line, or from slack_api("auth.test") under the user token when it shows ?), and Slack opens the DM. One card; the person presses Send; the result line reads journal: op … ok · comm … (the journal row records the DM Slack opened, so an edit of that post finds it).
Record the bot DM — you run it, not the person. Only when identities: said none yet. _rights's first line says (file) or (builtin). (file) → run python3 -m atlas_slack init --profile <name> --force: it records the DM id (the bot's reports to the person need it). Then doctor once more → next: send naming the DM. (builtin), an env-only profile → the person sets ATLAS_SLACK_PERSON_BOT_DM_ID to the D… id from the send's result (its channel: line) and restarts; doctor in the new session names the DM, and the setup is done without another hello. That is the setup done.
After the hello went through, say in one line what the door adds now — quote the marks: line doctor printed: the footer under the person's messages (💙 Sent via <bot>) and the cc to the person on the bot's messages to others (off by default: colleagues reply to the bot, nothing reads its inbound, a mention subscribes the person to the thread; in a thread the cc goes only while the person does not follow it yet). Ask whether they want either changed; do nothing without their word. (builtin) in _rights' first line — an env-only profile → the marks keep their defaults and cannot be set: say so and stop; init --set would refuse profile not found, and the identity init its hint names would turn the person's env-only setup into a file profile nobody asked for — step 2 runs only on their explicit word for a file profile. (file) → python3 -m atlas_slack init --profile <name> --set cc_person=true (the cc on), --set attribution_label=<word> (the footer's word; attribution_label= alone leaves the mention), --set cc_label=<word>. Quote the marks: line the command prints. A 0.8.0 server reads the profile at every call — the value applies to the next send, no restart; a refusal (not a setting, would not load) wrote nothing: read it to the person.
| Code | Cause | Fix |
|---|---|---|
token_unavailable | the server's environment lacks the variable | step 3, then restart |
profile_missing / profile_invalid | ATLAS_SLACK_PROFILE names a missing file, an invalid name, or the file has a bad key / a token-shaped value | doctor --profile <name> → its next: line |
profile_mismatch | the hook and the server see different ATLAS_SLACK_PROFILE | one place for the variable; restart |
permission_mode_unsafe | the session's permission mode cannot show the card (bypassPermissions, dontAsk) | the person restarts the session in the default mode (or auto). The refusal names the other way, decision_permission_modes in the profile — that is the person's hand, never yours |
no_decision | the send reached the server without the hook's decision: the plugin's hooks did not run (disableAllHooks in the person's settings, or a managed Claude Code with allowManagedHooksOnly), or the hook ran and failed — the prompt before it said «gate error» or «gate unavailable» | a «gate …» prompt: step 0's import line and pip; otherwise the person checks their settings for disableAllHooks, then asks their Claude Code admin; nothing was sent |
identity_mismatch | a token is not the workspace / person / bot of the profile | doctor → decide or swap-tokens; then restart the session |
identity_unverified | no usable auth.test answer | call once more; if it persists, doctor (revoked token, network) |
missing_scope — needed: <name> · provided: … | the app lacks a scope; needed names it (several, comma-separated → all of them), provided lists the token's scopes (0.7.2) | the person adds the named scope(s) under OAuth & Permissions → Scopes for the voice that made the call (user or bot) and reinstalls; the tokens change (as of 2026-10) → step 3's «new terminal» part |
attribution_unavailable | no bot_user_id in the profile | init --profile <name> --force (identity fields only) |
check_missing — needed: <check> · provided: … | the person's policy (required_checks) asks a message of this class to others to carry a check the send did not declare; needed names it, provided lists the checks that were there (an empty provided is omitted) | the agent does the check and declares it in provenance.checks, or for cicero prepares the message through the person's ledger (the atlas-slack skill); a message to the person — their bot DM or their user id — is exempt, and so is one whose every recipient is on the policy's required_checks_exempt (a bot's DM and user id, 0.8.2; plugin first, then the policy — a 0.8.1 server refuses the key as policy_invalid); nothing was sent |
frozen / policy_invalid / journal_unavailable | the profile's emergency stop / a broken or mis-pinned policy file / an unwritable journal directory | doctor → frozen / fix-policy / fix-journal |
version_skew | the MCP server runs another plugin version than the hook (after an update) | restart the session |
decision_expired | the card waited more than 30 minutes | the agent asks again — nothing was sent |
outcome_unknown | Slack's answer was lost | the agent runs _reconcile; never a blind retry (the atlas-slack skill) |
not_in_channel (from Slack) | the voice that posted is not a member of that channel | the agent's voice: the person invites it in Slack (/invite @<agent name>; conversations.invite through the door needs channels:manage, not in the manifest); the person's voice: they join the channel; then the same call, same voice — never switch voice to get past it |
git pull in the clone (the directory marketplace reads it in place), then a session restart: until then the live MCP server runs the old code (when the version changed, it refuses sends with version_skew). Say what CHANGELOG.md lists for the new version before the person restarts: a version bump can change what the card does.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dkushnikov/atlas-slack --plugin atlas-slack2 skills in this plugin