New to Claude Skills? Learn how to install them →

davila7 on GitHub

Requesting Code Review

Free

Enhance code quality through structured peer reviews.

Get this skill

Free · Opens the source repo

What Requesting Code Review does

Requesting Code Review is a skill designed to streamline the code review process for developers. By utilizing the superpowers:code-reviewer subagent, it helps identify potential issues early in the development cycle, ensuring that code meets required standards before merging. The core principle of this skill is to advocate for frequent reviews, which aids in maintaining code quality and reducing the likelihood of bugs in production.

The skill outlines specific scenarios for when to request a review, including after completing significant tasks or features, and before merging code into the main branch. It also highlights optional instances where a review can provide valuable insights, such as when a developer feels stuck or before undertaking refactoring. By following the structured process of getting git SHAs and dispatching the code-reviewer subagent, developers can provide context for their code changes, making it easier for reviewers to assess the work.

This skill is particularly beneficial for teams practicing subagent-driven development, where reviews are conducted after each task to catch issues promptly. It encourages a culture of feedback and continuous improvement, allowing developers to act on critical feedback immediately and note minor issues for future consideration. The skill also emphasizes the importance of not skipping reviews, regardless of how simple a task may seem, thereby reinforcing best practices in code quality management.

In summary, Requesting Code Review is an essential tool for developers looking to enhance their coding practices through structured peer reviews, ultimately leading to better software quality and more efficient development workflows.

When to use it

Use this skill when completing tasks, implementing major features, or preparing for code merges to ensure quality and compliance with requirements.

When not to use it

Avoid using this skill for trivial changes that don't impact functionality, as it may add unnecessary overhead to the development process.

What you can build with it

Post-Task Review

After completing a task, use this skill to request a review to catch any issues before moving on.

Pre-Merge Check

Before merging code into the main branch, ensure quality by dispatching the code-reviewer subagent.

Addressing Complex Bugs

When fixing complex bugs, request a review to gain insights and ensure the solution is sound.

How to install Requesting Code Review

View source

1. Install with the skills CLI

npx skills add davila7/claude-code-templates/requesting-code-review --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by davila7

Requesting Code Review

Dispatch superpowers:code-reviewer subagent to catch issues before they cascade.

Core principle: Review early, review often.

When to Request Review

Mandatory:

  • After each task in subagent-driven development
  • After completing major feature
  • Before merge to main

Optional but valuable:

  • When stuck (fresh perspective)
  • Before refactoring (baseline check)
  • After fixing complex bug

How to Request

1. Get git SHAs:

BASE_SHA=$(git rev-parse HEAD~1)  # or origin/main
HEAD_SHA=$(git rev-parse HEAD)

2. Dispatch code-reviewer subagent:

Use Task tool with superpowers:code-reviewer type, fill template at code-reviewer.md

Placeholders:

  • {WHAT_WAS_IMPLEMENTED} - What you just built
  • {PLAN_OR_REQUIREMENTS} - What it should do
  • {BASE_SHA} - Starting commit
  • {HEAD_SHA} - Ending commit
  • {DESCRIPTION} - Brief summary

3. Act on feedback:

  • Fix Critical issues immediately
  • Fix Important issues before proceeding
  • Note Minor issues for later
  • Push back if reviewer is wrong (with reasoning)

Example

[Just completed Task 2: Add verification function]

You: Let me request code review before proceeding.

BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)

[Dispatch superpowers:code-reviewer subagent]
  WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
  PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
  BASE_SHA: a7981ec
  HEAD_SHA: 3df7661
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types

[Subagent returns]:
  Strengths: Clean architecture, real tests
  Issues:
    Important: Missing progress indicators
    Minor: Magic number (100) for reporting interval
  Assessment: Ready to proceed

You: [Fix progress indicators]
[Continue to Task 3]

Integration with Workflows

Subagent-Driven Development:

  • Review after EACH task
  • Catch issues before they compound
  • Fix before moving to next task

Executing Plans:

  • Review after each batch (3 tasks)
  • Get feedback, apply, continue

Ad-Hoc Development:

  • Review before merge
  • Review when stuck

Red Flags

Never:

  • Skip review because "it's simple"
  • Ignore Critical issues
  • Proceed with unfixed Important issues
  • Argue with valid technical feedback

If reviewer wrong:

  • Push back with technical reasoning
  • Show code/tests that prove it works
  • Request clarification

See template at: requesting-code-review/code-reviewer.md

Frequently asked questions about Requesting Code Review

Similar skills