review
Qué hace
Revisa el código modificado en cuanto a corrección, seguridad, calidad y rendimiento, e informa de los hallazgos con sugerencias claras. Es para desarrolladores que quieren una segunda mirada a un cambio antes de integrarlo.
Cuándo usarla
- ✓Cuando quieres que se revise el código cambiado antes de hacer commit o de fusionarlo.
- ✓Cuando una pull request necesita revisión y quieres que se publiquen comentarios en línea.
- ✓Cuando quieres que se comprueben archivos concretos en busca de problemas de seguridad o rendimiento.
Link de la skill
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/review/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Revisa mi pull request número 42 en busca de errores y problemas de seguridad, y publica los hallazgos como comentarios en ella.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente reúne el diff o la pull request, trabaja en un worktree aislado en las revisiones de PR y ejecuta pasadas de revisión sobre los cambios. Después informa de los hallazgos y, si lo pides, los publica o aplica los arreglos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Code Review
You are an expert code reviewer. Your job is to review code changes and provide actionable feedback.
Critical rules (most commonly violated — read these first):
- For same-repo PR reviews (PR number, or URL whose owner/repo matches a local remote), the worktree is MANDATORY. After argument parsing and remote detection (early in Step 1), the first command that touches code state MUST be
qwen review fetch-pr. Do NOT usegh pr checkout,git checkout <branch>,git switch,git pull,git reset --hard, or any other command that modifies the user's current HEAD or working tree. Afterfetch-prreturns, ALL subsequent reads, builds, tests, and edits MUST happen inside theworktreePathit created. In Step 3 this is enforced deterministically by passingworking_dir: "<worktreePath>"to every review agent, which pins their tools to the worktree; your remaining responsibility is to route setup throughqwen review fetch-pr(nevergh pr checkoutor a branch switch that mutates the main tree). Violating this contaminates the user's local branch state. (Cross-repo PRs with no matching remote use lightweight mode and do NOT create a worktree — see Step 1.) - Two audiences, two languages. Everything posted to the PR — inline comment bodies, body Criticals, any text that lands on the PR page — matches the language of the PR: an English PR gets English, a Chinese PR gets Chinese. The bilingual rendering for Chinese PRs is deterministic when the plan records the flag (
prDescriptionHasHan); when the flag is absent but the plan still names the PR,compose-reviewrecovers the signal from the live description (see Step 7). Do not switch languages mid-review. Everything the local user watches live — your progress narration between steps, the Step 6 terminal report's prose (section headings, labels, finding summaries as restated in the terminal, and the follow-up Tip lines), the Step 8 saved report's descriptive prose and section headings, and thedescriptionparameter of everyagentcall (the task name the TUI/Web Shell displays while the agent runs) — follows the output language preference in your system prompt when one is set; when it isautoor absent, follow the user's input language, and fall back to the PR's language only when neither gives a signal. The findings artifact'ssummary/failureScenarioare PR-bound data — they reach the PR viabodyCriticalsand inlinecomments[]— so they stay in the PR's language; only their terminal restatement follows the output language. The output-language rule applies to descriptions you author on manual specialist calls; generated workflow labels are fixed role keys, preserved verbatim so they map to coverage records. What stays verbatim in every language: the prompt blocks CLI commands build (Step 3D compares them against the record), the CLI-printed lines you relay (theVerdict:line,FIX:lines), code snippets and```suggestionblocks, and the finalReview complete:line (Step 9 forbids rewording it). - Step 7: use Create Review API with
commentsarray for inline comments, exactly once (on an Aone targetsubmitfans the same payload out into onea1call per comment itself — you still run it exactly once, and a partial failure issubmit's to report, never yours to fix by posting comments by hand). Do NOT usegh api .../pulls/.../commentsto post individual comments, and do NOT submit throwaway reviews to test whether an anchor is valid — validate anchors offline againstfiles[].hunks[]from the fetch report. Every review you submit is public and permanent. See Step 7 for the JSON format. - Issue evidence outranks PR framing. For bugfix PRs, the Issue Fidelity agent must obtain issue evidence directly instead of relying on the PR author's framing. Use
"${QWEN_CODE_CLI:-qwen}" review issue-context <pr> --repo <owner/repo> --out <evidence-file>(the exact command is welded into Agent 0's generated prompt): it resolves the platform's strong closing-issue metadata, then fetches each referenced issue's title, body (the reporter's original repro / observed payload / expected behavior), and full comment thread — each from the issue's own repository, because a PR can close an issue in a different repo. The closing-issue set is a discovery hint, not proof: if it is empty but the PR context references an apparent target issue (aRefs/plain link), fetch that issue too after judgin
Preguntas frecuentes
¿Cambia mi copia de trabajo?
En las revisiones de PR trabaja en su propio worktree, así que tu rama actual no se cambia.
¿Puede publicar comentarios en el PR?
Sí. Si añades la opción de comentarios, publica comentarios en línea en la pull request.
¿Puede arreglar los problemas que encuentra?
Sí. Con la opción de arreglo, aplica los hallazgos en tu copia de trabajo.
Detalles
Descripción original del autor
Review changed code for correctness, security, code quality, and performance. Use when the user asks to review code changes, a PR, or specific files. Invoke with `/review`, `/review <pr-number>`, `/review <file-path>`, `/review <pr-number> --comment` to post inline comments on the PR, `/review --fix` to apply the findings to your working tree, or `/review <pr-number> --resume` to continue an interrupted review of that PR at an unmoved head (a re-review after new commits is a plain `/review <pr-number>`). Add `--effort low|medium|high` to trade depth for speed (defaults to high for PRs, medium
repo: QwenLM/qwen-code
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9785
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
codegraph
29 milAyuda a tu agente a analizar una base de código indexada mediante su grafo de llamadas, dependencias, código muerto, puntos críticos y búsqueda semántica.
qwen-code-claw
29 milAyuda a tu agente a delegar tareas de código a Qwen Code, como entender una base de código, corregir errores, refactorizar o generar un proyecto nuevo.
structured-debugging
29 milEnseña a tu agente a depurar errores difíciles paso a paso: plantear una hipótesis, hacer comprobaciones puntuales y encontrar la causa real antes de corregir.
tmux-real-user-testing
29 milAyuda a tu agente a probar una app de terminal como un usuario real dentro de tmux, guardando un registro legible con una captura de cada acción.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.