code-review

Review pull request diffs and report evidence-backed findings by severity.

Updated Dec 21, 2018
One-click install
npx skills add https://github.com/dhnt/dhnt --skill code-review-dhnt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/dhnt/dhnt/tree/main/catalog/md/review/code-review
Command: npx skills add https://github.com/dhnt/dhnt --skill code-review-dhnt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you review a pull request efficiently and rigorously by focusing on defects, risks, and contract-breaking changes instead of getting lost in stylistic nitpicks.

Core Features & Use Cases

  • Diff-first triage: identifies the correct base, then reads the complete git diff <base>...HEAD and assesses change magnitude.
  • Context-aware assessment: checks surrounding code so reviewers understand intent, invariants, and call sites.
  • Evidence-based findings: groups feedback by severity (Blocker/Concern/Suggestion/Praise) and cites specific file and line locations.
  • Quality gates: runs type-checkers/linters/tests when cheap and verifies coverage for the changed behavior.

Quick Start

Ask your AI to review the pending changes on the current branch against the base branch with senior-level rigor and return blockers, concerns, suggestions, and praise with file-and-line evidence.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I review pending git diff changes for correctness and security risks?

Reviewing pending git diff changes requires comparing the current branch to the base branch and analyzing the complete diff with surrounding context to evaluate correctness, security, and test coverage, yielding evidence-backed findings grouped by severity.

What is severity triage in a pull request code review?

Severity triage in a pull request code review groups evidence-backed findings into categories like Blocker, Concern, Suggestion, and Praise, citing specific file and line locations to help reviewers focus on defects and contract-breaking changes instead of stylistic nitpicks.

How do I run type-checkers and linters during a pull request review?

Running type-checkers and linters during a pull request review involves executing cheap type-checkers, linters, and tests when feasible against the changed behavior. This verifies coverage and acts as a quality gate before outputting a structured triage verdict.

Does this code review approach work for evaluating API and contract impacts across a full diff?

Yes, this code review approach works for evaluating API and contract impacts across a full diff by reading the complete changes, checking surrounding code to understand invariants and call sites, and verifying that contract-breaking changes are identified with exact file and line evidence.

What's the best way to avoid stylistic nitpicks in static analysis and code review?

The best way to avoid stylistic nitpicks in static analysis and code review is to focus on defects, risks, and contract-breaking changes by producing a structured triage verdict that cites exact file and line evidence without restating the diff.

Why does my code review not working catch real defects in the full diff?

Code review not working to catch real defects often happens when reviewers lose focus on the full diff context. Applying evidence-based findings by checking surrounding code, call sites, and running cheap tests ensures actual defects are identified and grouped by severity.