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

review

Ce qu’il fait

Elle relit le code modifié pour l'exactitude, la sécurité, la qualité et les performances, et présente les constats avec des suggestions claires. Elle s'adresse aux développeurs qui veulent un second regard sur une modification avant de la fusionner.

Quand l’utiliser

  • ✓Quand vous voulez qu'un code modifié soit relu avant d'être commité ou fusionné.
  • ✓Quand une demande de fusion doit être relue et que vous voulez y publier des commentaires en ligne.
  • ✓Quand vous voulez que des fichiers précis soient contrôlés pour les problèmes de sécurité ou de performance.

Lien du skill

https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/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/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/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

“Je voudrais relire ma demande de fusion numéro 42 pour détecter les bogues et les problèmes de sécurité, et publier les constats en commentaires sur celle-ci.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent rassemble le diff ou la demande de fusion, travaille dans un worktree isolé pour les relectures de demandes de fusion, et lance plusieurs passes de relecture sur les modifications. Il présente les constats, puis peut les publier ou appliquer des corrections si vous le demandez.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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):

  1. 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 use gh 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. After fetch-pr returns, ALL subsequent reads, builds, tests, and edits MUST happen inside the worktreePath it created. In Step 3 this is enforced deterministically by passing working_dir: "<worktreePath>" to every review agent, which pins their tools to the worktree; your remaining responsibility is to route setup through qwen review fetch-pr (never gh pr checkout or 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.)
  2. 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-review recovers 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 the description parameter of every agent call (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 is auto or absent, follow the user's input language, and fall back to the PR's language only when neither gives a signal. The findings artifact's summary/failureScenario are PR-bound data — they reach the PR via bodyCriticals and inline comments[] — 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 (the Verdict: line, FIX: lines), code snippets and ```suggestion blocks, and the final Review complete: line (Step 9 forbids rewording it).
  3. Step 7: use Create Review API with comments array for inline comments, exactly once (on an Aone target submit fans the same payload out into one a1 call per comment itself — you still run it exactly once, and a partial failure is submit's to report, never yours to fix by posting comments by hand). Do NOT use gh api .../pulls/.../comments to post individual comments, and do NOT submit throwaway reviews to test whether an anchor is valid — validate anchors offline against files[].hunks[] from the fetch report. Every review you submit is public and permanent. See Step 7 for the JSON format.
  4. 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 (a Refs/plain link), fetch that issue too after judgin
Questions fréquentes

Modifie-t-il ma copie de travail ?

Pour les relectures de demandes de fusion, il travaille dans son propre worktree, donc votre branche actuelle n'est pas changée.

Peut-il publier des commentaires sur la demande ?

Oui, lorsque vous ajoutez l'option de commentaire, il publie des commentaires en ligne sur la demande de fusion.

Peut-il corriger les problèmes trouvés ?

Oui. Avec l'option de correction, il applique les constats à votre copie de travail.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
29k
Position au classement
#9785
Licence
Apache-2.0
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