Command Palette

Search for a command to run...

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

dd-github-copilot-onboarding

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

Connects GitHub Copilot to Datadog so the user can see Copilot usage and license metrics for the GitHub organizations they own. Checks whether a Copilot…

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

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

Datadog GitHub Copilot integration

Connect GitHub Copilot to Datadog in two user-driven moves: the consent (the OAuth grant) on GitHub's Authorize screen for the Datadog Copilot app, then Datadog writing the account when GitHub redirects back. Once connected, Copilot usage and license metrics (github_copilot.usage.*) start flowing.

The flow starts with a scope check (Phase 1): if the Datadog org already has GitHub Copilot accounts connected, the skill reports exactly what is configured and asks whether to stop or add another. A connection is a GitHub user's grant — Datadog collects every GitHub org that user owns — so the skill confirms the signed-in gh user, lists the GitHub orgs it will collect, checks each one's usage metrics policy, and names the account after the GitHub login. Copilot costs (Cloud Cost Management) are out of scope: hand off to dd-github-costs-onboarding. Code in stack traces and pull request comments belong to dd-github-onboarding.

The consent is the user's — this skill never authorizes on their behalf. Every call except the mint rides pup api, which authenticates with the user's own session. The mint POSTs straight to the site's UI host with the session's OAuth token from pup auth token, held in memory only and never printed (see Why the mint bypasses pup api in Phase 2). Nothing here waits on the user to report back: the consent is detected by a background poll.

scripts/github_copilot_setup.py owns site resolution, the mint, account discovery, and the API calls — do not reproduce that logic yourself.

This is a hands-on setup: run the commands yourself as part of the conversation rather than handing the user a list, and keep them in the loop.

Copy this checklist and tick it off:

  • 0. pup auth status, python3, gh auth status (Phase 0)
  • 1. accounts → stop, or continue with --continue
  • 2. orgs → confirm <LOGIN>
  • 3. Ask about GitHub Enterprise
  • 4. check-org <github-org> for each owned GitHub org
  • 5. authorize --account-name "<LOGIN>" --open
  • 6. wait --account-name "<LOGIN>" in the background
  • 7. Hand off, then verify in the background

Phase 0: Preflight

pup, authenticated. The whole flow rides on the user's pup session — it resolves the site, carries every pup api call, and supplies the OAuth token for the one call that does not ride pup api, the UI-host mint:

pup auth status
  • authenticated: true → use the reported site; continue.
  • The site is Datadog for Government (ddog-gov.com) → stop: this skill doesn't support Government sites; point the user to the Datadog app. The script refuses it too.
  • 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 pup session — a user logged into another site (e.g. EU datadoghq.eu) shows as unauthenticated under the default. Ask which site or pup session they authenticated, then re-run with DD_SITE=<site>. If they authenticated a named (org-keyed) pup session instead, pass the pup session flag --org <session> to the script's commands — it threads the flag through 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 → 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 mint and the API steps still need a working pup.

python3. The flow runs through scripts/github_copilot_setup.py, invoked as python3 -I -B, so python3 must be on PATH:

command -v python3 >/dev/null 2>&1 && echo "python3: available" || echo "MISSING python3 - https://www.python.org/downloads/"
command -v pup >/dev/null 2>&1 && echo "pup: available" || echo "MISSING pup"
command -v gh >/dev/null 2>&1 && echo "gh: available" || echo "MISSING gh - https://cli.github.com"

GitHub CLI (gh). Signed in as the GitHub user whose Copilot usage should be collected — the flow lists the organizations that user owns and probes each org's usage-metrics policy through gh, read-only, with no Datadog credentials:

gh auth status
  • Signed in → continue; Phase 1 confirms the exact account before anything is minted.
  • gh is missing → ask before installing it from https://cli.github.com (it is used r
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

scripts/github_copilot_setup.py

FAQ

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

Connects GitHub Copilot to Datadog so the user can see Copilot usage and license metrics for the GitHub organizations they own. Checks whether a Copilot account is already connected first; confirms which GitHub account will be connected and which organizations it collects, and verifies those organizations allow usage-metrics collection before connecting. Can also remove a connected account for cleanup. Use when the user wants Copilot usage metrics in Datadog, or asks to connect or configure the Datadog GitHub Copilot integration. Not for Copilot billing or cost data in Cloud Cost Management (use dd-github-costs-onboarding), or for code in stack traces and pull request comments (use dd-github-onboarding).

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

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

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

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

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

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