Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone
65
57%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/quality-gate-size-analysis/SKILL.mdAnalyze 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.
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}from=now-$TIME_RANGE and to=nowraw_data=true to get CSV with timestamps for spike identificationQuery 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}datadog.agent.static_quality_gate.on_disk_size — absolute on-disk size per gatedatadog.agent.static_quality_gate.on_wire_size — compressed/network sizedatadog.agent.static_quality_gate.max_allowed_on_disk_size — configured thresholdsThe Agent Package size metrics dashboard contains all relevant widgets.
Exception records live in the ABLD Confluence space under folder ID 5996904656.
Use CQL search:
ancestor = 5996904656 AND type = page ORDER BY created DESCcloudId: datadoghq.atlassian.net[TEMPLATE] page from resultsFor every page returned, call getConfluencePage with contentFormat=markdown to extract:
Compile all exceptions into a structured table with columns: Title, Date, Decision, Disk Increase, Scope, PRs, Requester.
Extract PR numbers from the Confluence pages (they appear as GitHub URLs in the exception text). For each PR:
gh pr view <NUMBER> --repo DataDog/datadog-agent --json number,title,mergedAt,milestone,labels,stateThe milestone field (e.g. 7.77.0) determines which release the PR belongs to. Do NOT use labels for release attribution.
Search for PRs merged in the time window that may have size impact but no exception:
gh pr list --repo DataDog/datadog-agent --base main --state merged \
--search "merged:>=YYYY-MM-DD" --json number,title,mergedAt,milestone,labelsFilter for PRs with labels like qa/rc-required, component/system-probe, etc., and cross-check against the exception list.
For exceptions that don't directly link a PR, search by keyword:
gh pr list --repo DataDog/datadog-agent --base main --state merged \
--search "<feature-keyword> merged:>=YYYY-MM-DD" --json number,title,mergedAt,milestoneFor each significant spike in relative_on_disk_size:
Group all size-impacting PRs by their milestone (not by label or merge date):
milestone:7.75.0 → Release 7.75milestone:7.76.0 → Release 7.76Flag:
Write a markdown report to the repository root (e.g. quality_gate_size_analysis_YYYYQN.md) with these sections:
relative_on_disk_size metric uses ci_commit_ref_slug (not git_ref) for branch filtering.package.size metric uses git_ref for branch filtering — branch names use hyphens (e.g. 7-77-x).5996904656 is a folder, not a page — use CQL ancestor = to search, not getConfluencePageDescendants.gh pr view --json milestone.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).0f36ad4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.