antfu-issue-triage
Ce qu’il fait
Cette compétence permet à votre IA d'examiner les tickets et pull requests ouverts d'un projet GitHub et de proposer une action pour chacun. Elle s'adresse aux mainteneurs qui veulent une liste de tickets propre sans tout traiter à la main.
Quand l’utiliser
- ✓Quand un projet compte de nombreux tickets ouverts et que vous voulez les trier.
- ✓Quand vous voulez repérer les doublons, les spams ou les tickets déjà corrigés.
- ✓Quand vous voulez des étiquettes suggérées et une liste d'actions claire avant que quoi que ce soit ne change.
Lien du skill
https://github.com/antfu/skills/blob/main/skills/antfu-issue-triage/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Passe en revue les tickets ouverts de mon dépôt et dis-moi lesquels sont des doublons ou déjà corrigés.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent lit les tickets et pull requests, cherche les doublons et les corrections, puis affiche un tableau des actions suggérées. Il ne modifie rien tant que vous n'avez pas approuvé la liste.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Fermera-t-il des tickets tout seul ?
Non, il lit d'abord et présente ses suggestions dans un tableau que vous devez approuver.
Écrit-il des commentaires sur les tickets ?
Seulement après votre approbation, et chaque commentaire indique qu'il a été rédigé par un agent.
Faut-il une connexion à GitHub ?
Oui, il lit les tickets à partir du dépôt GitHub actuel.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 6.0k
- Position au classement
- #14436
- Licence
- MIT
- Mis à jour
- 30/10/2026
Commentaires
- …
Autres skills de ce dépôt
antfu-create-pr
6.0kAide votre agent à ouvrir une pull request GitHub claire à partir de votre branche, avec un résumé simple de ce qui a changé et pourquoi.
antfu-query
6.0kPermet à votre agent de vous poser des questions une étape à la fois sur un plan ou une idée, jusqu'à ce que vous partagiez une compréhension claire et testée.
antfu-simplify
6.0kAide votre agent à réduire vos modifications de code à la version la plus petite et correcte, en supprimant ce qui n'est pas nécessaire.
antfu
6.0kEnseigne à votre agent les habitudes préférées d'Anthony Fu pour les projets JavaScript et TypeScript, de l'organisation des fichiers aux choix d'outils.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.