Synthèse automatique
Génère un rapport des pull requests ouvertes de ClickHouse/ClickHouse qui sont prêtes à fusionner, c'est-à-dire dont toutes les vérifications CI sont vertes sauf éventuellement « CH Inc sync ».
Points forts
- Classe automatiquement chaque PR selon l'état de CH Inc sync (GREEN, FAILED, INPROG, NOSYNC) et indique si elle a déjà été approuvée
- Regroupe le résultat en trois sections : vos PR, celles qui vous sont assignées, et celles d'auteurs suivis (groeneai par défaut)
- Script fourni avec une suite de tests hors ligne s'appuyant sur un gh simulé
- Chaque appel gh est épinglé sur --repo ClickHouse/ClickHouse, donc le rapport reste correct quel que soit le répertoire d'exécution
Limites
- Spécifique au dépôt ClickHouse/ClickHouse et à son job privé « CH Inc sync » : inutilisable tel quel ailleurs
- Nécessite une authentification gh avec accès au dépôt et peut prendre environ une minute sur de gros ensembles d'auteurs
- Instantané ponctuel : les états changent en permanence à mesure que la CI tourne, et l'index de recherche GitHub peut omettre certaines PR
Quand vous voulez savoir rapidement quelles PR ClickHouse ne sont bloquées que par le job de synchronisation et peuvent donc être fusionnées.
Pour un autre dépôt que ClickHouse/ClickHouse, ou si vous cherchez une vue historique et stable plutôt qu'un instantané de l'état CI actuel.
Analyse de sécurité
PrudenceThe skill is intended for read-only reporting on ClickHouse PRs and shows no destructive, exfiltration, obfuscation, or safety-disabling instructions. However, it relies on running a bundled bash script with broad Bash permissions and authenticated GitHub access, so the risk is low but not zero; a cautious listing is appropriate until the script itself is reviewed.
- •Executes a bundled shell script (`report.sh`) whose contents are not included in SKILL.md, so the actual behavior cannot be fully verified from the listing alone.
- •Declares broad `Bash(bash:*)` permission and uses authenticated `gh`/network access, though the described operations are read-only PR/check/review queries.
Exemples
Show me the good PRs that are ready to merge right now.Run good-prs with tracked authors groeneai and azat and show me the report.List the good PRs but only the ones where CH Inc sync is FAILED or still running.name: good-prs description: Show a report of open ClickHouse PRs whose only non-green CI check is "CH Inc sync" (or that are fully green) — i.e. effectively ready to merge. Groups by your authored PRs, PRs assigned to you (authored by others), and PRs by tracked authors (default groeneai). Shows the CH Inc sync state and whether each PR was ever approved; excludes already-merged PRs. Use when asked for "good PRs", merge-ready PRs, or PRs blocked only on the sync job. argument-hint: "[tracked-author ...] # default: groeneai" disable-model-invocation: false allowed-tools: Bash(bash:), Bash(gh:), Bash(jq:), Bash(xargs:), Bash(awk:), Bash(grep:), Bash(cut:), Bash(sed:), Read
Good PRs Skill
Produce a report of open pull requests in ClickHouse/ClickHouse that are effectively
ready to merge: every CI check is green/skipped except possibly CH Inc sync, which
is the private-repo sync job and is frequently the last thing standing between a PR and
merge. Fully-green PRs are included too.
What counts as a "good PR"
For each PR, look at all checks and ignore the aggregate gates (PR, Mergeable Check,
A Sync (only for tests)). A PR qualifies when every remaining check other than
CH Inc sync is SUCCESS, SKIPPED, or NEUTRAL (nothing else is failing or still
running). The CH Inc sync state is then reported as one of:
- GREEN —
CH Inc syncalso passed → fully green / merge-ready. - FAILED — only
CH Inc syncfailed. - INPROG — only
CH Inc syncis still running (PENDING/IN_PROGRESS). - NOSYNC — there is no
CH Inc synccheck at all and everything else is green (typically release-branch backports).
Already-merged or closed PRs are excluded. Each row also shows whether the PR was
approved by anyone at least once (any historical APPROVED review event; it does
not require the approval to still be current after later pushes).
Sections
- Your own PRs — authored by the authenticated
ghuser. - Assigned to you, authored by others — assigned to you, excluding your own PRs and the tracked authors (those get their own section).
- PRs by each tracked author — every qualifying PR by the author, regardless of
assignee. Default tracked author:
groeneai. Pass author logins as arguments to change this (e.g.good-prs groeneai azat).
How to run
Run the bundled script and present its Markdown output directly to the user (it already emits finished tables):
bash .claude/skills/good-prs/report.sh $ARGUMENTS
The script fetches PR lists with gh pr list, classifies each PR's checks with
gh pr checks, and looks up state + approvals with gh pr view, all parallelized with
xargs -P 12. For groeneai-sized author sets (~200 open PRs) it takes roughly a minute.
Every gh call is pinned to --repo ClickHouse/ClickHouse, so the report is correct
regardless of the directory the skill is run from.
Testing
test.sh runs report.sh against a stubbed gh (no network) and checks the
bucket→label classification, the "only CH Inc sync is non-green" criterion, empty
input, --repo pinning, the fail-loud-on-real-error behaviour, and the retry policy
(a transient failure is retried until it succeeds, a permanent one is not retried):
bash .claude/skills/good-prs/test.sh
Presentation
- The script's stdout is a complete report — show it as-is.
- Statuses drift constantly as CI runs; if the user asks to "check again", just re-run the script. Mention it is a point-in-time snapshot.
- If the user wants only the failed/in-progress subset (not the fully-green ones), filter
the rows to
FAILED/INPROGafter running, or note which rows areGREEN.
Notes and caveats
gh pr list --author <login>is backed by GitHub's search index, which can occasionally omit an individual PR (a stale-index gap). If a specific PR is known to be missing, fetch it explicitly withgh pr view <n>and add it.- The aggregate gates excluded from the "everything else is green" test are
PR,Mergeable Check, andA Sync (only for tests). If ClickHouse CI renames or adds an aggregate gate, update theselect(...)filter inreport.sh. - Checks are classified by
gh pr checks' ownbucketfield (pass/fail/pending/skipping/cancel), not by raw state strings, so unusual states such asQUEUED,TIMED_OUT,CANCELLED, orSTARTUP_FAILUREare handled without a PR being silently dropped. - A full report makes roughly two GraphQL calls per PR — several hundred per run — so
hitting at least one transient GitHub failure is close to certain. Those (
HTTP 408,429, any5xx, gateway timeouts, connection resets, secondary rate limits) are retried with exponential backoff, and a primary rate-limit rejection waits for the hourly window to reset.GH_RETRIES(default 5) andGH_RETRY_DELAY(default 2 seconds) tune this. - The script still fails loudly: an error that will never fix itself (auth, unknown PR,
bad flag) aborts on the first attempt, and a transient error that outlives every retry
aborts too — in both cases with the original
ghdiagnostic, rather than silently omitting that PR from the report. - A run costs a large share of the hourly GraphQL quota (5000 points), so a few
back-to-back runs can exhaust it. Check with
gh api rate_limit --jq .resources.graphql. - The script needs
ghauthenticated andjqavailable.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/good-prs-report-mte1lfu9/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/good-prs-report-mte1lfu9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/good-prs-report-mte1lfu9/download' --output '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md.part' && mv '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md.part' '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(bash:*), Bash(gh:*), Bash(jq:*), Bash(xargs:*), Bash(awk:*), Bash(grep:*), Bash(cut:*), Bash(sed:*), Read
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && test -s '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/good-prs' && cp -R '.skill-downloads/good-prs-report-mte1lfu9' '.claude/skills/good-prs'Codex
test -f '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && test -s '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/good-prs' && cp -R '.skill-downloads/good-prs-report-mte1lfu9' '.agents/skills/good-prs'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/good-prs-report-mte1lfu9'openskills read 'good-prs-report-mte1lfu9'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/good-prs-report-mte1lfu9/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.