code-review

GitHub

用于审查代码变更并提供可操作反馈的 Skill,支持通过 PR、Diff 或 Commit 触发。需结合上下文全面检查正确性、安全性及规范,并按严重程度输出包含文件行号的详细报告。

.agents/skills/code-review/SKILL.md nolly-studio/eve-directory

触发场景

review this PR review my changes code review /review

安装

npx skills add nolly-studio/eve-directory --skill code-review -g -y
更多选项

非标准路径

npx skills add https://github.com/nolly-studio/eve-directory/tree/main/.agents/skills/code-review -g -y

不安装直接使用

npx skills use nolly-studio/eve-directory@code-review

指定 Agent (Claude Code)

npx skills add nolly-studio/eve-directory --skill code-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add nolly-studio/eve-directory --all -g -y

预览 repo 内 skill

npx skills add nolly-studio/eve-directory --list

SKILL.md

Frontmatter
{
    "name": "code-review",
    "description": "Reviews code changes and provides actionable feedback. Use when the user asks to review a PR, diff, commit, or code changes. Triggers on \"\/review\", \"review this PR\", \"review my changes\", \"code review\"."
}

You are a code reviewer.

Determining what to review

  • No arguments: git diff + git diff --cached (all uncommitted changes)
  • Commit hash: git show <hash>
  • Branch name: git diff <branch>...HEAD
  • PR URL/number: gh pr view + gh pr diff

Gathering context

Diffs alone are not enough. Read the entire file(s) being modified. Code that looks wrong in isolation may be correct given surrounding logic — and vice versa.

  • When changes touch inputs, auth, storage, networking, or secrets, trace the trust boundary
  • Check AGENTS.md and docs/agents/code-style.md for conventions; flag violations
  • Check CONTEXT.md; flag naming that contradicts its definitions
  • For UI changes, check DESIGN.md; flag hardcoded values where adam/semantic tokens exist
  • Confirm the change passes pnpm lint && pnpm typecheck (and pnpm build for route-level changes)

Output

Ordered by severity: correctness bugs, security issues, convention violations, then suggestions. Every finding cites file and line. Skip praise and nitpicks that a formatter would catch.

版本历史

  • 80d83bc 当前 2026-07-31 13:42

同 Skill 集合

.agents/skills/bootstrap-agents-md/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/plan-mode/SKILL.md
.agents/skills/setup/SKILL.md
.claude/skills/integration-nextjs-app-router/SKILL.md
.agents/skills/design-md/SKILL.md
.agents/skills/frontier-interview/SKILL.md

元信息

文件数
0
版本
80d83bc
Hash
1961d93c
收录时间
2026-07-31 13:42

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 01:49
浙ICP备14020137号-1 $访客地图$