Command Palette

Search for a command to run...

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

dd-github-costs-onboarding

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

Bring a GitHub enterprise's or organization's bill — Actions, Packages, Copilot, storage, and other metered products — into Datadog Cloud Cost Management…

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

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

Datadog GitHub Costs Integration

Use scripts/setup.py relative to this file. It owns target discovery, the browser handoff, hidden token entry in a separate terminal, the GitHub token check, Pup OAuth validation, duplicate prevention, one-shot registration, and secret redaction. Do not reproduce its API reads or writes.

The integration (github-costs) brings the GitHub bill of one enterprise or one organization (Actions, Packages, Copilot, storage, and other metered products) into Datadog Cloud Cost Management (CCM). Each Datadog GitHub Costs account ("account" below) holds one GitHub personal access token (PAT) and the enterprise slug or organization login it reads.

Out of scope: Copilot usage or seat metrics (use dd-github-copilot-onboarding), and code in stack traces or PR comments through the GitHub App (use dd-github-onboarding).

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.

Check these before step 1; when a required one fails, stop with its fix:

  • pup, installed and authenticated. The setup script performs every Datadog request through pup api, which owns authentication, OAuth refresh, site, and Datadog org selection. Run pup auth status and note the site for step 4. If 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. Do not ask the user to create or store Datadog API or application keys.

  • pup at v2 or later. The setup script uses v2-only CLI flags (such as --no-envelope); Pup 1.x fails with an opaque pup_request_failed. Check pup --version: a major version of 2 or later is required. If it is older, ask before upgrading. When the environment allows it, upgrade with the official installer or npm as above. Some workspaces block piping a remote script to a shell (curl | sh), and /usr/local/bin may not be user-writable; there, install from the release archive in a fresh empty directory instead (replace 2.4.3 and the platform suffix with the latest release):

    VERSION=2.4.3
    curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_Linux_x86_64.tar.gz" &&
    curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_checksums.txt" &&
    grep "pup_${VERSION}_Linux_x86_64.tar.gz$" "pup_${VERSION}_checksums.txt" | sha256sum -c - &&
    tar -xzf "pup_${VERSION}_Linux_x86_64.tar.gz" &&
    sudo install -m 0755 ./pup /usr/local/bin/pup &&
    pup auth login
    
  • python3 on PATH (command -v python3) to run the setup script.

  • The GitHub CLI (gh), optional, signed in (gh auth status), to list the enterprises and organizations the user can connect. Without it the user types the enterprise slug or organization login (the script's gh_unavailable exit). To install it, see https://cli.github.com.

  • A graphical desktop session or a tmux session (macOS, Linux with X11 or Wayland, or Windows; or the agent session inside tmux, which also works on headless hosts): the token prompt opens in a new terminal window — a new tmux window when the session runs inside tmux. Over SSH with no desktop session and no tmux, in a container, or on a headless host outside tmux, stop and point the user to the GitHub Costs integration tile in Datadog.

  • Enterprise: an Enterprise Administrator creates a classic PAT with the manage_billing:enterprise and read:org scopes. Fine-grained tokens cannot read enterprise billing, so the script refuses them.

  • Organization: an organization owner creates a fine-grained PAT whose resource owner is the organization, with Organization permissions → Administration: Read-only. If the organization requires approval for fine-grained tokens, an owner must approve it before it works. A classic PAT from an owner also works.

  • GitHub enhanced billing platform: both enterprises and organizations must be on it, or the integration cannot read their costs (see the GitHub Costs integration docs). If the target is not, stop.

  • GitHub shows the token only once.

  • Costs appear in Datadog only if the Datadog org uses Cloud Cost Management.

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 `

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

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

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

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

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

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

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

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

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

scripts/setup.py

FAQ

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

Bring a GitHub enterprise's or organization's bill — Actions, Packages, Copilot, storage, and other metered products — into Datadog Cloud Cost Management through the Datadog GitHub Costs integration. Shows which enterprises and organizations the user can connect, guides creating the GitHub token the integration needs (entered where the agent never sees it), and warns before connecting an enterprise together with one of its organizations, which would count those costs twice. Use when the user wants GitHub billing or cost data (Actions, Packages, Copilot, storage) in Datadog Cloud Cost Management, or asks to connect or configure the Datadog GitHub Costs integration. Not for Copilot usage or seat metrics (use dd-github-copilot-onboarding) or for code links and PR comments through the GitHub App (use dd-github-onboarding).

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

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

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

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

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

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