magento-code-reviewer

Review Magento 2 PHP and XML code for standards, security, and performance.

26|4|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-code-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-code-reviewer
Source: https://github.com/maxnorm/magento2-agent-skills/tree/main/skills/magento-code-reviewer
Command: npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-code-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code quality and security vulnerabilities in Magento 2 codebases can slip through during development; this skill provides expert reviews to enforce standards and best practices.

Core Features & Use Cases

  • Automated code quality checks against PSR-12 and Magento coding standards.
  • Security vulnerability assessment for Magento modules and extensions.
  • Performance and reliability review focusing on DI, plugins, observers, and caching.
  • Pre-deployment review and guidance for architecture and design patterns.
  • Support for PR reviews and pre-commit checks to reduce regressions.

Quick Start

Review a Magento 2 module by running the standard code-review workflow to validate code quality, security, and performance before merging.

Frequently Asked Questions about magento-code-reviewer

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

FAQPage Schema
How do I enforce Magento 2 coding standards and PSR-12 in a pull request?

You can enforce Magento 2 coding standards and PSR-12 by running an expert code review workflow that validates strict typing, dependency injection, and security best practices across PHP and XML configurations before merging.

What's the best way to review Magento 2 module security and performance before deployment?

Reviewing Magento 2 module security and performance before deployment involves auditing custom modules and extensions for vulnerabilities, dependency injection issues, and caching reliability problems to prevent regressions.

Does this code review process check Magento dependency injection and plugin implementations?

Yes, this code review process checks Magento dependency injection and plugin implementations by assessing performance and reliability with a strict focus on DI, plugins, observers, and caching mechanisms.

Why does my Magento 2 custom extension fail pre-commit code quality checks?

Your Magento 2 custom extension fails pre-commit code quality checks when it lacks strict typing, violates PSR-12 standards, or uses improper dependency injection patterns that require correction before merging.

Can I use automated code review for Magento 2 core patches and XML configurations?

Yes, you can use automated code review for Magento 2 core patches and XML configurations to enforce coding standards, assess security vulnerabilities, and validate architecture design patterns.