agents/projects/code-health/histogram-extension/SKILL.md
This skill outlines how you (the agent) should automatically locate and extend the expiration dates of UMA histograms in Chromium that have expired or are nearing expiration.
generalist sub-agent to find histograms that are nearing expiration if none are provided. Run:
python3 scripts/find_candidates.py --count 1
references/bug_discovery.md and Buganizer to ensure the metric isn't already being extended in another ticket.tools/metrics/histograms/metadata/*/histograms.xml to find the target metric.<histogram name="TARGET_NAME" expires_after="YYYY-MM-DD"> definition (or enum=... expires_after="...").YYYY-MM-DD format).expires_after="YYYY-MM-DD" string constraint inline, being sure not to modify other attributes.Create the Git commit with a descriptive, code-health aligned message using the metadata template below.
Skill Name: histogram-extension
Branch Name: histogram-extension-[histogram-name]
Commit Hashtag: Code Health
Cleanup Title: Extend expiration for [Histogram Name]
Cleanup Description:
This metric is still actively needed for telemetry monitoring. Extending expiration to prevent data loss.
Parent Bug: 499059543
Bug ID: The resolved <Bug ID> from the Bug Checking step.
Upload the CL to Gerrit and add the appropriate metadata reviewers depending on the OWNERS file located in tools/metrics/histograms/metadata/{category}/OWNERS.