review-code

Apply seven code-review lenses to changed files and write structured findings.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/son-nguyen-301/hydra-claude --skill review-code-son-nguyen-301
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-code
Source: https://github.com/son-nguyen-301/hydra-claude/tree/main/skills/review-code
Command: npx skills add https://github.com/son-nguyen-301/hydra-claude --skill review-code-son-nguyen-301

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This tool helps engineering teams improve code quality by systematically applying seven review lenses to a set of changed files and generating a standardized review file for downstream review.

Core Features & Use Cases

  • Plan-driven workflow: Accepts a plan path or plan ID, loads the review context, and coordinates the review steps.
  • Changed-files identification: Determines changed files using the task summary or git diff strategies, and reads diffs for context.
  • Seven-lens evaluation: Applies Plan Compliance, Correctness, Security, Conventions, Edge Cases, Test Quality, and Code Quality to each changed file.
  • Findings generation: Produces structured findings with seven fields for each issue.
  • Review-file output: Writes the review to the workspace at the designated code-reviews path for the current plan.
  • Return context: Provides a concise result summary suitable for automation.

Quick Start

Provide a plan path or plan ID to start a review; the skill will load the context, identify changes, apply lenses, and write a review file.

Frequently Asked Questions about review-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review for changed files using a plan ID?

Automated code review for changed files uses a plan ID or plan path to load context, identify modified files via git diff or task summaries, and apply seven review lenses to generate structured findings.

What are the seven lenses applied during a structured code review?

The seven code review lenses are Plan Compliance, Correctness, Security, Conventions, Edge Cases, Test Quality, and Code Quality. Each lens evaluates changed files to produce structured findings with seven fields per issue.

How does plan-based code review identify which files to evaluate?

Plan-based code review identifies files to evaluate by reading task summaries or executing git diff strategies to determine changed files, then reads the diffs for context before applying the seven review lenses.

Can I generate a review file for downstream automation from changed file diffs?

Yes, you can generate a review file for downstream automation. The review process writes structured findings to a designated code-reviews path within the workspace and returns a concise summary suitable for automated workflows.

Do I need a specific workspace layout to run a seven-lens code review?

Yes, a seven-lens code review relies on the workspace layout under ~/.claude/projects. It uses the read-plan mechanism and the code-review-lenses reference to coordinate context loading, diff reading, and findings generation.

What's the best way to ensure code quality across plan compliance and edge cases?

To ensure code quality across plan compliance and edge cases, apply a multi-lens code review approach. Evaluating changed files against predefined lenses like Correctness, Security, and Test Quality systematically captures issues and outputs structured findings.