---
name: connecting-slack
description: >-
  Connect OpenSRE to Slack and show how to hand off DevOps chores from a channel mention or a DM. Verifies with cli_exec; if Slack is missing, queues `/integrations setup slack` via slash_invoke (the wizard needs a full terminal). Use for the startup demo option "Connect OpenSRE to Slack and hand off DevOps chores for your team". Never post, reply, or send to Slack in this flow. Multi-step; load before acting.
getting_started: Connect Slack
demo_order: 4
metadata:
  owner: Vincent
  last_changed_by: Jan
  last_changed_at: 2026-10-04
  usecases:
    - For Slack workspace administrators connecting OpenSRE for their team.
    - For users verifying an existing Slack connection and learning channel or DM handoffs.
  requires:
    - Permission to add the OpenSRE bot to the target Slack workspace.
    - The cli_exec and slash_invoke tools.
    - When Slack setup is needed, an interactive terminal for /integrations setup slack.
  version: '1.4'
title: connecting-slack
canonical_url: https://skilld.dev/gh/tracer-cloud/opensre/d-connecting-slack
last_updated: 2026-11-20T14:16:11.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install tracer-cloud/opensre/d-connecting-slack`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/d-connecting-slack`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/tracer-cloud/opensre/d-connecting-slack) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/d-connecting-slack`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/d-connecting-slack --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/d-connecting-slack --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Slack handoff

Verify or set up Slack, then explain how the team can hand off DevOps chores
through a channel mention or a DM.

## Workflow rules

- Never call Slack send/reply/react tools.
- Never invent that Slack is connected; trust only `cli_exec` verify results.
- Never call `cli_exec` with `integrations setup slack`. That wizard is
  interactive and `cli_exec` will refuse it.
- After setup (or a successful verify), explain in two sentences how to hand
  off a chore: mention OpenSRE in a channel it can see, or DM it.

## Plan

Track progress with the `update_plan` tool, not with headers or prose:

- On entry, in the same response as the first workflow tool call
  (`cli_exec`), call `update_plan` with the
  steps below verbatim, the first step `in_progress`, and a one-line
  `explanation` (this is not a diagnosis; no hypothesis table):
  `Check Slack` / `Set up if needed` / `Explain the hand-off`. Mark
  `Check Slack` with `verifies: true` in every call: it is the check the
  text-only last step relies on to close.
- After a step's tool results, call `update_plan` marking it `completed` and
  the next step `in_progress`, in the same response as the next step's single
  tool call. When Slack is already connected, mark `Set up if needed` completed
  without new tool calls instead of dropping it mid-run.
- Do not narrate the plan or repeat step names in prose; the shell renders
  the checklist.

## Workflow

### 1. Check Slack

Call `cli_exec` with payload `integrations verify slack`.

### 2. Set up if needed

If Slack is not configured, call `slash_invoke` with command
`/integrations` and args `["setup", "slack"]`, and stop. The shell queues that wizard on the
next prompt so it gets exclusive stdin. If Slack is already connected, say
so and skip setup.

### 3. Explain the hand-off

Two sentences: mention OpenSRE in a channel or DM it; do not post anything
from this demo. Then stop.
