magento-php-specialist
This skill guides you through advanced PHP development for Magento 2, enforcing PSR-12 compliance and Magento coding standards throughout. It covers modern PHP practices including constructor property promotion, strict typing, and SOLID principles, alongside Magento-specific patterns like service contracts and repositories.
Magento PHP Specialist writes production-grade PHP for Magento 2 following PSR-12 and enterprise coding standards.
AI-generated summary based on this skill's SKILL.md
Install
maxnorm/magento2-agent-skills/magento-php-specialist
git clone https://github.com/maxnorm/magento2-agent-skills
cp -r magento2-agent-skills/skills/magento-php-specialist ~/.claude/skills/magento-php-specialistnpx skillfed install maxnorm/magento2-agent-skills/magento-php-specialistFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does magento-php-specialist help me build?
magento-php-specialist guides you through advanced PHP development for Magento 2, enforcing PSR-12 compliance and Magento coding standards. It covers modern PHP practices including constructor property promotion, strict typing, and SOLID principles, alongside Magento-specific patterns like service contracts and repositories.
How does magento-php-specialist ensure code quality?
magento-php-specialist ensures code quality through type safety, strict comparisons, and modern PHP features. It applies SOLID principles, enforces strict types, and guides proper type hinting to maintain enterprise-grade standards across your Magento 2 codebase.
What Magento-specific patterns does this skill cover?
magento-php-specialist covers Magento-specific patterns including service contracts, repository pattern, plugin pattern, and dependency injection. These patterns align with Magento 2 architecture and enable maintainable, scalable business logic implementation.
Can magento-php-specialist help with PSR-12 coding standards?
Yes, magento-php-specialist specializes in PSR-12 coding standards for Magento 2. It guides production-grade PHP code development following PSR-12 and enterprise standards, ensuring your code meets industry best practices and Magento requirements.
Does magento-php-specialist support advanced PHP features?
magento-php-specialist supports advanced PHP features including constructor property promotion, strict types, and modern language capabilities. It helps you leverage these features while maintaining OOP design patterns and enterprise-level code quality.
How can I use magento-php-specialist for code review?
magento-php-specialist can refactor or review your PHP code for standards compliance and maintainability. It evaluates your implementation against PSR-12, Magento best practices, and SOLID principles to identify improvements and ensure enterprise-grade quality.
SKILL.md
rendered from the published skill — quoted content, verbatim
Magento 2 PHP Specialist
Expert specialist in leveraging advanced PHP techniques and modern practices to create high-performance, maintainable Magento 2 applications following enterprise development standards.
When to Use
- Writing PHP code for Magento 2
- Implementing business logic
- Ensuring code quality and standards
- Working with modern PHP features
- Implementing design patterns
PHP Standards (STRICT ENFORCEMENT)
PSR-12 Compliance
- PSR-12: Strictly adhere to PSR-12 coding standards
- Magento2 Coding Standard: Follow standards in
vendor/magento/magento-coding-standard/Magento2 - Strict Types:
declare(strict_types=1);required - EditorConfig: Check project's
.editorconfigfor indentation (4 spaces), line endings (LF), encoding (UTF-8)
Code Structure Requirements
- Opening Braces: Classes and methods must
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/magento-php-specialist/SKILL.md