code-reviewer

작성자: google-gemini

로컬 변경 사항과 원격 풀 리퀘스트에 대한 자동화된 코드 리뷰로, 정확성, 유지보수성, 보안 측면에서 구조화된 분석을 제공합니다. 로컬 파일 시스템 변경 사항(스테이징 및 언스테이징)과 원격 PR(번호 또는 URL 기준)을 모두 지원하며, 자동 GitHub CLI 체크아웃을 수행합니다. 정확성, 유지보수성, 가독성, 효율성, 보안, 엣지 케이스 처리, 테스트 커버리지의 일곱 가지 차원에서 코드를 분석합니다. 선택적으로 사전 검증 제품군(예: npm run preflight)을 실행하여 문제를 사전에 파악합니다.

npx skills add https://github.com/google-gemini/gemini-cli --skill code-reviewer

Code Reviewer

This skill guides the agent in conducting professional and thorough code reviews for both local development and remote Pull Requests.

Workflow

1. Determine Review Target

  • Remote PR: If the user provides a PR number or URL (e.g., "Review PR #123"), target that remote PR.
  • Local Changes: If no specific PR is mentioned, or if the user asks to "review my changes", target the current local file system states (staged and unstaged changes).

2. Preparation

For Remote PRs:

  1. Checkout: Use the GitHub CLI to checkout the PR.
    gh pr checkout <PR_NUMBER>
    
  2. Preflight: Execute the project's standard verification suite to catch automated failures early.
    npm run preflight
    
  3. Context: Read the PR description and any existing comments to understand the goal and history.

For Local Changes:

  1. Identify Changes:
    • Check status: git status
    • Read diffs: git diff (working tree) and/or git diff --staged (staged).
  2. Preflight (Optional): If the changes are substantial, ask the user if they want to run npm run preflight before reviewing.

3. In-Depth Analysis

Analyze the code changes based on the following pillars:

  • Correctness: Does the code achieve its stated purpose without bugs or logical errors?
  • Maintainability: Is the code clean, well-structured, and easy to understand and modify in the future? Consider factors like code clarity, modularity, and adherence to established design patterns.
  • Readability: Is the code well-commented (where necessary) and consistently formatted according to our project's coding style guidelines?
  • Efficiency: Are there any obvious performance bottlenecks or resource inefficiencies introduced by the changes?
  • Security: Are there any potential security vulnerabilities or insecure coding practices?
  • Edge Cases and Error Handling: Does the code appropriately handle edge cases and potential errors?
  • Testability: Is the new or modified code adequately covered by tests (even if preflight checks pass)? Suggest additional test cases that would improve coverage or robustness.

4. Provide Feedback

Structure

  • Summary: A high-level overview of the review.
  • Findings:
    • Critical: Bugs, security issues, or breaking changes.
    • Improvements: Suggestions for better code quality or performance.
    • Nitpicks: Formatting or minor style issues (optional).
  • Conclusion: Clear recommendation (Approved / Request Changes).

Tone

  • Be constructive, professional, and friendly.
  • Explain why a change is requested.
  • For approvals, acknowledge the specific value of the contribution.

5. Cleanup (Remote PRs only)

  • After the review, ask the user if they want to switch back to the default branch (e.g., main or master).

google-gemini의 다른 스킬

agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
gemini-api-cli
google-gemini
Gemini API CLI 도구 사용 가이드입니다. 명령줄을 통해 Gemini API와 상호작용하거나, 에이전트를 관리하거나, 미디어(이미지 등)를 생성해야 할 때 사용하세요.
behavioral-evals
google-gemini
행동 평가를 생성, 실행, 수정 및 홍보하기 위한 지침입니다. 에이전트 결정 로직 검증, 오류 디버깅, 프롬프트 디버깅 등에 사용하세요.
gemini-live-api-dev
google-gemini
WebSocket을 통해 Gemini와 실시간 양방향 스트리밍을 지원하여 오디오, 비디오, 텍스트 대화를 처리합니다. 오디오 입력/출력(16kHz PCM), 비디오 프레임, 텍스트, 음성 활동 감지를 통한 자동 전사 및 인터럽트 처리를 지원합니다. 네이티브 오디오 기능(감정 대화, 능동적 오디오, 사고 모드), 동기 및 비동기 도구 사용을 위한 함수 호출, Google Search 접지 기능을 포함합니다. 컨텍스트 압축, 재개 등을 통한 세션 관리를 제공합니다.
gemini-omni-flash-api
google-gemini
이 스킬을 사용하여 생성형 비디오 편집, 텍스트-투-비디오, 이미지 참조 비디오 생성, 첫 프레임-투-비디오 전환 애니메이션 등을 수행할 수 있습니다…
gemini-api-dev
google-gemini
Google의 Gemini 모델로 애플리케이션을 구축하며, 멀티모달 콘텐츠, 함수 호출, 구조화된 출력을 Python, JavaScript, Go, Java에서 지원합니다. 최신 Gemini 3 모델(Pro, Flash, Pro Image)에 1M 토큰 컨텍스트로 접근 가능하며, 레거시 Gemini 2.x 및 1.5 모델은 지원 중단되었습니다. 텍스트 생성, 이미지/오디오/비디오 이해, 함수 호출, 구조화된 JSON 출력, 코드 실행, 컨텍스트 캐싱, 임베딩을 지원합니다. 공식 SDK 제공: google-genai (Python),...
gemini-interactions-api
google-gemini
Gemini 모델 및 에이전트를 위한 통합 인터페이스로, 서버 측 상태, 스트리밍 및 도구 오케스트레이션을 제공합니다. 여러 현재 모델(gemini-3-flash-preview, gemini-3-pro-preview, gemini-2.5-flash/pro)과 Deep Research 에이전트를 지원하며, 더 이상 사용되지 않는 모델 ID를 현재 대안으로 자동 대체합니다. previous_interaction_id를 통해 대화 기록을 서버에 오프로드하여 수동 기록 관리 없이 상태 저장 다중 턴 상호작용을 가능하게 합니다. 내장된 도구 오케스트레이션을 포함합니다...
deliver
google-gemini
브리핑의 축약 버전을 Google Chat 또는 Slack 인커밍 웹훅에 게시하여 일일 실행이 자동으로 전달되게 합니다 — 웹훅이 없으면 조용히 건너뜁니다…