重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
magento-php-specialist by maxnorm/magento2-agent-skills
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-php-specialist精通利用先进的 PHP 技术和现代实践,遵循企业级开发标准,创建高性能、可维护的 Magento 2 应用程序的专家。
vendor/magento/magento-coding-standard/Magento2 中的标准declare(strict_types=1);.editorconfig 以确认缩进(4 个空格)、行尾符(LF)和编码(UTF-8)readonly 修饰符一起使用广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
=== 和 !==(绝不使用 == 或 !=)@param 注解readonly 修饰符<?php
/**
* Copyright © 2025 CompanyName. All rights reserved.
*/
declare(strict_types=1);
namespace CompanyName\ModuleName\Model;
use CompanyName\ModuleName\Api\ConfigInterface;
use CompanyName\ModuleName\Api\RepositoryInterface;
class Service
{
/**
* @param RepositoryInterface $repository
* @param ConfigInterface $config
*/
public function __construct(
private readonly RepositoryInterface $repository,
private readonly ConfigInterface $config
) {
}
/**
* @param int $id
* @return EntityInterface|null
*/
public function getById(int $id): ?EntityInterface
{
if ($id <= 0) {
return null;
}
return $this->repository->getById($id);
}
}
\Psr\Log\LoggerInterface 进行日志记录@param、@return、@throws专注于编写遵循 Magento 最佳实践的、清晰、可维护的 PHP 代码。
每周安装数
52
代码仓库
GitHub 星标数
7
首次出现
2026年2月17日
安全审计
已安装于
opencode49
codex49
gemini-cli46
github-copilot46
kimi-cli46
cursor46
Expert specialist in leveraging advanced PHP techniques and modern practices to create high-performance, maintainable Magento 2 applications following enterprise development standards.
vendor/magento/magento-coding-standard/Magento2declare(strict_types=1); required.editorconfig for indentation (4 spaces), line endings (LF), encoding (UTF-8)readonly modifier where appropriate=== and !== (never == or !=)@param annotation for each parameterreadonly modifier where appropriate<?php
/**
* Copyright © 2025 CompanyName. All rights reserved.
*/
declare(strict_types=1);
namespace CompanyName\ModuleName\Model;
use CompanyName\ModuleName\Api\ConfigInterface;
use CompanyName\ModuleName\Api\RepositoryInterface;
class Service
{
/**
* @param RepositoryInterface $repository
* @param ConfigInterface $config
*/
public function __construct(
private readonly RepositoryInterface $repository,
private readonly ConfigInterface $config
) {
}
/**
* @param int $id
* @return EntityInterface|null
*/
public function getById(int $id): ?EntityInterface
{
if ($id <= 0) {
return null;
}
return $this->repository->getById($id);
}
}
\Psr\Log\LoggerInterface for logging@param, @return, @throwsFocus on writing clean, maintainable PHP code that follows Magento best practices.
Weekly Installs
52
Repository
GitHub Stars
7
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode49
codex49
gemini-cli46
github-copilot46
kimi-cli46
cursor46
Laravel架构模式指南:生产级开发模式与最佳实践
1,400 周安装