| name | pick-next-issue |
|---|---|
| description | Fetch and rank open GitHub issues by community engagement, present the top 3 candidates, and plan implementation for the selected issue. Use when the user asks to "pick next issue", "next issue", "which issue should I work on", "top issues", "most popular issues", "prioritize issues", or "what should I work on next". |
Fetch open GitHub issues from the current repo, rank them by community engagement (reactions and comments), present the top 3 to the user, and plan the selected issue's implementation. This skill runs in plan mode.
Run gh issue list to fetch open issues with engagement data:
gh issue list --state open --json number,title,url,reactionGroups,comments,labels,createdAt --limit 50Calculate an engagement score for each issue:
- Reactions score: Sum all reaction counts from
reactionGroups(thumbs up, heart, hooray, etc.). Weight thumbs-up (THUMBS_UP) reactions 2x since they signal explicit demand. - Comments score: Count of comments on the issue.
- Engagement score:
(weighted reactions) + comments
Sort issues by engagement score descending.
Present the top 3 issues in a numbered list. For each issue, show:
- Title with issue number and link
- Labels (if any)
- Engagement: reaction breakdown and comment count
- Created: date
- First paragraph of the issue body (truncate if long)
If fewer than 3 open issues exist, present all of them.
If no open issues exist, inform the user and stop.
Ask the user to pick one of the presented issues (or request to see more).
If the user asks to see more, present the next 3 issues from the ranked list.
Fetch the complete issue details for the selected issue:
gh issue view <number> --json number,title,body,url,labels,comments,reactionGroups,assignees,milestoneRead the full issue body and comments to understand the requirements and any discussion context.
Using the issue as the requirements, explore the codebase, design the implementation, and write a detailed plan (exact file paths, function signatures, data flow, test cases).
After writing the plan, before presenting it to the user:
- Run the
/enhance-planskill to add task tracking, a skills line, and a finalize step. - The plan's final step must instruct: "Close issue #N or reference it in the PR with
Closes #N."
- Requires
ghCLI authenticated with access to the current repo - If
ghfails (not in a repo, not authenticated), inform the user and stop - Never modify issues. This skill is read-only until the implementation is committed.