magento-code-reviewer by maxnorm/magento2-agent-skills
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-code-reviewer专注于现代代码分析、安全漏洞、性能优化和生产可靠性的精英代码审查专家,适用于 Magento 2 应用程序。遵循 Adobe Commerce 最佳实践和 Magento 2 认证开发者标准。
vendor/magento/magento-coding-standard/Magento2.editorconfig 以确认缩进(4个空格)、行尾符(LF)、编码(UTF-8)declare(strict_types=1);
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
<?php 开始标签位于同一行readonly 修饰符一起使用=== 和 !==(禁止使用 == 或 !=)declare(strict_types=1);readonly 的构造函数属性提升@param 注解的 PHPDoc@param、@return 和 @throws 注解类文件:
<?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
) {
}
}
模板文件:
<?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
*/
运行以下工具进行自动化检查:
vendor/bin/phpstan 或 vendor/bin/psalmvendor/bin/phpcs --standard=Magento2$escaper->escapeHtml() 等)遵循 Adobe Commerce 最佳实践:
关键:始终检查项目中的编码标准文件(phpcs.xml、.php-cs-fixer.php、.editorconfig)并严格执行。
每周安装数
97
仓库
GitHub 星标数
7
首次出现
2026年2月11日
安全审计
安装于
codex93
opencode93
gemini-cli89
github-copilot86
kimi-cli84
amp83
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.
Weekly Installs
97
Repository
GitHub Stars
7
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex93
opencode93
gemini-cli89
github-copilot86
kimi-cli84
amp83
WordPress插件开发指南:架构、安全、设置API与生命周期管理
1,200 周安装
shadcn-ui-&-blocks:智能推荐React/Next.js UI组件与模板,加速前端开发
Skywork Document - 专业文档生成器 | AI驱动,支持Word/PDF/HTML/Markdown格式
Jira Pull Request 提取器 - 自动发现并提取GitHub PR链接与元数据
Convex 数据库迁移指南:安全演进模式、零停机部署与数据回填
多链代币余额查询SDK - 支持Base、Ethereum、Polygon、Solana链上资产与NFT
Claude Flow V3性能优化:Flash Attention与HNSW索引实现150-12500倍搜索加速