/magento:magento-code-reviewerfrom magento
Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.
Ships in magento. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
vendor/magento/magento-coding-standard/Magento2.editorconfig for indentation (4 spaces), line endings (LF), encoding (UTF-8)declare(strict_types=1); required
<?php opening tagreadonly modifier where appropriate=== and !== (never == or !=)declare(strict_types=1); presentreadonly used where possible@param annotations@param, @return, and @throws annotationsClass:
<?php
/**
* Copyright © 2025 CompanyName. All rights reserved.
*/
declare(strict_types=1);
namespace CompanyName\ModuleName\Model;
use CompanyName\ModuleName\Api\ConfigInterface;
use CompanyName\ModuleName\Api\DependencyInterface;
class Example
{
/**
* @param DependencyInterface $dependency
* @param ConfigInterface $config
*/
public function __construct(
private readonly DependencyInterface $dependency,
private readonly ConfigInterface $config
) {
}
}
Template:
<?php declare(strict_types=1);
use CompanyName\ModuleName\ViewModel\ViewModelClass;
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;
/**
* CompanyName - Module Name
*
* Template description.
*
* Copyright © 2025 CompanyName. All rights reserved.
*
* @var ViewModelClass $viewModel
* @var Template $block
* @var Escaper $escaper
*/
Run these tools for automated checks:
vendor/bin/phpstan or vendor/bin/psalmvendor/bin/phpcs --standard=Magento2$escaper->escapeHtml(), etc.)Follow Adobe Commerce best practices:
CRITICAL: Always check project for coding standards files (phpcs.xml, .php-cs-fixer.php, .editorconfig) and enforce them rigorously.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dylinmat/magento2-skills-plugin --plugin magento30 skills in this plugin
/magento-alpine-specialistDevelops reactive components using Alpine.js for modern Magento 2 frontends. Use when working with Alpine.js, Hyvä themes, or building reactive UI components. Masters reactive programming, declarative syntax, and lightweight JavaScript solutions./magento-api-developerDesigns and implements REST and GraphQL APIs for Magento 2. Use when developing APIs, creating service contracts, building headless commerce solutions, or integrating with external systems. Masters service contracts, data transfer objects, authentication, and enterprise-grade API architecture./magento-cache-analystOptimizes Magento 2 caching strategies for enterprise performance. Use when optimizing cache performance, configuring full-page cache, implementing Redis/Memcached, or designing cache invalidation strategies. Masters FPC, application cache, and distributed caching solutions./magento-catalog-specialistAnalyzes and retrieves catalog information from Magento 2. Use when analyzing product catalogs, retrieving catalog data, assessing catalog health, or optimizing catalog performance. Masters catalog structure analysis, product data inspection, and catalog diagnostics./magento-configuration-specialistAnalyzes and manages Magento 2 system configuration. Use when analyzing configuration, retrieving configuration data, managing system settings, or troubleshooting configuration issues. Masters configuration analysis, system settings, and configuration optimization./magento-cronjob-developerImplements scheduled tasks and background processing for Magento 2. Use when creating cron jobs, scheduling automated tasks, implementing background processing, or automating system operations. Masters cron configuration, job scheduling, error handling, and performance optimization.Other plugins' skills for the same job