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★ 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 throughpup api, which owns authentication, OAuth refresh, site, and Datadog org selection. Runpup auth statusand note the site for step 4. Ifpupis 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, ornpm install -g @datadog/pup(Windows or anywhere with npm); see https://github.com/DataDog/pup. Then runpup auth login. Do not ask the user to create or store Datadog API or application keys.pupat v2 or later. The setup script uses v2-only CLI flags (such as--no-envelope); Pup 1.x fails with an opaquepup_request_failed. Checkpup --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/binmay not be user-writable; there, install from the release archive in a fresh empty directory instead (replace2.4.3and 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 loginpython3onPATH(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'sgh_unavailableexit). 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:enterpriseandread:orgscopes. 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 `
Установить dd-github-costs-onboarding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic