Skip to content

Add a skill for closing obsolete issues#9812

Merged
kenzieschmoll merged 10 commits intoflutter:masterfrom
kenzieschmoll:obsolete
Apr 30, 2026
Merged

Add a skill for closing obsolete issues#9812
kenzieschmoll merged 10 commits intoflutter:masterfrom
kenzieschmoll:obsolete

Conversation

@kenzieschmoll
Copy link
Copy Markdown
Member

@kenzieschmoll kenzieschmoll commented Apr 29, 2026

Fixes #9800

This PR also updates TRIAGE.md to use this skill with an agent (and updates stale owners while I am touching this file).

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner April 29, 2026 21:01
@kenzieschmoll kenzieschmoll requested review from bkonyi and srawlins and removed request for a team April 29, 2026 21:01
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new skill for identifying and closing obsolete issues in the flutter/devtools repository, including a rationale template and a helper script for fetching issue details. Feedback was provided regarding the robustness of the issue fetching script when encountering deleted users and the inclusion of unrelated dependency updates in the lockfile.

Comment thread pubspec.lock
Comment thread .agents/skills/closing-obsolete-issues/SKILL.md Outdated
Comment thread .agents/skills/closing-obsolete-issues/SKILL.md

- Use `grep_search` or `find_by_name` to check the current codebase for references to the issue or relevant code.
- Look for related PRs that might have fixed the issue but didn't close it automatically.
- For issues reporting specific versions, check the current DevTools version in `packages/devtools_app/pubspec.yaml` to determine if the reported version is very old.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little worried that an agent will just use this rationale alone to close old issues. Like if an issue was reported against DevTools 2.55 and we're at DevTools 2.58, what is actionable about that? I don't think we want to close issues that are just old. I don't think we want to ask for confirmation that old issues are still issues.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This skill does not automatically close any issues, but rather creates a report with rationale and draft comments. Once the user reviews and tells the agent to proceed, it will close the issues with the drafted comment. So if the agent gives a false positive on what it deems "very old" to be, then the user can tell it as much and tell it to fix the skill to ensure that doesn't keep happening.

@kenzieschmoll kenzieschmoll merged commit 3e0c484 into flutter:master Apr 30, 2026
87 of 88 checks passed
@kenzieschmoll kenzieschmoll deleted the obsolete branch April 30, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a Skill for closing obsolete issues

3 participants