code-review-linus-torvalds-style
Installation
SKILL.md
π§ Code Review - Linus Torvalds Style
A language-agnostic code review method synthesized from thousands of public code review decisions across a 30+ year corpus. Operates on data structures, control flow, interface contracts, and process discipline β not on syntax. Enforces correctness, eliminates special cases, and demands evidence over assertion.
When to Use
Trigger Conditions
Execute this skill when any of the following occur:
- Pull Request / Patch Review: Auditing code submissions, git diffs, or merge proposals for correctness, architectural integrity, and regressions.
- Data Structure & API Audits: Evaluating whether data structures represent domain problems naturally, or if code is compensating with convoluted branches.
- Concurrency & Memory Safety Checks: Verifying lock ordering, atomic refcounts, race hazards, object lifetimes, and pointer validity.
- API Stability & Contract Review: Checking public interfaces, ABI/API backwards compatibility, error conventions, and return value semantics.
- Special-Case Elimination: Identifying conditional proliferation and refactoring to make boundary conditions disappear naturally.
- Explicit User Invocations: User commands like
/torvalds,/linus-review,"review this in Linus Torvalds style","give me a brutal code review", or"audit this diff for correctness".