一键导入
quality-gate-size-analysis
Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze static quality gate on-disk size changes, correlate with Confluence exception records and GitHub PRs by milestone
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate the Agent Supply Chain newsletter by researching team activity on GitHub and Confluence, then creating a Confluence draft and Gmail draft
Give your AI agents something more useful than a prompt. Velocity through clarity.
Extract an Allium specification from an existing codebase. Use when the user has existing code and wants to distil behaviour into a spec, reverse engineer a specification from implementation, generate a spec from code, turn implementation into a behavioural specification, or document what a codebase does in Allium terms.
Run a structured discovery session to build an Allium specification through conversation. Use when the user wants to create a new spec from scratch, elicit or gather requirements, capture domain behaviour, specify a feature or system, define what a system should do, or is describing functionality and needs help shaping it into a specification.
Generate tests from Allium specifications. Use when the user wants to propagate tests, generate test files from a spec, write tests for a specification, create property-based tests, produce state machine tests, check test coverage against spec obligations, or understand what tests a specification requires.
Autonomously work on Jira backlog tickets, creating PRs and shepherding them to merge
| 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.
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 DESC
cloudId: 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,state
The 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,labels
Filter 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,milestone
For 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).