Aller au contenu
Skillpedia
Programmation générale7.1k · #13565

the-judge

Ce qu’il fait

Ce skill fait relire une demande de fusion par l'agent, pour l'exactitude, la sécurité et la qualité du code, puis publier une seule revue avec quelques commentaires bien étayés. Il s'adresse aux développeurs qui veulent des retours ciblés plutôt qu'une longue liste de remarques mineures.

Quand l’utiliser

  • ✓Quand vous voulez un second regard sur une demande de fusion avant qu'un collègue ne la relise.
  • ✓Quand vous voulez une revue qui ne soulève que des points appuyés par le code et la documentation à jour.
  • ✓Quand une demande de fusion est devenue confuse et que vous voulez signaler les problèmes de structure.

Lien du skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(quality)/the-judge/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/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(quality)/the-judge/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

“Je veux que tu relises cette demande de fusion et que tu publies une seule revue GitHub claire, avec uniquement les commentaires importants.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lance d'abord les vérifications du projet, lit le code modifié et la documentation des bibliothèques nécessaires. Il ne garde que les constats qu'il peut étayer par une référence de fichier ou une source officielle, puis les publie ensemble dans une seule revue.

Contenu technique (SKILL.md original)

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

The Judge

Review a pull request like a senior engineer with a high conviction bar: few comments, every one backed by evidence, posted as a single consolidated GitHub review. The Judge would rather post three findings that matter than fifteen observations that waste the author's time.

Non-Negotiables

These rules override everything else in this skill. Read them before doing anything.

  1. Evidence or silence. An internal claim (about this repo's code) requires a verified file:line citation you confirmed by reading the file. An external claim (about a library, API, framework, version, deprecation, vulnerability, or best practice) requires a URL from an official source fetched during this review. A finding without evidence is not posted. Period.
  2. Never assert external behavior from memory. Before claiming anything about how a dependency, API, or framework behaves, search current official documentation, changelogs, or security advisories. If research is inconclusive, downgrade the finding to a question or kill it. Training data is a rumor; the changelog is a source.
  3. Noise budget. Maximum 5 nit comments inline; overflow becomes a count in the summary. Do not flood the review with low-value notes when structural issues exist. Prefer a small number of high-conviction comments.
  4. Never comment on what the repo's own tooling catches. Run the repo's linters, type checkers, and focused tests first (Step 1). Anything they flag is out of scope for review comments.
  5. Every comment passes the gate. All comment bodies and the summary must pass scripts/review_gate.py with exit code 0 before posting. No exceptions, no manual overrides.
  6. Language: the user chooses; English is the default. If the invocation names a language ("judge this PR in Portuguese", "revise em português"), write the entire review in it, natively and correctly, with full diacritics; never plain-ASCII degraded text. Absent an explicit request, write in English. Verdict tokens (APPROVE, COMMENT, REQUEST_CHANGES), code identifiers, quoted strings, and tool output stay verbatim in any language.
  7. Spend tokens where judgment lives. Read only the diff, the files it touches, and their direct callers or callees when tracing a finding requires it; never ingest the whole repo. Detection a regex can do runs in scripts/scan_bypasses.py, not in prose. A finding that is deterministic by nature goes to the lint-rule flywheel so the next review costs less than this one.
  8. The first review is the whole review. Everything visible in round 1 is raised in round 1, batched in one consolidated review. Holding a finding for a later round is forbidden; trickled comments are how reviews become infinite ping-pong. Re-reviews verify resolution; they do not open new fronts (see Convergence Contract).

Severity and Verdict

Severity Emoji Definition Verdict effect
blocker 🔴 Changes whether the PR should merge: data loss, exploitable security, incorrect money, broken auth, irreversible migration, PII in logs REQUEST_CHANGES
should-fix 🟠 Real defect, but not a merge risk COMMENT
nit 🟡 Minor. Capped at 5 inline; overflow counted in summary No effect
pre-existing 🟣 Bug the PR did not introduce. Summary only, never inline No effect

Verdict mapping: any 🔴 present, REQUEST_CHANGES. Zero 🔴 and zero 🟠, APPROVE. Anything else, COMMENT.

Own-PR fallback: GitHub returns 422 when you APPROVE or REQUEST_CHANGES your own PR. scripts/post_review.py detects when the PR author equals the authenticated gh user, posts as COMMENT, and appends a one-line footer at the end of the summary stating the intended verdict. The TL;DR already carries the verdict token, so the footer only explains the mechanics. Do not fight this; it is API behavior.

Workflow

Step 0: Resolve context

gh pr view --json number,title,body,author,url,baseRefName,headRefName,additions,deletions,changedFiles
gh api user --jq .login
gh pr diff <number>
gh pr view <number> --json files --jq '.files[].path'

Classify every changed file as core or mechanical (generated code, lockfiles, snapshots, vendored deps, build artifacts, migrations output). Mechanical files are skipped and listed in the summary. Detect moved code: 3+ consecutive lines deleted in one place and added identically elsewhere is a move, not new code; do not re-review it as new.

Determine the round. Fetch your own

Questions fréquentes

Va-t-il laisser de nombreux petits commentaires ?

Non. Le skill limite les remarques mineures à un petit nombre et place le reste dans le résumé.

Faut-il l'outil GitHub CLI ?

Oui. Le skill publie sa revue avec la commande gh, il faut donc l'avoir installé.

Devine-t-il le comportement des bibliothèques ?

Non. Il vérifie la documentation officielle à jour avant toute affirmation sur une bibliothèque externe.

Détails

Description originale de l’auteur

Evidence-first pull request judge that reviews a PR and posts one consolidated GitHub review with inline comments via the gh CLI. Runs the repo's own deterministic checks first, researches current official docs before any claim about external libraries or APIs, then reviews correctness, security, structural quality (code judo, spaghetti growth, file-size limits), and AI slop including useless code comments. Every finding must carry evidence, every comment passes a deterministic noise gate before posting, and the verdict (APPROVE, COMMENT, REQUEST_CHANGES) is weighed by findings. Use when asked

repo: tech-leads-club/agent-skills

Popularité

Étoiles GitHub
7.1k
Position au classement
#13565
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