Aller au contenu
Skillpedia
Programmation générale29k · #9367

gh-review

Ce qu’il fait

Cette skill fixe les règles et le ton pour rédiger des relectures et des commentaires GitHub. Elle s'adresse aux développeurs qui relisent du code et veulent un retour direct et clair.

Quand l’utiliser

  • ✓Quand vous demandez à votre agent de relire une pull request et de publier le résultat sur GitHub.
  • ✓Quand vous voulez que les commentaires de relecture soient directs, sans formulation vague ou optionnelle.
  • ✓Quand votre agent s'apprête à publier un commentaire sur GitHub et que vous voulez qu'il vérifie d'abord qui publie.

Lien du skill

https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/gh-review/SKILL.md

Copiez-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

Utilise ce skill pour m’aider : https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/gh-review/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Rédige une relecture GitHub pour cette pull request, et fais en sorte que chaque modification demandée soit claire et obligatoire.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill donne à l'agent une liste de contrôle : confirmer le compte qui publie, rédiger chaque demande avec un repère et une raison, puis publier un verdict clair.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

GitHub review voice

Load this the moment a review or diagnosis is about to become a GitHub comment. The investigation skill owns the evidence; this skill owns what gets written, posting authorization, and how it is posted.

Who is posting

Before drafting, run gh auth status once and record the active account for the target GitHub host in the review record. Do not dump environment variables or expose tokens.

Do not assume the answer. It may be the user's account or a bot account with its own identity; which one it is changes how you act:

  • Self-review means the posting account is the PR author. Compare the login above to the PR's author.login, and decide self-review from that comparison alone—not from who the user is.
  • Write in the posting account's voice. If it is not the author's account, do not refer to the PR as "mine".
  • The user is accountable for the content regardless of which account posts it—which is why the post gate below exists.

Check once per session, not before every post.

The rule

Ask for the changes you want, and every one of them is required. Small requests are still requests—post them. What you never do is label them: there is no "optional", no "nit", no "non-blocking", no "follow-up", no "future PR". The author satisfies the list; the review is not a menu.

Hedging is not politeness; it transfers the decision back to the author while pretending not to. A reviewer who has evidence states the request.

Voice

Be direct about required changes and precise about what the evidence establishes:

  • Imperative, present tense. "Advance attempt before the comparison." Not "you might want to consider advancing…".
  • Pointer, change, reason. Every request names the file and line, says what to change, and gives the consequence or evidence in one or two sentences.
  • No pleasantries. No "Thanks for the PR", "Great work overall", "Nice cleanup", "Let me know if you have questions", "Happy to discuss".
  • No softened requests. State required changes directly, not as optional suggestions or politeness questions ("You might want to advance attempt?", "Consider adding a test"). Preserve qualifications that express actual uncertainty or limits of evidence: "the contract does not guarantee this field" must not become "servers never return this field".
  • No restated verdict. GitHub already shows "requested changes" or "approved" above the body. Never open with "Request changes." / "Approve." / "Verdict:".
  • Questions only when the answer changes the request. State what you believe and what changes if the answer differs: "This drops the retry on 429. If that is intentional, document it in the option's JSDoc; otherwise restore the branch at client.ts:88."
  • Evidence over assertion. "Ran pnpm test:memory on this branch with the second tool call removed: fails at observer.test.ts:212." Not "this may break the tests".
  • Plain about severity. If it corrupts data, say it corrupts data.
  • Code, not people. Never characterize the author, their effort, or their experience.

Length is set by the requests, not by a budget. Each request is a pointer, the change, and the reason—nothing else—and every request you have evidence for is in the body. Eight requests make an eight-item review; do not shrink the list to look concise, and do not park requests in a "secondary" or "candidate" tier to be added if asked.

Structure of a PR review body

Request changes (fictional example):

The new retry setting reaches the normal path, but recovery still uses the old default. Both paths need to honor the same configured limit.

1. `src/client/retry.ts:41` — Pass the configured limit into the recovery path. It currently retries even when callers disable retries.
2. `src/client/retry.test.ts:88` — Cover the recovery path with retries disabled. The current test only exercises the normal path.

Verified: a recovery-path probe with retries disabled made three attempts.

Approve:

<Brief reason the approach and implementation satisfy the required outcome.>

Verified: <what you actually ran, only if it adds credibility>.

Lead with the review's central conclusion and why it matters, not the event label. Give each numbered request a clear resolving condition; group changes that must land together or state their dependencies. Put the request that most affects correctness first. If the author needs to make a product decision rather than a code change, say what decisio

Questions fréquentes

Cette skill publie-t-elle les commentaires toute seule ?

Elle guide la rédaction et la publication des commentaires, et demande à l'agent de vérifier d'abord quel compte GitHub publie.

L'agent peut-il marquer une demande comme facultative ?

Non. La skill lui demande d'éviter les étiquettes comme facultatif ou détail mineur, pour que chaque demande soit claire.

À qui s'adresse cette skill ?

Aux personnes qui relisent du code sur GitHub et veulent des commentaires cohérents et directs.

Détails

Description originale de l’auteur

Draft and post direct, unhedged GitHub PR reviews and issue comments — every item is a required change with a pointer and reason, PR reviews land as "request changes" or "approve" (never a bare comment), and nothing is marked optional or deferred to a follow-up. Use whenever understand-pr or understand-issue (or any review) is about to draft or post to GitHub.

repo: mastra-ai/mastra

Popularité

Étoiles GitHub
29k
Position au classement
#9367
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires