Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dd-slack-integration

БесплатноЗапускает вложенные скриптыНе проверен

Connects a commercial Slack workspace to Datadog and adds a channel to it, so the user can receive Datadog alerts and notifications in Slack and talk to…

datadog-labsот datadog-labs★ 188 звёзд на GitHub

Об этом скилле

Datadog Slack integration

Connect Slack to Datadog in three user-driven moves: the workspace type they confirm, the OAuth grant on that Slack workspace, then the channel they pick, added through the Datadog API. Once a channel is connected, the user can talk to Datadog directly in Slack by mentioning @Datadog, and Datadog notifications can target that channel. This flow handles commercial Slack workspaces (slack.com) only.

The workspace choice, the OAuth grant and the channel choice are all the user's — this skill never authorizes on their behalf, never picks a channel for them, and never writes credentials. All Datadog API calls go through pup api, which authenticates with the user's own session (a 403 means a missing permission; see Important Notes). Nothing here waits on the user to report back: the connect is detected by a background poll.

scripts/slack_setup.py owns site resolution, authorize-URL minting, account discovery, and the API calls — do not reproduce that logic yourself. In the commands below, replace <skill> with this skill's directory. The API reference is https://docs.datadoghq.com/api/latest/slack-integration/. Its exit codes: 0 success, 1 an error to report (pup missing or unauthenticated, a 403, bad input), 2 an expected "not there yet" (no account, wait timed out, channel not listed), 3 no browser.

Account = the name Datadog gives one connected Slack workspace (e.g. Main_Account); it is what --account takes. "Account" means only that here.

Copy and tick off:

  • 1. Preflight: pup auth status, command -v python3
  • 2. accounts: existing account? → stop / add a channel (go to 7) / new workspace
  • 3. Slack for Government? → yes: point to the UI and stop
  • 4. Enterprise Grid/Select and org owner? → ask about audit logs
  • 5. authorize --open
  • 6. wait in the background until the account appears
  • 7. Ask for the channel, then add-channel → listed: true
  • 8. test-notification → exit 0
  • 9. (If chosen in 4) audit-logs --open
  • 10. Final report

Phase 0: Preflight

Datadog for Government is not supported. If pup auth status reports a ddog-gov.com site, stop and tell the user to set up the integration from the Datadog app instead. The script refuses Government sites too.

pup and the site. This flow drives the Datadog API through pup api, and the site is derived from the user's pup authentication, so the authorize URL and the API calls hit the same Datadog environment they are logged into:

pup auth status
  • authenticated: true → use the reported site; continue.
  • authenticated: false → do not declare the user unauthenticated yet. pup reports the session for the site in DD_SITE (default datadoghq.com) or the named --org session — a user logged into another site (e.g. staging datad0g.com) shows as unauthenticated under the default. Ask which site/org they authenticated for, then re-run with DD_SITE=<site>. If they authenticated a named (org-keyed) pup session instead, pass --org <name> to the script's commands — it threads the flag through both pup auth status and the pup api calls. Still false → stop and ask them to run DD_SITE=<site> pup auth login (it needs a browser). Never guess a site.
  • pup is missing (the script exits 1 with "pup not found") → ask before installing it: brew tap datadog-labs/pack && brew install datadog-labs/pack/pup (macOS or Linux with Homebrew), curl -fsSL https://raw.githubusercontent.com/DataDog/pup/main/install.sh | sh, or npm install -g @datadog/pup (Windows or anywhere with npm); see https://github.com/DataDog/pup. Then run pup auth login.
  • pup returns non-JSON → the pup on PATH may not be the Datadog CLI (e.g. a same-named proto tool shadowing it). Point the script at the real binary with --pup <path-to-pup>; if the user knows their site, --site <site> bypasses pup for the authorize URL, but the mint and the API steps still need a working pup api.

Python. The flow runs scripts/slack_setup.py, so confirm python3 is on PATH before starting:

command -v python3 || echo "MISSING python3"

Browser. The OAuth grant needs a browser logged into both Slack and the Datadog app. If there is no browser (a headless host), Phase 2 drops --open and prints the URL for the user to open where they are logged in.

Confirm the logged-in Datadog org

Before gathering anything else, ask whether to set up the integration for the Datadog org the user is currently logged in to. Read the org's name from the same pup session and site this run uses with pup api /api/v2/current_user (the name of the orgs entry under included; the site is the one pup auth status reported). Then ask once with the host's native selector:

Do you want to set up this integration for the Datadog org on ?

Полный SKILL.md на GitHub

Установить dd-slack-integration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/slack_setup.py

FAQ

Что делает скилл dd-slack-integration?

Connects a commercial Slack workspace to Datadog and adds a channel to it, so the user can receive Datadog alerts and notifications in Slack and talk to Datadog by mentioning @Datadog. Checks whether a Slack workspace is already connected first, and can add a channel to an existing connection without reconnecting the workspace. Slack for Government (govcloud) workspaces are pointed to the Datadog UI instead, since this flow covers commercial workspaces only. Use when the user wants Slack alerts/notifications from Datadog, wants to message @Datadog in Slack, or asks to connect or configure the Datadog Slack integration. Not for creating monitors or routing specific alerts to the channel.

Как установить скилл dd-slack-integration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dd-slack-integration запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dd-slack-integration с