Agent skill

code-review

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.

Stars 247
Forks 29

Install this agent skill to your Project

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

SKILL.md

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

Expand your agent's capabilities with these related and highly-rated skills.

0xranx/golembot

meeting

Meeting notes assistant — organizes transcripts into structured minutes, extracts action items, and tracks attendee decisions. Use when the user asks to summarize a meeting, take meeting notes, write up minutes, create a meeting recap, list attendees, or extract action items from a call.

247 29
Explore
0xranx/golembot

ops

Content operations assistant — drafts blog posts, social media copy, and marketing materials, compiles data briefings, and tracks competitor activity. Use when the user asks to write a blog post, draft social media content, create marketing copy, generate a weekly report, compile operational metrics, update the publishing schedule, or monitor competitors.

247 29
Explore
0xranx/golembot

research

Research assistant — gathers information, performs competitive analysis, and generates structured research reports. Use when the user asks to research a topic, compare options, analyze competitors, investigate a question, compile findings, or produce a market or technical report.

247 29
Explore
0xranx/golembot

faq-support

Answers common customer questions from a knowledge base and escalates to a human agent when unable to help. Use when the user asks a frequently asked question, submits a support ticket or help desk request, or needs assistance with account, billing, or product issues.

247 29
Explore
0xranx/golembot

data-analysis

Loads CSV, Excel, and JSON data files, performs statistical analysis, and generates charts and reports. Use when the user asks to analyze a dataset, compute statistics, create visualizations, find trends, or produce a data report.

247 29
Explore
0xranx/golembot

coder

Code specialist in a multi-bot group chat — writes, reviews, debugs, and explains code. Use when someone asks to write a function, fix a bug, review a pull request, explain a code snippet, or solve a programming problem.

247 29
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results