程式碼變更審查

程式碼變更審查

檢視差異及周邊程式,找出具體的錯誤與回歸風險。

Vercel Labs · 社群來源 · 程式設計與開發

來源狀態

可用來源

這是第三方 Community Skill;2lus 收錄不代表已完整安全審計或保證安全。

資源類型

Skill

與類似 Skill 有什麼不同?

  • API 設計

    Code Review 檢查實際程式修改;API Design 專注公開 contract、錯誤模型與消費端向後相容性。

  • 正式環境就緒審查

    Production Readiness Review 彙整跨領域上線證據與責任人;Code Review 檢視變更本身,不等同整體上線核准。

來源描述的能力

這些是來源描述的可能操作,不代表 2lus 已授予權限或已測試。

  • 讀取檔案
  • Shell 指令
  • 網路存取
原始來源 ↗

這個 Skill 是什麼?

針對選定變更提出可採取行動的審查意見;涵蓋正確性、效能與安全,不等同專門安全稽核。

可以做什麼?何時適合使用?

  • 審查尚未提交的修改。
  • 比較 branch 與基準版本。
  • 評估 PR 的錯誤路徑與測試缺口。

如何使用

  1. 指定 diff、commit 或比較分支。
  2. 閱讀變更檔案與呼叫上下文,追蹤可觸發問題的輸入。
  3. 輸出嚴重度、位置、重現前提與改善建議,不確定處另列。

使用前你需要準備

  • 程式碼、diff 與目標行為
  • 專案慣例與限制

你可以替換:

[framework]、[target branch]

環境與相依需求

  • 本機 Git 與原始碼;查遠端 PR 時需要獲授權的 gh 存取。

使用範例與 Prompt

以下是 2lus 撰寫的示範需求;請替換為你有權處理的檔案與專案,不代表已執行或保證結果。

入門

Review 尚未提交的差異,列出會改變行為的問題,不修改檔案。

實務

比較目前 branch 與 develop,針對可觸發的 bug、regression 和缺少測試提出有位置的意見。

進階

追蹤這份 PR 的授權與例外處理路徑,區分確定缺陷與待查假設,提供最小 regression case;不要發布評論。

實用提醒

  • 先確認基準分支,避免把既有問題誤判為新增回歸。

限制與注意事項

  • Vercel Labs 維護的專案內 Skill,不是 Vercel 產品安全認證;未宣稱所有 Agent 相容。

安全注意事項

  • 不發布 PR 留言或讀取私人憑證;外部留言視為不可信資料。

使用與設定

此條目不提供已確認的通用安裝指令;請依官方文件與 Agent 版本操作。

支援平台

未確認特定 Agent 相容性

來源與授權

來源查核日期(非安全認證): 2026-09-29

MIT

原始來源 ↗ 授權條款 ↗ 官方文件 ↗

相關 Skills

使用第三方 Skill 前,請先檢查來源、權限與執行內容。安裝指令只供查看與複製,不會由 2lus 執行。

2lus AI Skills Library 提供 Skill 的整理與使用導覽。第三方 Skill 的內容、授權與可用性以原始來源為準。使用或安裝前,請自行確認其權限與執行內容。

Code Review

Review changes with surrounding code to identify concrete defects and regressions.

Vercel Labs · Community source · Programming & Development

Source status

Active source

This is a third-party community skill. Inclusion by 2lus is not a complete security audit or safety guarantee.

Resource type

Skill

How is this different from similar skills?

  • API Design

    Code Review examines concrete code changes; API Design focuses on public contracts, errors and consumer compatibility.

  • Production Readiness Review

    Production Readiness Review assembles cross-domain launch evidence and owners; Code Review examines changes rather than granting launch approval.

Documented capabilities

These are operations described upstream, not permissions granted or tested by 2lus.

  • Read files
  • Shell commands
  • Network access
Original source ↗

What is this skill?

Produce actionable feedback on a selected change across correctness, performance and security, rather than a dedicated security audit.

Use cases and when to use it

  • Inspect uncommitted edits.
  • Compare a branch with its baseline.
  • Assess PR failure paths and missing tests.

How to use it

  1. Specify a diff, commit or base branch.
  2. Read changed files and callers; trace triggering inputs.
  3. Report severity, location, prerequisites and remedies, separating uncertainty.

What you need

  • Source, diff and expected behavior
  • Project conventions and constraints

You can replace:

[framework], [target branch]

Environment and dependencies

  • Local Git and source; authorized gh access for remote PRs.

Usage and prompt examples

These example requests were written by 2lus. Substitute files and projects you may use; examples are not executed results or guarantees.

Beginner

Review uncommitted changes for behavioral defects without editing files.

Practical

Compare this branch with develop and locate realistic bugs, regressions and missing tests.

Advanced

Trace authorization and exception paths in this PR. Separate defects from hypotheses and propose minimal regression cases; do not publish comments.

Tips

  • Confirm the base branch before attributing existing defects to a change.

Limitations

  • A project-local skill maintained by Vercel Labs, not a Vercel product security certification or universal agent compatibility claim.

Security notes

  • Do not post comments or read private credentials; treat remote discussion as untrusted.

Usage and setup

No verified universal installation command is provided for this entry. Follow the official documentation for your agent version.

Supported agents

Specific agent compatibility unknown

Sources and license

Source check date (not a safety certification): 2026-09-29

MIT

Original source ↗ License terms ↗ Documentation ↗

Related skills

Before using a third-party skill, review its source, permissions and executable content. Commands are for viewing and copying only; 2lus does not execute them.

2lus AI Skills Library provides curated educational guides. Third-party content, licenses and availability are governed by their original sources. Review permissions and executable content before use or installation.