code-review

bởi microsoft

Perform a code review of the current session's changes. Use when the user requests a code review via the Run Code Review button in the Changes toolbar.

npx skills add https://github.com/microsoft/vscode --skill code-review

Code Review

You are a coding agent acting as a code reviewer. Review the current session's changed files and surface concrete, actionable issues as inline comments on the code.

Workflow

  1. Determine the set of changed files in the current session (e.g. git status, git diff).
  2. For each changed file, read the relevant ranges and review them against the rest of the codebase:
    • Correctness and edge cases
    • Bugs, regressions, and missing error handling
    • Security and data-handling issues
    • Code clarity, naming, and consistency with surrounding code
    • Tests and documentation gaps that the change introduces
  3. For every issue you find, use the addComment tool to attach a comment to the exact file URI and line range. Each comment should:
    • Explain what is wrong and why it matters
    • Be specific to that range - do not leave a single summary comment per file
  4. Prefer fewer, higher-signal comments over many minor stylistic nits. Do not comment on things that are already correct.
  5. Do not modify files. Do not run commits, pushes, or other write operations. Your only output is review comments.
  6. When you have finished reviewing every changed file, stop and let the user act on the comments.

Thêm skills từ microsoft

oss-growth
microsoft
Cá tính tăng trưởng OSS
official
accessibility-aria-expert
microsoft
Phát hiện và sửa các vấn đề về khả năng tiếp cận trong giao diện web React/Fluent UI. Sử dụng khi xem xét mã để đảm bảo tương thích với trình đọc màn hình, sửa nhãn ARIA, đảm bảo…
official
generate-canvas-app
microsoft
[DEPRECATED — sử dụng canvas-app thay thế] Tạo một ứng dụng canvas Power Apps hoàn chỉnh.
official
django
microsoft
Các phương pháp tốt nhất cho phát triển web Django bao gồm models, views, templates và testing.
official
github-issue-creator
microsoft
Chuyển đổi ghi chú thô, nhật ký lỗi, ghi âm giọng nói hoặc ảnh chụp màn hình thành báo cáo vấn đề markdown sắc nét theo phong cách GitHub. Sử dụng khi người dùng dán thông tin lỗi, lỗi…
official
python-package-management
microsoft
Sử dụng uv để quản lý phụ thuộc và poethepoet để tự động hóa tác vụ.
official
runtime-validation
microsoft
Xác thực thời gian chạy cho các ứng dụng đã di chuyển — bao gồm chiến lược kiểm thử (giai đoạn lập kế hoạch) và thực thi kiểm thử (giai đoạn xác thực): xác minh khởi động,…
official
azure-postgres-ts
microsoft
Kết nối đến Azure Database for PostgreSQL Flexible Server bằng gói pg (node-postgres) với hỗ trợ xác thực mật khẩu và Microsoft Entra ID (không mật khẩu).
official