一键导入
x-code-review
Expert code review of the most recent commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Expert code review of the most recent commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | x-code-review |
| description | Expert code review of the most recent commit |
| argument-hint | ["commit-ref or additional context"] |
| model | opus |
| disable-model-invocation | true |
| allowed-tools | Bash(git *), Read, Glob, Grep, Write |
Perform an expert code review of a git commit.
Target commit: $ARGUMENTS if it looks like a commit ref (SHA, branch, HEAD~2, etc.),
otherwise default to HEAD. Any non-ref arguments are additional context about
the problem being solved (ticket references, design notes, etc.).
git show --stat <commit> and git log -1 --format=full <commit>git diff <commit>~1..<commit>$ARGUMENTS contains a ticket reference, use
available tools to gather ticket details. If it contains descriptive text,
use it to understand intent.Evaluate the commit against each of these. If a category has no findings, say so briefly and move on — don't pad.
Does the code actually solve what the commit message (and any provided context) says it solves? Look for gaps, partial implementations, or scope creep.
Look for:
Print the review directly to the conversation. Only write to a file if the user explicitly requests it.
## Code Review: `<first line of commit message>`
**Commit**: `<short SHA>` by `<author>` on `<date>`
**Files changed**: <count> (<insertions>+, <deletions>-)
### Findings
#### Problem-Solution Fit
<findings or "No issues.">
#### Correctness
<findings or "No issues.">
#### Documentation
<findings or "No issues.">
#### Test Coverage
<findings or "No issues.">
#### Unintended Consequences
<findings or "No issues.">
#### Security
<findings or "No issues.">
### Verdict
<One of:>
- **Ship it** — No significant issues found.
- **Nitpicks only** — Minor suggestions, nothing blocking.
- **Needs changes** — Issues that should be addressed before merging.
- **Rethink approach** — Fundamental concerns with the approach taken.
<Brief justification — 1-3 sentences.>
Create a new Jira ticket with user-approved summary and description
Assess the current state of a Jira ticket and produce a summary for development work
Load full context for modifying Claude Code configuration, settings, hooks, MCP servers, skills, or the wrapper script on this machine
Convert an existing instruction file (scenario, agent, command) into a proper Claude Code skill
Claim a Jira ticket and set up tracking (administrative only - NO technical work)
Audit project-local Claude Code permissions and migrate appropriate ones to user scope
基于 SOC 职业分类