Code review playbook

From yonatangross/orchestkit · View interactive version

Code review playbook is an AI agent skill from the GitHub repository yonatangross/orchestkit. Review process, conventional comments, language checklists and feedback templates. Use when reviewing code or standardizing review practice. To review a PR end to end, use review-pr.

How to use this skill

Skill file

Code Review Playbook

This skill provides a comprehensive framework for effective code reviews that improve code quality, share knowledge, and foster collaboration. Whether you're a reviewer giving feedback or an author preparing code for review, this playbook ensures reviews are thorough, consistent, and constructive.

Overview

Upstream coverage (do not restate)

This skill is a thin wrapper. General review craft is documented first-party elsewhere;

only OrchestKit's own decisions live here. Load Read("references/ork-delta.md")

for the house rules that survived the retired files.

| Topic | Go here instead |

|-------|-----------------|

| Review philosophy, speed, tone, PR sizing | https://google.github.io/eng-practices/review/ |

| Conventional comment labels and decorations | references/conventional-comments.md, https://conventionalcomments.org/ |

| OWASP Top 10 review checks | rules/security-baseline.md, https://owasp.org/Top10/ |

| Generic language and framework review checklists | rules/typescript-quality.md, rules/python-quality.md, rules/linting-biome-rules.md |

| Review report shape and multi-agent full-PR review | ork:review-pr |

| Applying findings to the working tree | /code-review --fix, /simplify (see below) |

| Security-only pass over the current branch | /security-review |

| GitHub review mechanics (approve, request changes, inline comments) | https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests |


Conventional Comments

issue [blocking]: Missing error handling for API call
If the API returns a 500 error, this will crash. Add try/catch.

security [blocking]: API endpoint is not authenticated
The /api/admin/users endpoint is missing auth middleware.

Load Read("references/conventional-comments.md") for the full format, labels (praise, nitpick, suggestion, issue, question, security, bug, breaking), decorations ([blocking], [non-blocking], [if-minor]), and examples.


Review Process

1. Before Reviewing

Check Context:

Verify Automated Checks:

Set Aside Time:

2. During Review

Follow a Pattern:

  1. High-Level Review (5-10 minutes)
  1. Detailed Review (20-45 minutes)
  1. Testing Considerations (5-10 minutes)
  1. Documentation Check (5 minutes)

3. After Reviewing

Provide Clear Decision:

Respond to Author:


Review Checklists

General Code Quality

Security


Quick Start Guide

For Reviewers:

  1. Read PR description and understand intent
  2. Check that automated checks pass
  3. Do high-level review (architecture, approach)
  4. Do detailed review (logic, edge cases, tests)
  5. Use conventional comments for clear communication
  6. Provide decision: Approve, Comment, or Request Changes

For Authors:

  1. Write clear PR description
  2. Perform self-review before requesting review
  3. Ensure all automated checks pass
  4. Keep PR focused and reasonably sized (< 400 lines)
  5. Respond to feedback promptly and respectfully
  6. Make requested changes or explain reasoning

CC Built-in Review Commands (2.1.152+)

This playbook is the manual framework; Claude Code ships built-in commands that automate parts of it:

Use the built-ins for fast diff-scoped passes; use ork:review-pr for the multi-agent, full-PR review (security + testing + architecture).


Skill Version: 2.0.0

Last Updated: 2026-01-08

Maintained by: OrchestKit

Related Skills

Rules

Each category has individual rule files in rules/ loaded on-demand:

| Category | Rule | Impact | Key Pattern |

|----------|------|--------|-------------|

| TypeScript Quality | rules/typescript-quality.md | HIGH | No any, Zod validation, exhaustive switches, React 19 |

| Python Quality | rules/python-quality.md | HIGH | Pydantic v2, ruff, mypy strict, async timeouts |

| Security Baseline | rules/security-baseline.md | CRITICAL | No secrets, auth on endpoints, input validation |

| Linting | rules/linting-biome-setup.md | HIGH | Biome setup, ESLint migration, gradual adoption |

| Linting | rules/linting-biome-rules.md | HIGH | Biome config, type-aware rules, CI integration |

Total: 5 rules across 4 categories

Available Scripts

There is deliberately no review-report template here; ork:review-pr owns that output

shape. See references/ork-delta.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.