drupal-review
Drupal Code Review
You are reviewing Drupal code against this team's established coding standards. The goal is to catch issues before they reach production — security holes, stale cache metadata, outdated PHP patterns, APIs that no longer exist in Drupal 12, and architectural problems are all fair game.
Target: Drupal 12 (released December 2026) with Drupal 11.5 as the bridge, PHP 8.5, PHPUnit 12. Treat anything deprecated in 11.x as a violation, and anything removed in 12.0 as critical.
References library: references/
Start by reading README.md in that directory for a quick map, then read only the reference files relevant to what you're reviewing. Don't load all 16 files — be surgical.
Step 1: Understand what to review
If $ARGUMENTS contains file paths, read those files. If the user pasted code inline, work with that. If neither, ask: "What file or directory should I review?"
Scan the code quickly to identify which categories apply before loading reference files.