Command Palette

Search for a command to run...

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

dd-github-onboarding

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

Connect GitHub to Datadog through the Datadog GitHub App so Datadog can show source code in stack traces and comment on pull requests. Checks whether a GitHub…

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

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

Datadog GitHub integration

Connect GitHub to Datadog in two moves: the install on GitHub's install screen (the user installs the Datadog GitHub App on a GitHub org/account they own), then Datadog linking that installation so it can read the chosen repositories. The background poll drives the link.

The install is the user's — this skill never installs on their behalf and never writes credentials. All /api/ calls go through pup api, which authenticates with the user's own session; that session needs the Integrations Manage (manage_integrations) permission, which is what authorizes the connect (see Important Notes when it is missing). The install URL is minted through the Datadog API, so it carries a short-lived Datadog state and GitHub's post-install redirect lands back on Datadog cleanly; its bearer is captured from pup auth token in process memory only.

scripts/github_setup.py owns site resolution, install-URL minting, account and installation discovery, linking, verification, and the API calls — do not reproduce that logic yourself. The API reference is https://docs.datadoghq.com/api/latest/integrations/.

Not for GitHub Copilot usage metrics (use dd-github-copilot-onboarding) or GitHub billing and costs in Cloud Cost Management (use dd-github-costs-onboarding). Monitors and notifications are out of scope.

  • 0. Preflight: pup auth status, python3
  • 1. accounts → stop or continue
  • 2. authorize --open (add --continue only after the user chose continue)
  • 3. wait in the background → exit 0
  • 4. verify --account <name> --json → exit 0
  • 5. Offer the Software Catalog demo (optional, only after a yes)
  • 6. Final message

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 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 pup auth status, pup api and pup auth token. 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 (command -v pup fails) → 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 site resolution, but the API steps still need a working pup.

Pass the same context to every script command in this skill: --site <site> when Phase 0 needed DD_SITE=<site>, and the same --pup / --org.

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

command -v python3 || echo "MISSING python3"

Browser. The install needs a browser logged into both GitHub 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.

Permission. A 403 means the session lacks manage_integrations; see Important Notes.

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 ?

  • Yes → continue.
  • No → stop. Have the user sign pup into the right org (see the pup step above), then ask again. Never continue on an org the user did not confirm.

Phase 1: Det

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

Установить dd-github-onboarding в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/github_setup.py

FAQ

Что делает скилл dd-github-onboarding?

Connect GitHub to Datadog through the Datadog GitHub App so Datadog can show source code in stack traces and comment on pull requests. Checks whether a GitHub account is already connected first; the user installs the app on the GitHub organization or account they choose, and the skill verifies what the connection unlocked. Optionally also adds a `service.datadog.yaml` to a repository so its services appear in Datadog's Software Catalog. Use when the user wants to connect or configure the Datadog GitHub integration, code snippets in stack traces, or Datadog feedback on pull requests. Not for GitHub Copilot usage metrics (use dd-github-copilot-onboarding) or GitHub billing and costs in Cloud Cost Management (use dd-github-costs-onboarding).

Как установить скилл dd-github-onboarding?

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

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

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

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

Сравнить dd-github-onboarding с