the-judge
O que ela faz
Esta skill faz o agente revisar um pull request quanto à corretude, à segurança e à qualidade do código, depois publicar uma única revisão com alguns comentários bem fundamentados. Serve para desenvolvedores que querem um feedback focado, e não uma longa lista de observações menores.
Quando usar
- ✓Quando você quer uma segunda opinião sobre um pull request antes de um colega revisá-lo.
- ✓Quando você quer uma revisão que só levante pontos respaldados por evidências no código e na documentação atual.
- ✓Quando um pull request ficou confuso e você quer que os problemas estruturais sejam apontados.
Link da skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(quality)/the-judge/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Quero que você revise este pull request e publique uma revisão clara no GitHub, com apenas os comentários que realmente importam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente primeiro roda as verificações do próprio projeto, depois lê o código alterado e a documentação das bibliotecas de que precisa. Ele mantém apenas as descobertas que consegue sustentar com uma referência de arquivo ou uma fonte oficial, e as publica juntas em uma única revisão.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
- Evidence or silence. An internal claim (about this repo's code) requires a verified
file:linecitation 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. - 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.
- 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.
- 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.
- Every comment passes the gate. All comment bodies and the summary must pass
scripts/review_gate.pywith exit code 0 before posting. No exceptions, no manual overrides. - 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.
- 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. - 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
Perguntas frequentes
Ele deixa muitos comentários pequenos?
Não. A skill limita as observações menores a um número pequeno e coloca qualquer quantidade extra no resumo.
Precisa da ferramenta de linha de comando do GitHub?
Sim. A skill publica a revisão pela ferramenta gh, então ela precisa estar configurada.
Ele chuta sobre o comportamento de bibliotecas?
Não. Ele diz para verificar a documentação oficial atual antes de fazer qualquer afirmação sobre uma biblioteca externa.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 7,1 mil
- Posição no ranking
- #13565
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
component-common-domain-detection
7,1 milAjuda seu agente a encontrar lógica de negócio repetida em várias partes de um código e sugerir como uni-la.
component-flattening-analysis
7,1 milAjuda seu agente a encontrar código fora do lugar e a achatar pastas de componentes desorganizadas, para que cada parte fique onde deve ficar.
component-identification-sizing
7,1 milAjuda seu agente a mapear as partes de um código e medir o tamanho delas, para descobrir qual módulo dividir primeiro.
coupling-analysis
7,1 milAjuda seu agente a verificar o quanto as partes de um código dependem umas das outras e quais conexões afrouxar primeiro.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.