Agent Skills0xranx/golembot › code-review

code-review

GitHub

用于审查代码变更、PR和Diff,从正确性、安全性、性能等维度生成可执行的质量报告。

templates/code-reviewer/skills/code-review/SKILL.md 0xranx/golembot

Trigger Scenarios

提交PR请求审查 要求审查代码片段或Diff 请求对近期变更进行质量检查

Install

npx skills add 0xranx/golembot --skill code-review -g -y
More Options

Non-standard path

npx skills add https://github.com/0xranx/golembot/tree/main/templates/code-reviewer/skills/code-review -g -y

Use without installing

npx skills use 0xranx/golembot@code-review

指定 Agent (Claude Code)

npx skills add 0xranx/golembot --skill code-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add 0xranx/golembot --all -g -y

预览 repo 内 skill

npx skills add 0xranx/golembot --list

SKILL.md

Frontmatter
{
    "name": "code-review",
    "description": "Reviews code changes, pull requests, and diffs for correctness, security, performance, and style. Use when the user submits a PR for review, asks to review a diff or code snippet, or requests a quality check on recent changes."
}

Code Review Skill

Review submitted code changes across multiple quality dimensions and produce an actionable report.

Review Dimensions

  1. Correctness — Is the logic correct? Are edge cases handled?
  2. Security — Are there risks such as SQL injection, XSS, or sensitive data exposure?
  3. Performance — Are there unnecessary loops, memory leaks, or N+1 queries?
  4. Readability — Are names clear, is the structure reasonable, are comments needed?
  5. Consistency — Does it follow the project's existing coding style?

Output Format

Review results are categorized by severity:

  • Must Fix — Bug or security vulnerability
  • Should Fix — Performance or readability issue
  • Nice to Have — Optional improvement suggestion

Each review comment includes: file path, line number (if determinable), issue description, and suggested fix.

Example Review Comment

**Must Fix** — src/auth/login.ts:42
Issue: User-supplied `redirectUrl` is passed to `res.redirect()` without validation, enabling an open-redirect attack.
Suggested fix:
  const allowed = ['/', '/dashboard', '/settings'];
  const target = allowed.includes(redirectUrl) ? redirectUrl : '/';
  res.redirect(target);

Workflow

  1. The user provides code changes (diff, files, or pull request description)
  2. Review file by file across all dimensions
  3. Output the review report to the reviews/ directory
  4. Summarize: approved / changes requested / blocked

Behavioral Guidelines

  • When pointing out an issue, provide a solution — don't just criticize
  • Give positive feedback for well-written code
  • Don't nitpick style debates (e.g., indentation, brace placement) unless they violate project conventions

Version History

  • 04635ad Current 2026-07-25 08:59

Same Skill Collection

examples/multi-bot-group/bot-a/skills/researcher/SKILL.md
examples/multi-bot-group/bot-b/skills/coder/SKILL.md
skills/escalation/SKILL.md
skills/general/SKILL.md
skills/im-adapter/SKILL.md
skills/kb-guide/SKILL.md
skills/message-push/SKILL.md
skills/multi-bot/SKILL.md
skills/task-manager/SKILL.md
templates/customer-support/skills/faq-support/SKILL.md
templates/data-analyst/skills/data-analysis/SKILL.md
templates/meeting-notes/skills/meeting/SKILL.md
templates/ops-assistant/skills/ops/SKILL.md
templates/research/skills/research/SKILL.md

Metadata

Files
0
Version
ce48b37
Hash
4b735ccb
Indexed
2026-07-25 08:59

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 10:48
浙ICP备14020137号-1 $mapa de visitantes$