What does a good /scaffold-feature command look like for Magento?

Three sections. (1) Args: feature name, e.g. VendorRegistry. (2) Steps: explicit list, "Generate etc/module.xml, registration.php, etc/di.xml with the preference, the Api interface, the Repository, the Model, the ResourceModel, the Collection, an etc/db_schema.xml for the table, and a Setup/Patch/Data/Install<Feature>Seed.php stub." (3) Verify: "Run php -l on each PHP file, run bin/magento setup:upgrade, confirm the table exists." The verify step is what makes the command idempotent, without it you'll re-scaffold on top of an existing module and overwrite work.

Kishan Savaliya
Kishan Savaliya
Adobe Certified Magento Commerce Developer
Ahmedabad [IN]working hours, replies within four hours
When do you need it

Read personally. Never shared. Or email the brief.

More on claude, slash-commands

Need it fixed, not just explained?

Send the brief with your store URL; the written quote comes back within 24 hours.