본문으로 건너뛰기
Skillpedia
일반 코딩29k · #9785

review

하는 일

변경된 코드를 정확성, 보안, 품질, 성능 측면에서 검토하고, 명확한 제안과 함께 결과를 알려 줍니다. 병합 전에 변경 사항을 한 번 더 살펴보고 싶은 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓커밋하거나 병합하기 전에 변경된 코드를 검토받고 싶을 때.
  • ✓pull request 검토가 필요하고 댓글을 인라인으로 남기고 싶을 때.
  • ✓특정 파일에 보안이나 성능 문제가 없는지 확인하고 싶을 때.

스킬 링크

https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/review/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/review/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 pull request 42번에서 버그와 보안 문제를 검토하고, 발견한 내용을 댓글로 남겨 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 diff나 pull request를 가져옵니다. pull request 검토는 격리된 worktree에서 진행하고, 변경 사항에 대해 여러 번 검토한 뒤 결과를 보고합니다. 요청하면 댓글을 게시하거나 수정을 적용합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

제 작업 복사본이 바뀌나요?

pull request 검토는 자체 worktree에서 진행하므로 현재 브랜치가 바뀌지 않습니다.

pull request에 댓글도 남길 수 있나요?

네. 댓글 옵션을 추가하면 pull request에 인라인 댓글을 남깁니다.

발견한 문제를 고칠 수 있나요?

네. 수정 옵션을 사용하면 발견한 내용을 작업 트리에 적용합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
29k
순위
#9785
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