pkg/analysis_server/.agents/skills/closing-obselete-issues/SKILL.md
Use this skill to find old, outdated issues in the dart-lang/sdk repository that have been fixed, are stale, obsolete, or not reproducible.
Identify Target Issues:
gh) to search for the oldest open issues.area-devexp to identify analysis server issues.type-bug and any other label that the user gives you.verified-by-an-agent or closed-by-agent by adding -label:verified-by-an-agent -label:closed-by-agent to the search query.created-asc) or last update (updated-asc) to find the most likely candidates for being outdated.gh issue list --repo dart-lang/sdk --search "label:area-devexp is:open label:type-bug -label:verified-by-an-agent sort:created-asc" --limit 50 | catgh issue list --repo dart-lang/sdk --search "label:area-devexp is:open -label:verified-by-an-agent sort:created-asc" --limit 50 | catreferences/investigated_issues.txt (create it if it does not exist). Filter out and skip any candidate issue numbers that are already listed in this file.Investigate Status:
P0, P1, critical) or is assigned to an active milestone.scripts/fetch_issue_details.sh <number> to get a comprehensive view of the issue and its comments.references/rationale_templates.md to verify if a rationale applies.Draft and Review Comments (CRITICAL MANDATE):
references/rationale_templates.md for wording inspiration. Each comment MUST end with: "If there is more work to do here, please let us know by filing a new issue with up to date information. Thanks!"HEAD):
HEAD on the latest SDK.test/ directory) demonstrating the issue.{
"issue_number": 12345,
"issue_url": "https://github.com/dart-lang/sdk/issues/12345",
"eligible_for_close": true,
"matched_rationale_id": 1,
"confidence_score": 0.95,
"verification_finding": "Verified that standard LSP protocol capabilities natively handle the requested server configuration.",
"proposed_comment": "[Full proposed comment including the mandatory footer]"
}
Iterate on Skill Knowledge (Learning Loop):
references/rationale_templates.md, update the reference file to include it.Execute and Summarize:
gh issue close with the -c flag to post the comment and close the issue. Apply the closed-by-agent label to the issue.gh issue comment <number> -b "<comment>" to post the confirmation comment containing the minimal reproduction / test case. Apply the verified-by-an-agent label to the issue using gh issue edit <number> --add-label "verified-by-an-agent".references/investigated_issues.txt, one issue number per line. Do NOT track closed issues, as they are already filtered out by is:open.grep, ripgrep, or environment-specific
search tools) to check the current codebase for references to the issue or relevant code.read_gerrit_cl skill (SKILL.md) to inspect the patchset diffs and comments of open or merged Gerrit CLs.HEAD of the codebase before proposing closure. Never assume a bug is obsolete or fixed based solely on the passage of time or version discrepancies. If you cannot reproduce it, provide clear details of your reproduction attempt on the current codebase.