antfu-issue-triage
What it does
This skill has your AI review the open issues and pull requests in a GitHub project and suggest what to do with each one. It is for maintainers who want a clean issue list without doing it all by hand.
When to use it
- ✓When a project has many open issues and you want them sorted out.
- ✓When you want to find duplicate, spam or already fixed issues.
- ✓When you want suggested labels and a clear action list before anything changes.
Skill link
https://github.com/antfu/skills/blob/main/skills/antfu-issue-triage/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Go through the open issues in my repo and tell me which ones are duplicates or already fixed.”
5 new skills a week. 1 minute to read.
How it works
The agent reads the issues and pull requests, looks for duplicates and fixes, and shows a table of suggested actions. It changes nothing until you approve the list.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Issue Triage
Go through the open issues and PRs of the current repo (gh repo view --json nameWithOwner) and propose clean-up actions. Maintainers decide; the agent investigates.
Hard Rules
- Read-only until confirmed. Never comment, label, close, or edit before the user approves the action tables. Reads (
gh issue view,gh apiGET,gh search) are fine. - Every comment says it is automated by an agent. End with a separate last line (blank line before it):
🤖 *Automated by an agent.* - Comments are short and plain. Write them in simple English (use the
simple-englishskill if available): 1-3 short sentences, active voice, no jargon, no filler. Write each comment fresh for the item. Do not reuse a fixed template. Always include the link (PR, commit, release, or canonical issue) that justifies the action. - Only apply approved rows. If the user edits or drops rows, follow their edits exactly.
- Be conservative: when unsure, propose
keep open(with labels if useful) instead of closing. Do not close items with active maintainer discussion, an open linked PR, or a milestone unless the user asks. - Use plain hyphens; no em or en dashes.
Workflow
- Scope. Confirm the repo and range (default: all open items; for large repos ask for a limit, label, or age filter). Fetch in bulk:
gh issue list --state open --limit 200 --json number,title,body,author,labels,createdAt,updatedAt,comments,reactionGroups,url,milestone gh pr list --state open --limit 200 --json number,title,body,author,labels,isDraft,reviewDecision,closingIssuesReferences,url,reactionGroups gh label list --limit 200 --json name,description - Learn the labels. Read every label name and description. Only apply labels that exist. New labels (including
spamif missing) go in the Labels table and are created only after approval. Check how maintainers labeled similar items (gh issue list --state all --label <l>). Compare the repo's labels with the Recommended Labels section below and note useful ones that are missing. - Map references. Collect cross-references from bodies, comments, and the timeline (
gh api repos/{owner}/{repo}/issues/{n}/timeline --paginate):#123, URLs,closes/fixes, linked PRs, cross-repo links. Treat linked items as one cluster. Do not close an issue whose fix PR is still open. Do not mark linked items as duplicates of each other. - Check each item:
- Already fixed/implemented. Search merged PRs and commits (
gh pr list --state merged --search "<keywords>",git log -i --grep), changelog, docs, and current code. Find the first release with the fix (git tag --contains <sha> --sort=version:refname | head -1). Verify in the code, not just the title. A partial fix is not fixed: keep it open. - Duplicate. Group by symptom or request, not wording. Search open and closed issues with distinctive text (
gh issue list --state all --search "<text>"). Pick one canonical item: linked PR > maintainer response > best repro > most reactions > oldest. Close the others into it. - Spam. Needs two or more strong signals: promo/SEO/crypto links, off-topic text, repeated identical posts, empty body with a link, bulk activity from a new account. Typos, terse text, wrong template, or non-English are not spam.
- Labels. Suggest existing labels for unlabeled or mislabeled items.
- Low hanging fruit. Items a maintainer can finish fast: PRs that are approved or ready with passing CI, small PRs with a clear change, typo or docs fixes, bugs with a clear repro and an obvious small fix, and requests that are small and well defined. Say why each is quick, and propose the
low hanging fruitlabel for it. Skip items that are blocked, unclear, or large. - Demand. Count positive reactions (👍 ❤️ 🎉 🚀), negative ones, distinct commenters, "+1" comments, and folded-in duplicates. Rate
High / Medium / Lowfor the repo's size and show the raw numbers. Recent activity on an old item means it is still wanted.
- Already fixed/implemented. Search merged PRs and commits (
- Present the plan as the tables below, Stop to ask for confirmation. Run no write command in this turn.
- Execute approved rows only, one at a time: comment, then label, then close. Stop on the first API error and report it. End with a done/failed table with links.
- Run one issue per command (comment, label, and close for that issue chained with
&&). Do not batch many issues in one script or loop: bulk write commands can b
- Run one issue per command (comment, label, and close for that issue chained with
FAQ
Will it close issues on its own?
No. It only reads at first and shows its suggestions in a table for you to approve.
Does it write comments on issues?
Only after you approve them, and each comment says it was written by an agent.
Does it need a GitHub connection?
Yes. It reads the issues from the current GitHub repository.
Details
Original description by the author
Triage open issues and PRs of the current GitHub repo - find already-fixed, duplicate, and spam items, suggest labels, gauge demand from reactions and comments, then present a table of proposed actions and comments for confirmation before touching anything. Use when asked to triage, organize, clean up, or groom issues and PRs.
repo: antfu/skills
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14436
- License
- MIT
- Updated
- 10/30/2026
Comments
- …
More skills from this repository
antfu-create-pr
6.0kHelps your agent open a clear GitHub pull request from your branch, with a plain summary of what changed and why.
antfu-query
6.0kLets your agent question you one step at a time about a plan or idea until the two of you share a clear, tested understanding.
antfu-simplify
6.0kHelps your agent cut your code changes down to the smallest correct version, removing parts that are not needed.
antfu
6.0kTeaches your agent Anthony Fu's preferred habits for JavaScript and TypeScript projects, from file layout to tooling choices.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.