mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-06-13 14:43:33 +08:00
14 lines
674 B
Markdown
14 lines
674 B
Markdown
<!--
|
|
name: 'Skill: Code Review (Phase 0 — gather the diff)'
|
|
description: Opening step of the code-review skill: assemble the unified diff to review with git diff
|
|
ccVersion: 2.1.173
|
|
-->
|
|
## Phase 0 — Gather the diff
|
|
|
|
Run `git diff @{upstream}...HEAD` (or `git diff main...HEAD` / `git diff HEAD~1`
|
|
if there's no upstream) to get the unified diff under review. If there are
|
|
uncommitted changes, or the range diff is empty, also run `git diff HEAD` and
|
|
include the working-tree changes in scope — the review often runs before the
|
|
commit. If a PR number, branch name, or file path was passed as an argument,
|
|
review that target instead. Treat this diff as the review scope.
|