review-code

GitHub

用于对现有代码进行质量、正确性及设计适配性的审查。通过分析PR、Diff或文件,评估潜在风险与缺陷,提供分级反馈(关键问题、建议、疑问)及最终裁决,仅做批判不修改代码。

.claude/skills/review-code/SKILL.md avibebuilder/claude-prime

Trigger Scenarios

用户要求审查代码、PR或补丁 请求对现有代码进行合理性检查或批判 询问代码是否良好或存在隐患

Install

npx skills add avibebuilder/claude-prime --skill review-code -g -y
More Options

Non-standard path

npx skills add https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/review-code -g -y

Use without installing

npx skills use avibebuilder/claude-prime@review-code

指定 Agent (Claude Code)

npx skills add avibebuilder/claude-prime --skill review-code -a claude-code -g -y

安装 repo 全部 skill

npx skills add avibebuilder/claude-prime --all -g -y

预览 repo 内 skill

npx skills add avibebuilder/claude-prime --list

SKILL.md

Frontmatter
{
    "name": "review-code",
    "description": "Review code for quality, correctness, and fit. Use when the user wants judgment on code that already exists — their own changes, a teammate's patch, a PR, branch, commit, diff, staged changes, or one or more files to look over. Activate on requests like review, look over, sanity check, critique, code review, or 'is this good?' The key signal is that the user wants evaluation of existing code and its tradeoffs, not implementation, debugging, or explanation. This skill works independently, but when plans, specs, task artifacts, or prior discussion exist, use them to understand why the code exists before judging it.",
    "argument-hint": "what-to-review"
}

ultrathink

Process

Critique only — no fixes or implementation. Understand why the code exists before judging it.

1. Identify the review target

Prefer in order: explicit <target>, changes made in this conversation, working diff. If unclear, ask.

Then gather enough context (PR/issue text, plans, surrounding code) to avoid misreads. Don't turn every review into archaeology — if a missing detail would materially change judgment, ask briefly.

2. Match depth to risk

  • Quick — small, local, low-risk; keep output brief
  • Standard — normal feature or refactor
  • Deep — risky, cross-cutting, security-sensitive, or surprising

3. Review flow first, then details

Understand how important parts work before commenting line by line. Focus on load-bearing logic, edge cases, scope drift, and intentional tradeoffs.

4. Report

For each finding: file path + line, why it matters, severity.

  • Critical — correctness, safety, broken edge cases, scope violations. Requires evidence in the code — speculative failure modes belong in Questions.
  • Suggestion — non-blocking improvements
  • Question — missing context or unconfirmable concerns

If something looks odd but context supports it, acknowledge rather than flag.

5. Output format

## Code Review: [scope]

**Verdict: {Approve | Request Changes | Reject}**

### Inferred Intent
[Only when context supports it]

### Critical Issues (Must Fix)
- `path/to/file:line` — concise description. Why: [reason]

### Suggestions (Nice to Have)
- `path/to/file:line` — concise description

### Questions
- [Clarifications on intent or tradeoffs]

### Summary
[1-2 sentences]

Include only sections with content. Always include Verdict and Summary.

Boundaries

  • Read surrounding code when the diff alone is misleading.
  • Deliberate decisions (inline comments, user-stated tradeoffs) are not defects — raise as Question only with concrete evidence.
  • Don't judge by personal preference when project fit explains the choice.
  • Name the right approach ("needs parameterized queries") but don't write corrected code.

Target

$ARGUMENTS

Version History

  • 80bcfa4 Current 2026-07-05 12:10

Same Skill Collection

.claude/skills/agent-browser/SKILL.md
.claude/skills/ask/SKILL.md
.claude/skills/prime-sync/SKILL.md
.claude/skills/cook/SKILL.md
.claude/skills/create-doc/SKILL.md
.claude/skills/diagnose/SKILL.md
.claude/skills/discuss/SKILL.md
.claude/skills/docs-seeker/SKILL.md
.claude/skills/fix/SKILL.md
.claude/skills/frontend-design/SKILL.md
.claude/skills/give-plan/SKILL.md
.claude/skills/media-processor/SKILL.md
.claude/skills/optimus-prime/SKILL.md
.claude/skills/self-evolve/SKILL.md
.claude/skills/skill-creator/SKILL.md
.claude/skills/test/SKILL.md
.claude/starter-skills/backend-fastapi-python/SKILL.md
.claude/starter-skills/docker/SKILL.md
.claude/starter-skills/frontend-development/SKILL.md
.claude/starter-skills/humanizer/SKILL.md
.claude/starter-skills/monorepo/SKILL.md

Metadata

Files
0
Version
80bcfa4
Hash
e727a8cd
Indexed
2026-07-05 12:10

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 14:33
浙ICP备14020137号-1 $Map of visitor$