Official agent skill

Quality Gate Size Analysis

by DataDog in DataDog/datadog-agent

Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone

OfficialApache-2.0Auto-check passedTesting & QA

Install Quality Gate Size Analysis

skills CLI
$ npx skills add DataDog/datadog-agent --skill quality-gate-size-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DataDog/datadog-agent quality-gate-size-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DataDog/datadog-agent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/quality-gate-size-analysis .claude/skills/quality-gate-size-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quality-gate-size-analysis
GitHub stars
3.8k
Token cost
~1.5k tokens
SKILL.md length
646 words
Files
1
Skills in repo
35
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone

  • Works in 5 steps: Query Datadog Metrics → Fetch Confluence Exception Records → Pull GitHub PR Data → …
  • Tasks that involve Quality gates
  • SKILL.md covers Step 1: Query Datadog Metrics, Step 2: Fetch Confluence…, Step 3: Pull GitHub PR Data and Step 4: Cross-Reference and…, plus 2 more sections
  • Calls gh

What it does

Quality Gate Size Analysis is an agent skill from DataDog/datadog-agent, published by the product's own GitHub organization. Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Quality gates and Project management. It works with Confluence, Datadog and GitHub. The repository describes itself as: Main repository for Datadog Agent. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Quality gates
  • Tasks that involve Project management

Example prompts

  • “/quality-gate-size-analysis”

Requirements

  • Docker

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Query Datadog Metrics
  2. Fetch Confluence Exception Records
  3. Pull GitHub PR Data
  4. Cross-Reference and Correlate
  5. Generate Report

What it can do on your machine

Read from SKILL.md and the folder at commit 20eff25. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quality Gate Size Analysis loads about 1.5k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 646 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DataDog/datadog-agent at commit 20eff25, republished under its Apache-2.0 licence (© DataDog). 646 words, ~1,544 tokens.

