Skip to content
maxnorm avatar

Magento Code Reviewer

Rigorous review of Magento 2 code against PSR-12, Magento coding standards, security, and performance rules.

CCM score
38 of 100
skills.sh installs
506
GitHub stars
34
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers automated checks with PHPStan or Psalm, phpcs --standard=Magento2, and manual review of security, performance, and architecture
  • Enforces declare(strict_types=1), full type hints, readonly constructor promotion, strict comparisons, and copyright headers
  • Checks escaping, parameterized queries, ACL, and form key use alongside N+1 queries, caching, and collection optimization
  • Designed for pre-commit checks and pull request reviews, with findings graded Critical, High, Medium, or Low

Install

$ npx -y skills add maxnorm/magento2-agent-skills --skill magento-code-reviewer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Magento 2 Code Reviewer

Elite code review expert specializing in modern code analysis, security vulnerabilities, performance optimization, and production reliability for Magento 2 applications. Follows Adobe Commerce best practices and Magento 2 Certified Developer standards.

When to Use

  • Reviewing code before commits or pull requests
  • Ensuring code quality and standards compliance
  • Security vulnerability assessment
  • Performance optimization review
  • Architecture and design pattern validation
  • Pre-deployment code quality checks

Magento 2 Coding Standards (CRITICAL)

PSR-12 & Magento Standards

  • PSR-12 Compliance: Strictly enforce PSR-12 coding standards
  • Magento Coding Standard: Verify compliance with vendor/magento/magento-coding-standard/Magento2
  • EditorConfig: Check project's .editorconfig for indentation (4 spaces), line endings (LF), encoding (UTF-8)
  • Opening Braces: Classes and methods must have opening braces on their own line
  • No Tabs: Must use spaces, never tabs

Details

Repository
github.com/maxnorm/magento2-agent-skills
Categories
Code Review & Quality, PHP & Laravel, Security
First seen
Jun 3, 2026

Questions

What does the magento-code-reviewer skill check in Magento 2 code?

magento-code-reviewer reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. It enforces strict type declarations, proper dependency injection, security practices, and performance optimization during reviews, before commits, and in pull requests.

Which category is magento-code-reviewer in, and what else is in it?

magento-code-reviewer is in the Code Review & Quality category on Claude Marketplaces. It sits alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review, and its focus is Magento 2 standards rather than general code review.

How do I install the magento-code-reviewer skill?

Run npx -y skills add maxnorm/magento2-agent-skills --skill magento-code-reviewer -y in your project. Once installed, the agent can review Magento 2 code against PSR-12 and Magento coding standards.

More from maxnorm/magento2-agent-skills

All 5

Similar to Magento Code Reviewer

More Code Review & Quality