Analyze an open issue and propose to treat or close it
Analyzes open issues and recommends whether to treat or close them with context-aware suggestions.
/plugin marketplace add bengous/claude-code-plugins/plugin install git-tools@bengous-pluginsclaude-opus-4-5Analyze an open issue and make a recommendation to either treat (continue working on it) or close it with an explanatory comment.
Usage:
/issue-triage
Your task: List open issues, let the user pick one, then analyze it and help decide whether to treat or close it.
Run this command to list all open issues:
gh issue list --state open --limit 30 --json number,title,author,createdAt,labels,assignees
Present the issues in a table format:
| # | Title | Labels | Age |
|---|-------|--------|-----|
| 123 | Issue title here | `label1` `label2` | X days |
Then use AskUserQuestion to ask the user which issue they want to triage. Store the selected issue number for subsequent steps.
Once the user selects an issue, run these commands to gather context:
# Get issue details (replace ISSUE_NUMBER with selected issue)
gh issue view ISSUE_NUMBER --json title,body,state,author,createdAt,updatedAt,labels,assignees,comments,milestone,projectItems
# Get issue timeline/activity
gh issue view ISSUE_NUMBER --comments
Before recommending action, verify the issue is still valid:
Check if the issue still exists in the codebase
Check if already fixed/implemented
Check for duplicates
Evaluate based on:
Age & Activity
Clarity & Quality
Labels & Assignment
Relevance
Provide a concise summary with:
## Issue Summary: [Title]
**Author:** @username | **Created:** X days/weeks ago | **Last activity:** Y days ago
**Labels:** [label1, label2] or none
**Assignees:** [@user] or unassigned
**Milestone:** [milestone] or none
**Fact-check results:**
- [Finding 1: e.g., "Bug confirmed - error still occurs in current code"]
- [Finding 2: e.g., "Related PR #123 was merged but didn't fully fix this"]
- [Finding 3: e.g., "Duplicate of #456"]
**Key observations:**
- [Observation 1]
- [Observation 2]
- [Observation 3]
**Recommendation:** [TREAT/CLOSE]
**Reason:** [Brief explanation]
Use AskUserQuestion to present the options:
If TREAT:
gh issue edit or gh issue commentIf CLOSE:
gh issue comment ISSUE_NUMBER --body "<comment>"
gh issue close ISSUE_NUMBER --reason <completed|not_planned>
Use --reason completed when:
Use --reason not_planned when:
Already Fixed:
This issue has been resolved. [Brief explanation of how/when it was fixed.]
Closing as completed. If you're still experiencing this issue, please open a new issue with updated reproduction steps.
Duplicate:
This appears to be a duplicate of #[number].
Closing in favor of the original issue. Please follow #[number] for updates.
Cannot Reproduce:
We weren't able to reproduce this issue with the information provided. If you're still experiencing this:
1. Please confirm you're using the latest version
2. Provide detailed reproduction steps
3. Include any error messages or logs
Feel free to reopen with additional details.
Stale:
This issue has been open for a while without recent activity. We're closing it to keep the issue tracker manageable.
If this is still relevant, please reopen with any additional context or updates. We appreciate your contribution!
Won't Fix:
Thank you for the suggestion! After consideration, we've decided not to implement this because [reason].
We appreciate you taking the time to share your ideas. If you have other suggestions, we'd love to hear them.
Needs More Info (keep open but comment):
Thanks for reporting this! To help us investigate, could you provide:
- [ ] Steps to reproduce the issue
- [ ] Expected vs actual behavior
- [ ] Environment details (OS, version, etc.)
- [ ] Any error messages or logs
We'll revisit this once we have more details.
Customize comments based on the specific situation.