magento2-backend-toolkit

Installation
SKILL.md

Magento 2 Backend Toolkit

General Rules

  • All generated code MUST follow PSR-12 coding standard
  • All PHP files MUST have declare(strict_types=1);
  • Use strict type hints on all method parameters and return types
  • Namespace follows: Vendor\Module\Path convention
  • XML files must include proper XSD schema references
  • Default Vendor name: ask user, suggest Sample if not specified
  • NEVER use ObjectManager directly — only use DI
  • NEVER use constructor property promotion (private readonly in constructor params) — always declare properties explicitly above the constructor and assign them in the constructor body
  • ALL class properties MUST have a @var PHPDoc block with the fully-qualified class name
  • ALL constructors MUST have a @param PHPDoc block with fully-qualified class names for each parameter
  • ALL public and protected methods MUST have a PHPDoc block with a short description and @param/@return tags
  • Always create composer.json with new modules

Security Rules (Required)

Related skills
Installs
19
GitHub Stars
4
First Seen
Feb 9, 2026