Download SKILL.mdSave it as .claude/skills/quality-gate-size-analysis/SKILL.md (or your agent's skills folder).
name
quality-gate-size-analysis
description
Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone
argument-hint
<time-range e.g. 3mo, 6mo> [optional: specific release e.g. 7.77]
model
sonnet

Analyze the agent's static quality gate on-disk size metrics, pull approved exception records from Confluence, fetch PR data from GitHub with milestone-based release attribution, and produce a cross-referenced report.

Step 1: Query Datadog Metrics

1a. Relative on-disk size (per-commit deltas)

Query datadog.agent.static_quality_gate.relative_on_disk_size filtered to ci_commit_ref_slug:main, grouped by gate_name and arch:

max:datadog.agent.static_quality_gate.relative_on_disk_size{ci_commit_ref_slug:main} by {gate_name,arch}
  • Use from=now-$TIME_RANGE and to=now
  • Request raw_data=true to get CSV with timestamps for spike identification
  • Identify the largest single-commit jumps per gate — these are the candidates for exception correlation
1b. Absolute package size (branch comparison)

Query datadog.agent.package.size for main and relevant release branches to measure inter-release deltas:

max:datadog.agent.package.size{git_ref:main,package:datadog-agent,os:debian,arch:amd64}
max:datadog.agent.package.size{git_ref:7-XX-x,package:datadog-agent,os:debian,arch:amd64}
  • Compare the stable average of each release branch to quantify the bump
  • Include both the prior release and the current release branches
1c. Other useful metrics
  • datadog.agent.static_quality_gate.on_disk_size — absolute on-disk size per gate
  • datadog.agent.static_quality_gate.on_wire_size — compressed/network size
  • datadog.agent.static_quality_gate.max_allowed_on_disk_size — configured thresholds
1d. Reference dashboard

The Agent Package size metrics dashboard contains all relevant widgets.

Step 2: Fetch Confluence Exception Records

Exception records live in the ABLD Confluence space under folder ID 5996904656.

2a. Enumerate all exception pages

Use CQL search:

ancestor = 5996904656 AND type = page ORDER BY created DESC
  • cloudId: datadoghq.atlassian.net
  • Exclude the [TEMPLATE] page from results
2b. Fetch each page body

For every page returned, call getConfluencePage with contentFormat=markdown to extract:

  • Decision status: Approved / Pending / Declined
  • Disk size increase: the number in the "Measures" or "Bounds Granted" row
  • Scope: which platforms/packages are affected
  • Linked PRs: PR numbers/URLs mentioned in the "Feature" or "PR" rows
  • Requester: who filed the exception
  • Expiry / Payback: any commitments to recover the size
2c. Build an exception table

Compile all exceptions into a structured table with columns: Title, Date, Decision, Disk Increase, Scope, PRs, Requester.

Step 3: Pull GitHub PR Data

3a. Find PRs linked from Confluence

Extract PR numbers from the Confluence pages (they appear as GitHub URLs in the exception text). For each PR:

bash
gh pr view <NUMBER> --repo DataDog/datadog-agent --json number,title,mergedAt,milestone,labels,state

The milestone field (e.g. 7.77.0) determines which release the PR belongs to. Do NOT use labels for release attribution.

3b. Search for additional size-impacting PRs

Search for PRs merged in the time window that may have size impact but no exception:

bash
gh pr list --repo DataDog/datadog-agent --base main --state merged \
  --search "merged:>=YYYY-MM-DD" --json number,title,mergedAt,milestone,labels

Filter for PRs with labels like qa/rc-required, component/system-probe, etc., and cross-check against the exception list.

3c. Search by feature name

For exceptions that don't directly link a PR, search by keyword:

bash
gh pr list --repo DataDog/datadog-agent --base main --state merged \
  --search "<feature-keyword> merged:>=YYYY-MM-DD" --json number,title,mergedAt,milestone

Step 4: Cross-Reference and Correlate

Show full SKILL.md (274 more words)Show less
4a. Match metric spikes to PRs

For each significant spike in relative_on_disk_size:

  1. Identify the approximate date from the metric timestamp
  2. Find PRs merged on or just before that date
  3. Check if those PRs are covered by a Confluence exception
4b. Match PRs to releases via milestone

Group all size-impacting PRs by their milestone (not by label or merge date):

  • milestone:7.75.0 → Release 7.75
  • milestone:7.76.0 → Release 7.76
  • etc.
4c. Identify gaps

Flag:

  • PRs with size impact but no Confluence exception
  • Confluence exceptions still in Pending status
  • Exceptions with empty "Bounds Granted" fields
  • PRs with no milestone set

Step 5: Generate Report

Write a markdown report to the repository root (e.g. quality_gate_size_analysis_YYYYQN.md) with these sections:

  1. Executive Summary — one paragraph overview
  2. Metrics Overview — absolute sizes per release branch, largest jumps table
  3. Confluence Exceptions — full table split by Approved vs Pending
  4. Release Attribution — PRs grouped by milestone, each linked to its exception status
  5. Coverage Gaps — list of unmatched PRs or pending exceptions
  6. Methodology — brief description of data sources and correlation approach

Key Details and Pitfalls

  • The relative_on_disk_size metric uses ci_commit_ref_slug (not git_ref) for branch filtering.
  • The package.size metric uses git_ref for branch filtering — branch names use hyphens (e.g. 7-77-x).
  • The Confluence folder 5996904656 is a folder, not a page — use CQL ancestor = to search, not getConfluencePageDescendants.
  • PR milestones determine release attribution, not labels. Use gh pr view --json milestone.
  • The gate_name tag values look like static_quality_gate_docker_agent_amd64 — use these to distinguish between agent variants (docker, MSI, DCA, dogstatsd, IoT, heroku, FIPS).
  • Some exceptions cover multiple PRs across multiple releases (e.g. PAR landed in 7.76, with follow-on work in 7.77 and 7.78).

© DataDog, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/quality-gate-size-analysis of DataDog/datadog-agent.

Open the folder on GitHubat commit 20eff25

Compare with similar skills

Quality Gate Size Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quality Gate Size Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quality Gate Size Analysis this skillDataDog/datadog-agent3.8k—~1.5kAutomated safety check: PassApache-2.0
Cherry Studio Regression TestsCherryHQ/cherry-studio52k—~1.2kAutomated safety check: PassAGPL-3.0
Release Lambda LayerDataDog/datadog-lambda-js126—~1.8kAutomated safety check: PassApache-2.0
Tool ConnectorZhixiangLuo/10xProductivity478—~925Automated safety check: PassMIT
lo2cin4bt Acceptance Reviewlo2cin4/lo2cin4bt288—~1.4kAutomated safety check: PassCustom licence
Endgamemicrosoft/copilot-for-eclipse126—~1.4kAutomated safety check: PassMIT

Similar skills

  • Cherry Studio Regression Tests

    CherryHQ/cherry-studio

    Runs Cherry Studio's critical-path regression suite as deterministic Playwright E2E tests through a GitHub workflow on macOS and Windows runners.

    52k GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Release Lambda Layer

    DataDog/datadog-lambda-js

    Official

    Walks through releasing a new datadog-lambda-js Lambda layer version — the automated Commercial release (version bump, tag, GitLab sign/publish jobs, npm publish, GitHub release) and the manual…

    126 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Tool Connector

    ZhixiangLuo/10xProductivity

    Connect any tool you use at work to your agent — including internal company tools, custom-built systems, deployment portals, incident trackers, internal knowledge bases, HR systems, and commercial…

    478 GitHub stars~925 tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Runs a pass, revise or block acceptance review on lo2cin4bt work, checking a deliverable against the request, repo contracts, tests, docs and the public GitHub boundary.

    288 GitHub stars~1.4k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Endgame

    microsoft/copilot-for-eclipse

    Official

    Orchestrate endgame verification for a GitHub milestone issue.

    126 GitHub stars~1.4k tokensUpdated 8 days ago
    Testing & QAAuto-check passed
  • Dev Review

    FHIR/fhir-codegen

    Performs a two-track code-quality and QA review in the roles of a staff-level Engineering Lead and QA Lead, then synthesizes both critiques into a single analysis.md.

    154 GitHub stars~5k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from DataDog/datadog-agent

All 35 skills in this repo
  • Triage CI Failure

    DataDog/datadog-agent

    Official

    Classify a failed CI as either caused by an active incident, flakiness, or a true code regression.

    3.8k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Elicit

    DataDog/datadog-agent

    Official

    Run a structured discovery session to build an Allium specification through conversation.

    3.8k GitHub starsUsed in 1 repo~3.7k tokens
    Auto-check passed
  • Follow PR

    DataDog/datadog-agent

    Official

    Monitor the current PR's GitLab pipeline to completion, then report success, auto-fix, or investigate a failure.

    3.8k GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Create Epic Recap

    DataDog/datadog-agent

    Official

    A skill your agent uses when an engineer or manager asks to recap, summarize, or post an update on a Jira Epic — a progress update for an in-progress Epic (how far along it is, what's shipped so…

    3.8k GitHub stars~5k tokensUpdated today
    Auto-check: notes
  • Explain Lading Config

    DataDog/datadog-agent

    Official

    Explains a lading.yaml config file from the regression test suite, using the lading Rust source as ground truth for field meanings and defaults.

    3.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Distill

    DataDog/datadog-agent

    Official

    Extract an Allium specification from an existing codebase. An agent skill from DataDog/datadog-agent.

    3.8k GitHub starsUsed in 1 repo~7k tokens
    Auto-check passed

Categories

Questions about Quality Gate Size Analysis

What does Quality Gate Size Analysis do?

Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone. Quality Gate Size Analysis is an agent skill from DataDog/datadog-agent, published by the product's own GitHub organization.

When should I use Quality Gate Size Analysis?

Quality Gate Size Analysis fits situations like: tasks that involve Quality gates; tasks that involve Project management.

How do I install Quality Gate Size Analysis in Claude Code?

Run `npx skills add DataDog/datadog-agent --skill quality-gate-size-analysis -a claude-code`. Or copy the skill folder (.agents/skills/quality-gate-size-analysis in DataDog/datadog-agent) into .claude/skills/quality-gate-size-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Quality Gate Size Analysis in Codex?

Run `npx skills add DataDog/datadog-agent --skill quality-gate-size-analysis -a codex`. Or copy the skill folder (.agents/skills/quality-gate-size-analysis in DataDog/datadog-agent) into .agents/skills/quality-gate-size-analysis in your project. Codex loads it when a task matches its description.

Can I use Quality Gate Size Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DataDog/datadog-agent --skill quality-gate-size-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quality-gate-size-analysis, .gemini/skills/quality-gate-size-analysis, .github/skills/quality-gate-size-analysis and .opencode/skills/quality-gate-size-analysis in your project.

What does Quality Gate Size Analysis need to run?

Going by SKILL.md and its folder, Quality Gate Size Analysis needs the command-line tools its instructions call (gh). Our summary lists: Docker.

Does Quality Gate Size Analysis access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Quality Gate Size Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quality Gate Size Analysis use?

Quality Gate Size Analysis is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quality Gate Size Analysis use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quality Gate Size Analysis?

Skills that share tags, products or a category with Quality Gate Size Analysis: Cherry Studio Regression Tests (CherryHQ/cherry-studio, 52k stars), Release Lambda Layer (DataDog/datadog-lambda-js, 126 stars), Tool Connector (ZhixiangLuo/10xProductivity, 478 stars) and lo2cin4bt Acceptance Review (lo2cin4/lo2cin4bt, 288 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quality Gate Size Analysis?

DataDog (a GitHub organization, an official publisher) maintains it in DataDog/datadog-agent, which has 3,757 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 8, 2026.

Source: DataDog/datadog-agent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.