code-review-pyramid

Structures code reviews across five layers prioritized by cost of change.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/azborgonovo/ai-skills --skill code-review-pyramid-azborgonovo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-review-pyramid
Source: https://github.com/azborgonovo/ai-skills/tree/main/skills/code-review/code-review-pyramid
Command: npx skills add https://github.com/azborgonovo/ai-skills --skill code-review-pyramid-azborgonovo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code reviews often waste effort on trivial style issues while missing critical API and logic flaws. This Skill provides a structured framework that prioritizes review attention by the cost of fixing issues later, so reviewers focus on what matters most. ## Core Features & Use Cases - Five-Layer Framework: Organizes review focus from API Semantics (base) through Implementation Semantics, Documentation, and Tests, up to Code Style (apex). - Question Checklists: Each layer includes concrete questions covering correctness, robustness, security, observability, test coverage, and naming conventions. - Use Case: When asked how to approach reviewing a large pull request, apply the pyramid to spend most effort on API design and implementation semantics, while delegating style checks to automated tooling. ## Quick Start Ask the AI to explain how to prioritize a code review using the Code Review Pyramid framework.

Frequently Asked Questions about code-review-pyramid

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

FAQPage Schema
What is the Code Review Pyramid?▼

The Code Review Pyramid is a framework by Gunnar Morling that structures code reviews across five layers: API Semantics, Implementation Semantics, Documentation, Tests, and Code Style. Layers at the base deserve the most manual attention because they are the most expensive to change later.

How do I prioritize what to focus on in a code review?▼

Focus most on API semantics and implementation semantics, since design and logic flaws are hardest to fix after merge. Documentation and tests get moderate attention, while code style should be automated with linters and formatters rather than reviewed manually.

What questions should I ask when reviewing API design?▼

Check whether the API is as small as possible, offers one way to do each thing, follows the principle of least surprise, hides internals cleanly, avoids breaking changes to user-facing parts, and is generally useful rather than overly specific.

Should code style be checked manually in reviews?▼

No. Code style sits at the apex of the pyramid and should be automated with formatters and linters wherever possible. Manual review effort should concentrate on the base layers like API and implementation semantics.

When is the Code Review Pyramid not the right approach?▼

The pyramid guides general review prioritization but does not replace domain-specific checks such as security audits, compliance reviews, or performance benchmarking. Use it as a structuring framework alongside specialized review processes.